Commit Graph

387 Commits

Author SHA1 Message Date
lhearachel
1e58ed2e1c Clean up battle constant headers 2023-11-01 00:18:20 -07:00
lhearachel
c4e8cb61df Extract pickup and terrain data tables to their own files 2023-11-01 00:01:34 -07:00
lhearachel
6acc6ffd3e Document battle script command 0x44 2023-10-31 23:52:58 -07:00
lhearachel
5edbb62501 Document battle script commands 0xBB - 0xDE 2023-10-31 23:27:22 -07:00
lhearachel
6c006bd143 Document BattleSystem_UseBagItem and related functions 2023-10-31 20:45:48 -07:00
lhearachel
c9f1f1607b Document battle script commands 0xA7 - 0xBA 2023-10-31 20:38:20 -07:00
lhearachel
4926316055 Document BattleSystem_PluckBerry + _FlingItem and related functions 2023-10-31 20:38:19 -07:00
lhearachel
221cde6ef4 Document battle script commands 0x90 - 0xA6 2023-10-31 20:35:34 -07:00
lhearachel
657eaae2d4 Document TrainerData_BuildParty 2023-10-30 09:41:06 -07:00
lhearachel
c851345e8a Document extern functions in trainer_data.c 2023-10-30 09:41:06 -07:00
lhearachel
1d626d412c Label functions used by trainer_data.c 2023-10-30 09:41:06 -07:00
lhearachel
c07da37106 Extract trainer class gender table to a separate include 2023-10-30 09:41:02 -07:00
lhearachel
10582fbdc0 unk_02079170 + trainer_data; label functions in trainer_data.h 2023-10-30 09:38:49 -07:00
lhearachel
e38e18500a Document TrainerData and TrainerMon structs + combine headers 2023-10-30 09:38:49 -07:00
lhearachel
e933d09217 Document battle commands 0x60 - 0x8F 2023-10-28 22:39:34 -07:00
lhearachel
183a716897 Document App_PixelCount, BattleSystem_CanStealItem, and BattleSystem_CanWhirlwind 2023-10-28 22:37:26 -07:00
lhearachel
cedf84f740 Document battle commands 0x5D - 0x5F 2023-10-28 01:04:56 -07:00
lhearachel
e850201f00 Document sTypeMatchupMultipliers table and BattleSystem_TypeMatchup 2023-10-28 01:04:52 -07:00
lhearachel
6e004e62f9 Document battle commands 0x54 - 0x5C 2023-10-28 00:49:49 -07:00
lhearachel
7629d31f75 Document functions forbidding moves for Mimic, Metronome, and Me First 2023-10-27 22:18:51 -07:00
lhearachel
ac6d5b0ded Document TryLightScreen, TryReflect, and TryMist commands 2023-10-26 12:55:03 -07:00
lhearachel
6305947882 Document BattleSystem_TrainerInfo 2023-10-26 12:55:03 -07:00
lhearachel
cd328ef92a Document IfVar and IfMonDataVar commands 2023-10-26 12:55:03 -07:00
lhearachel
c37318bd6f Clean-up + document TryConversion command 2023-10-26 12:55:03 -07:00
Rachel
3b7b662cc4
Merge pull request #12 from patilise/patch-1
Update unk_0204CDDC.c with semantics
2023-10-26 12:54:52 -07:00
lhearachel
28bc86c0f2 Document commands 0x45 - 0x4C 2023-10-25 23:50:11 -07:00
lhearachel
7245aba137 Document BattleSystem_ShouldShowStatusEffect 2023-10-25 23:50:11 -07:00
Rachel
49ac69a187
Merge branch 'main' into patch-1 2023-10-25 18:02:04 -07:00
lhearachel
4a716213b9 Document StartCatchMonTask and WaitCatchMonTask commands 2023-10-23 22:28:20 -07:00
lhearachel
ab2cd2ddd8 Document battle commands 0x34 - 0x43
- SetMonDataValue
- ClearVolatileStatus
- ToggleVanish
- CheckAbility
- Random
- SetVarFromVar
- SetMonDataFromVar
- Jump
- CallSub
- CallSubFromVar
- SetMirrorMove
- ResetStatChanges
- LockMoveChoice
- UnlockMoveChoice
- SetStatusIcon
- TrainerMessage
2023-10-23 22:11:36 -07:00
lhearachel
f30651576c Document Battler_LockMoveChoice, Battler_UnlockMoveChoice, and BattleSystem_CanEncoreMove 2023-10-23 22:10:03 -07:00
lhearachel
6603a3a42f Label BattleIO functions used by battle commands 0x34 - 0x43
- ov16_02265EE8 -> BattleIO_ToggleVanish
- ov16_02265FB8 -> BattleIO_SetStatusIcon
- ov16_02265FD8 -> BattleIO_TrainerMessage
2023-10-23 22:08:28 -07:00
lhearachel
12055602e9 Document BattleMon_Set 2023-10-23 22:04:34 -07:00
lhearachel
da4adc0f59 Rename BattleMon::pid -> personality 2023-10-23 22:04:34 -07:00
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
7b6cb78d37 Document StartGetExpTask and WaitGetExpTask commands 2023-10-13 10:09:18 -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