Commit Graph

2060 Commits

Author SHA1 Message Date
lhearachel
d07252f5c5 Document BattleSystem_Defender, RandomOpponent, and EnemyInSlot 2023-10-12 16:57:13 -07:00
Rachel
9e2fd8398a Merge pull request #82 from lhearachel/battle-dev
Document commands WaitFrames, PlaySound, If, IfMonData, FadeOut, JumpToSub, JumpToBattleEffect
2023-10-12 13:57:06 -07:00
lhearachel
3c9571ad32 Document FadeOut, JumpToSub, JumpToBattleEffect commands 2023-10-10 22:03:32 -07:00
lhearachel
40c3f6d035 Document If, IfMonData commands 2023-10-10 21:56:19 -07:00
lhearachel
4fe78a9fa3 Document PlaySound command 2023-10-10 21:39:55 -07:00
lhearachel
97a04e1122 Document WaitFrames command 2023-10-10 21:39:55 -07:00
lhearachel
dd3c4f5bbc Document sub_02022798 -> TouchScreen_Tapped 2023-10-10 21:39:55 -07:00
lhearachel
f6f87d6b75 Unk_021BF67C -> coresys
Also label fields unk_48 -> padInput and unk_60 -> touchInput
2023-10-10 21:39:28 -07:00
Rachel
add42c1ffc Merge pull request #81 from lhearachel/battle-dev
Document PrintMessage, PlayMoveAnimation, FlickerBattler, and FaintBattler
2023-10-10 21:37:01 -07:00
lhearachel
23a3695146 Document FaintBattler and PlayFaintingSequence 2023-10-09 22:40:07 -07:00
lhearachel
523ea64de1 Document BattleScript_UpdateFriendship and dependent functions 2023-10-09 21:56:35 -07:00
lhearachel
b20ea8e1e6 Document FlickerBattler command 2023-10-09 21:11:30 -07:00
lhearachel
0459e9ca50 Document PlayMoveAnimation and PlayMoveAnimationA2D 2023-10-09 21:05:59 -07:00
lhearachel
d8899b26fa Document message-printing battle script commands 2023-10-09 20:29:30 -07:00
Rachel
e3c985dcef Merge pull request #80 from lhearachel/battle-dev
Document Wait, CalcDamage, and CalcMaxDamage commands + subroutines
2023-10-09 18:37:51 -07:00
lhearachel
902a78119c Document CalcDamage and CalcMaxDamage battle script commands 2023-10-08 15:02:50 -07:00
lhearachel
a62e6e8384 Document CalcMoveDamage, CalcDamageVariance, and CalcCriticalMulti routines 2023-10-08 15:02:50 -07:00
lhearachel
9eea5b7c97 Document functions used by damage calc routine 2023-10-08 15:02:13 -07:00
lhearachel
10ed0c397c Docuemnt BtlCmd_Wait 2023-10-07 20:41:55 -07:00
lhearachel
9297631eca Document BattleIO_QueueIsEmpty and BattleIO_UpdateTimeout 2023-10-07 20:37:25 -07:00
Rachel
d6578d1764 Merge pull request #79 from lhearachel/battle-dev
Document BattleMessage construction + commands for battle setup and trainers
2023-10-07 20:26:57 -07:00
lhearachel
018837618a Document some battle script commands related to trainers:
- SetTrainerEncounter
- ThrowTrainerBall
- SlideTrainerOut
- SlideTrainerIn
- SlideHPGaugeIn
- SlideHPGaugeInWait
- SlideHPGaugeOut
2023-10-04 22:11:55 -07:00
lhearachel
b05874c6d2 Document commands for battle UI and battle setup:
- SetupBattleUI
- SetEncounter
- ShowEncounter
- ShowPokemon
- ReturnPokemon
- DeletePokemon
2023-10-04 18:52:37 -07:00
lhearachel
e49f2e4a9b Document the BattleMessage tagging functions 2023-10-04 17:21:34 -07:00
lhearachel
2d20d05b22 Document BattleScript_Battler 2023-10-04 16:12:27 -07:00
lhearachel
68f54d4087 Document BattleMessageParams struct and _Make functions 2023-10-04 15:20:08 -07:00
Rachel
cc7c7c1a89 Merge pull request #78 from lhearachel/battle-dev
Document foundational functions for battle_script.c
2023-10-03 09:46:22 -07:00
Rachel
2a64ecf6f4 Merge pull request #77 from lhearachel/berry-init
Document berry initialization table for a new game
2023-10-03 09:46:06 -07:00
lhearachel
1a94954a3c Rename ov16_022405FC.c -> battle_script.c 2023-10-02 23:46:30 -07:00
lhearachel
297be289ee Document some foundational functions for battle_script.c 2023-10-02 23:46:23 -07:00
lhearachel
c8d5296674 Move overlay016/ov16_022405FC.h -> battle/battle_script.h and document BattleScript_Exec 2023-10-02 22:53:10 -07:00
lhearachel
ac09b59b13 Document berry initialization table for a new game 2023-10-02 21:01:35 -07:00
Rachel
95c276c909 Merge pull request #76 from lhearachel/battle-dev
Finish cleaning up + documenting battle_controller.c
2023-10-02 08:11:17 -07:00
lhearachel
9def039d54 Document functions in battle_controller.c 2023-09-30 17:57:21 -07:00
lhearachel
46bd5f963d Clean up some lingering smelly code in battle_controller.c 2023-09-30 16:11:32 -07:00
Rachel
da4e615c4d Merge pull request #73 from wildfire248/mon_level_up_data
Use json2bin to build wotbl.narc
2023-09-30 12:46:52 -07:00
wildfire
7b787bcff3 Fix wotbl script, add byte align function to j2b 2023-09-30 20:08:56 +01:00
wildfire
d0b3d627e3 Misc cleanup 2023-09-30 18:53:46 +01:00
wildfire
6d1c2fabbe Build wotbl.narc using mon data 2023-09-30 18:53:45 +01:00
wildfire
158326b022 Fix mon data move enum names 2023-09-30 18:53:45 +01:00
lhearachel
be8afb1f65 Finish cleaning up the battle state machine 2023-09-30 00:40:21 -07:00
lhearachel
e6e3c14784 Label functions used by the rest of the battle controller 2023-09-29 23:22:56 -07:00
lhearachel
d197b7a861 Clean up remaining utility functions in battle_controller.c:
- BattleController_MustSelectTarget
- BattleController_ClearFlags
- BattleController_AnyFainted
- BattleController_AnyExpPayout
- BattleController_UpdateHitByMoveFlags
- BattleController_ToggleSemiInvulnMons
- BattleController_TriggerAfterMoveHitEffects
- BattleController_InitAI
2023-09-29 21:06:40 -07:00
lhearachel
7ad263e9a2 Label TrainerAITable and BattleSystem_TrainerItems 2023-09-29 21:06:23 -07:00
Rachel
60ea1f2c61 Merge pull request #74 from lhearachel/battle-dev
Clean up routines for replacing fainted battlers and flagging a battle result.
2023-09-29 17:35:21 -07:00
Rachel
3f1073c168 Merge pull request #75 from lhearachel/j2b_optionals
Allow for optional fields and multiple registrations per field
2023-09-29 15:34:03 -07:00
lhearachel
cb6ff6e646 Allow for optional fields and multiple registrations per field 2023-09-29 15:26:10 -07:00
lhearachel
6030bb84c5 Clean up BattleController_CheckBattleOver 2023-09-28 23:16:33 -07:00
lhearachel
41b2359d97 Label functions used by CheckBattleOver 2023-09-28 23:16:02 -07:00
lhearachel
d58bc0a46e Clean up + rename BattleController_ReplaceFainted 2023-09-28 23:15:31 -07:00