Commit Graph

233 Commits

Author SHA1 Message Date
lhearachel
7584276155 Document the capture formula 2023-10-23 00:18:10 -07:00
lhearachel
d2c301cc45 Document battle terrain, time, and species-caught checks 2023-10-22 20:29:33 -07:00
lhearachel
fac48e608a Label struct+fields: UnkStruct_ov12_02237728 -> BallThrow 2023-10-22 19:51:31 -07:00
lhearachel
37f7d89321 Document BtlCmd_ChangeStatStage 2023-10-18 19:06:19 -07:00
lhearachel
870997c882 Document SetupMultiHit and SetVarValue commands 2023-10-18 19:06:15 -07:00
lhearachel
e1b2a01dc2 Document Switch and JumpIfAnySwitches commands 2023-10-14 11:46:13 -07:00
lhearachel
9823a08e06 Document routines used by Switch command
- BattleSystem_InitBattleMon
- BattleSystem_ReloadPokemon
- BattleSystem_SwitchSlots
- BattleSystem_UpdateAfterSwitch
2023-10-14 11:46:13 -07:00
lhearachel
4bf5b87f9a Label Giratina + Pokedex Height/Weight functions 2023-10-14 11:46:13 -07:00
lhearachel
f90912ff33 Document ShowPartyList and WaitPartyList commands 2023-10-14 11:46:13 -07:00
lhearachel
014dc44191 Document BattleScript_GetExpTask 2023-10-13 10:04:38 -07:00
lhearachel
ad15d7ce16 Document BattleScript_CalcEffortValues 2023-10-13 10:03:04 -07:00
lhearachel
57a0b5fcc4 [Mass Rename] Structs and subroutines for GiveExp task func
Functions:
- ov16_0223E05C -> BattleSystem_MessageLoader
- ov16_02259B38 -> BattleSystem_PokemonIsOT
- ov16_022499C0 -> BattleScript_CalcEffortValues
- ov16_0223EDF0 -> BattleSystem_TextSpeed
- ov16_0223FB24 -> BattleMessage_Print
- sub_0201D724  -> Message_Printing
- ov16_02265D14 -> BattleIO_UpdateExpGauge
- sub_02076B14  -> Pokemon_ShouldLevelUp
- ov16_02265FF8 -> BattleIO_PlayStatusEffect
- ov16_0226614C -> BattleIO_PlayLevelUpAnimation
- ov16_02251C94 -> BattleSystem_ReloadPokemon
- ov16_0224B520 -> BattleScript_LoadPartyLevelUpIcon
- ov16_0223DF00 -> BattleSystem_BGL
- ov16_0223DF04 -> BattleSystem_Window
- ov16_0223E064 -> BattleSystem_PaletteSys
- sub_02019060  -> BGL_SetPriority
- ov16_0223F8DC -> BattleSystem_SetGaugePriority
- sub_0200DA60  -> Window_SetFrame
- sub_0200DAA0  -> Window_FramePalette
- sub_02003050  -> PaletteSys_LoadPalette
- sub_0201A7E8  -> BGL_AddWindow
- sub_0201ADA4  -> BGL_FillWindow
- sub_0200DC48  -> Window_Show
- ov16_0223FB78 -> BattleMessage_PrintToWindow
- sub_0201AE78  -> BGL_WindowColor
- sub_02005748  -> Sound_PlayEffect
- sub_0200DC9C  -> Window_Clear
- sub_0201A8FC  -> BGL_DeleteWindow
- ov16_0224B7CC -> BattleScript_FreePartyLevelUpIcon
- sub_0207727C  -> Pokemon_LevelUpMove
- ov16_022664C4 -> BattleIO_ForgetMove
- sub_0200DA58  -> SysTask_Done

Structs:
- UnkStruct_02002F38 -> PaletteSys
- UnkStruct_02018340 -> BGL
- UnkStruct_0205AA50 -> Window
- UnkStruct_ov16_02248E74 -> PokemonStats
2023-10-13 10:03:01 -07:00
lhearachel
fb3af3b9fc Label core SysTask struct + funcptr
UnkStruct_0201CD38 -> SysTask
UnkFuncPtr_0201CE28 -> SysTaskFunc
2023-10-13 09:59:51 -07:00
lhearachel
69996ea104 Mass rename: coresys -> gCoreSys 2023-10-13 09:59:51 -07:00
lhearachel
472541a88b Label sub_0200D9E8 -> SysTask_Start 2023-10-13 09:59:49 -07:00
lhearachel
39c137a334 Label struct + member fields for BattleScriptTaskData 2023-10-13 09:57:38 -07:00
lhearachel
f2365bf596 Document BtlCmd_CalcExpGain 2023-10-12 23:13:13 -07:00
lhearachel
d07252f5c5 Document BattleSystem_Defender, RandomOpponent, and EnemyInSlot 2023-10-12 16:57:13 -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
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
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
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
9297631eca Document BattleIO_QueueIsEmpty and BattleIO_UpdateTimeout 2023-10-07 20:37:25 -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
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
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
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
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
lhearachel
ac131d1dc8 Document BattleSystem_AnyReplacementMons 2023-09-28 23:15:31 -07:00