Commit Graph

1044 Commits

Author SHA1 Message Date
lhearachel
dd03d0d01d Label functions and structs used by fight and safari commands 2023-09-14 20:29:46 -07:00
lhearachel
4abf59907c Use an enum in include/constants/moves.h 2023-09-14 20:05:42 -07:00
lhearachel
8f5512434a Document and clean up trainer_info.c 2023-09-14 12:45:18 -07:00
lhearachel
2d28530016 Label some GF string library functions used by trainer_info.c 2023-09-14 12:23:57 -07:00
lhearachel
85abc405e2 Label trainer_info functions 2023-09-14 12:23:52 -07:00
lhearachel
413fa1556b Rename unk_02025E68.h,c -> trainer_info.h,c 2023-09-14 12:04:18 -07:00
lhearachel
8cccaf10d3 Merge struct_defs/struct_02025E6C.h into unk_02025E68.h; label struct + fields 2023-09-14 11:52:51 -07:00
wildfire
8e5ed2e168 Revert mon types to defines so csv2bin works 2023-09-14 11:54:48 +01:00
wildfire
c563f45f7c Rename functions in pokemon.h and pokemon.c 2023-09-14 00:34:02 +01:00
wildfire
b7ae7f24e9 Misc. cleanup in pokemon.h and pokemon.c 2023-09-14 00:22:45 +01:00
wildfire
39a3bb306a Move structs into pokemon.h and pokemon.c 2023-09-14 00:22:44 +01:00
wildfire
81852038e8 Misc. renames and cleanup, move data block structs 2023-09-14 00:13:04 +01:00
wildfire
eb95f78914 More cleanup of pokemon.c 2023-09-14 00:13:04 +01:00
wildfire
3797951044 Cleanup of pokemon.c and a couple renames 2023-09-14 00:12:37 +01:00
wildfire
dccc1ff94c Fix pointer-var style 2023-09-14 00:10:31 +01:00
wildfire
89ceba05a3 Document pokemon.c and related structs 2023-09-14 00:10:30 +01:00
wildfire
10275fd56e Document RNG Functions 2023-09-13 23:23:32 +01:00
lhearachel
7af31d6401 Clean up the rest of the primary battle control FSM loop 2023-09-10 18:21:32 -07:00
lhearachel
28c6e16f45 Label assorted functions for the next battle control loop clean-up batch 2023-09-10 18:06:11 -07:00
lhearachel
2d58349403 Add new constants files for battle conditions, message tags, and abilities 2023-09-10 17:40:45 -07:00
lhearachel
4ff1636cd6 Fix up some missed renames in a changed header file 2023-09-10 00:55:35 -07:00
lhearachel
b8fa07712b Merge branch 'main' into battle-dev 2023-09-09 11:22:56 -07:00
lhearachel
5006b14afd Clean up + document message.c 2023-09-09 10:39:05 -07:00
lhearachel
bc6823087d Rename files: unk_0200AC5C -> message 2023-09-09 10:38:29 -07:00
lhearachel
8090149c08 Label function names in unk_0200AC5C.h + make structs transparent 2023-09-09 10:30:40 -07:00
lhearachel
0d071beaaa Rename Item_ID -> Item_FileID 2023-09-04 11:35:21 -07:00
lhearachel
361b074744 Clean up and document item.c 2023-09-04 11:35:21 -07:00
lhearachel
6d8902003b Rename external functions in item.h 2023-09-04 11:35:20 -07:00
lhearachel
3d77876464 Label fields for BagItem struct 2023-09-04 11:16:36 -07:00
lhearachel
d73b982a23 Rename fields in ItemPartyParam to match repo style 2023-09-04 11:16:36 -07:00
lhearachel
966e39f6e9 Delete superfluous file: struct_decls/struct_itemdata_decl.h 2023-09-04 11:16:32 -07:00
lhearachel
c81374e975 Merge strbuf headers 2023-09-04 11:15:47 -07:00
lhearachel
a028933633 Docstrings + standardize function nomenclature 2023-09-01 09:16:22 -07:00
Lhea (Rachel)
f202bc1960 Finish cleaning up move_table.c 2023-08-30 21:48:15 -07:00
Lhea (Rachel)
e5f994c348 Label fields in MoveTable struct, merge related headers, clean up func names 2023-08-30 21:34:14 -07:00
lhearachel
cfdfc80d19 Mass rename functions used by the first few controller commands 2023-08-29 23:33:12 -07:00
lhearachel
4cb7dc9e5f Clean up first few static functions in battle_controller.c 2023-08-29 23:32:24 -07:00
lhearachel
8aa4f62856 Clean up + document extern functions in battle_controller.c 2023-08-29 17:09:59 -07:00
lhearachel
c8fbc3d5aa Mass rename for extern functions in battle_controller.c 2023-08-29 16:41:38 -07:00
lhearachel
da730ce67b UnkStruct_0207ADB4 -> BattleSystem + some low-hanging fruit field labels 2023-08-29 16:07:08 -07:00
Rachel
50f18bd93d
Merge pull request #30 from lhearachel/battle-dev
Document BattleContext and related structs
2023-08-29 09:49:39 -07:00
Lhea (Rachel)
c719db6462 Cleanup from last round of PR feedback 2023-08-29 09:48:10 -07:00
Lhea (Rachel)
717e687509 Clean up labels from PR feedback 2023-08-28 21:08:21 -07:00
wildfire
24b069724f Fix comments and whitespace 2023-08-28 12:19:36 +01:00
wildfire
43b2e29426 Move narc index enum to separate file 2023-08-28 12:09:41 +01:00
lhearachel
8f1eb7d37b Document BattleMessage struct 2023-08-26 17:57:53 -07:00
lhearachel
90914be11a Document BattleMon struct 2023-08-26 17:16:59 -07:00
lhearachel
460fc6bc99 Document AIContext struct 2023-08-26 17:16:59 -07:00
lhearachel
66a935788f Document BattleContext struct and substructs 2023-08-26 17:16:55 -07:00
wildfire
0f259216b8 Add enum for narc path indexes 2023-08-25 10:05:36 +01:00
Nomura
34131963b7 Partially document roaming_pokemon.c 2023-08-10 11:38:02 +02:00
Nomura
d11c111ab1 Decompile nuts_data.narc 2023-08-04 15:55:42 +02:00
Nomura
b76520eee1 Document berry_data.c 2023-07-30 20:18:22 +02:00
Nomura
d7f273372d Decompile item data 2023-07-30 18:40:11 +02:00
Nomura
e8cc33cea0 Document more item-related code 2023-07-29 22:47:39 +02:00
Nomura
040fa22df8 Finalize Meson build system 2023-07-18 19:58:03 +02:00
Nomura
f6e92d23f4 Move libcrypto code to lib/external/libcrypto 2023-07-18 16:26:21 +02:00
Nomura
537fb39a2c Move internal library code to lib/internal 2023-07-18 16:23:46 +02:00
Rachel
632f43a4f8
Document enc_effects.c (#13)
Also documented the structs used by this file and the used member fields elsewhere.
2023-07-06 07:52:11 -07:00
luckytyphlosion
17400deba9
Fix incorrect grammar. 2023-05-15 19:26:22 -04:00
Lhea (Rachel)
7d554f117e Make struct def transparent, add Doxygen docs 2023-05-15 16:20:50 -07:00
Lhea (Rachel)
c9e0030847 More style fixes 2023-05-15 15:05:54 -07:00
Lhea (Rachel)
0d718af304 Style fixes from PR feedback 2023-05-15 11:14:56 -07:00
Lhea (Rachel)
99c82f8aea Update function names and document header params 2023-05-12 22:58:59 -07:00
Lhea (Rachel)
917a49e0b9 Last bits of re-organization 2023-05-12 22:20:46 -07:00
Lhea (Rachel)
ea2fca08ce Start documenting unk_02023790.c funcs 2023-05-12 20:58:34 -07:00
Lhea (Rachel)
f58b348e9d Rename occurrences: UnkStruct_02023790 -> Strbuf 2023-05-12 14:39:41 -07:00
Eduardo Quezada D'Ottone
ebd67c7326 Reverted CallocMon to AllocMonZeroed and finished documenting it 2023-04-05 20:44:18 -04:00
Eduardo Quezada D'Ottone
3fc8fb7003 Applied review changes 2023-04-03 22:14:26 -04:00
Eduardo Quezada
98187bb48e Fully document IsGBASpeciesInvalid 2023-02-28 17:18:20 -03:00
Eduardo Quezada
96369f35de UnkStruct_ov97_02236340::unk_04PokemonStorageGBA::boxes 2023-02-28 16:52:33 -03:00
Eduardo Quezada
90df40c12a UnkStruct_ov97_02236340::unk_83C2PokemonStorageGBA::boxWallpapers 2023-02-28 16:50:00 -03:00
Eduardo Quezada
f7c3371382 UnkStruct_ov97_02236340::unk_8344PokemonStorageGBA::boxNames 2023-02-28 16:46:09 -03:00
Eduardo Quezada
241cdd9a5e PokemonStorageGBA: unk_00currentBox 2023-02-28 16:39:05 -03:00
Eduardo Quezada
577ea12216 sub_0205E1F8HasAllLegendaryTitansInParty 2023-02-28 16:15:11 -03:00
Eduardo Quezada
c6da03397c sub_02074C60SetBoxMonData 2023-02-28 16:12:30 -03:00
Eduardo Quezada
4697e17be7 sub_020761E8SanitizeFormId 2023-02-28 16:11:13 -03:00
Eduardo Quezada
30289bedcb UnkStruct_02075454_1::unk_18_3PokemonSubstruct1::form 2023-02-28 15:25:26 -03:00
Eduardo Quezada
95cf772f2b UnkStruct_02075454_1::unk_18_0PokemonSubstruct1::fatefulEncounter 2023-02-28 15:23:33 -03:00
Eduardo Quezada
b650849ae6 UnkStruct_02075454::unk_0CPokemonSubstruct0::friendship 2023-02-28 15:22:31 -03:00
Eduardo Quezada
93e8154184 UnkStruct_02075454::unk_02PokemonSubstruct0::item 2023-02-28 15:21:53 -03:00
Eduardo Quezada
92b1769511 UnkStruct_02075454::unk_00PokemonSubstruct0::species 2023-02-28 15:19:59 -03:00
Eduardo Quezada
e79347b2eb ov97_02236CA4SetGBABoxMonData 2023-02-28 12:38:56 -03:00
Eduardo Quezada
eff223c190 Added GBA species consts 2023-02-28 11:19:14 -03:00
Eduardo Quezada
5df01ef663 Synced BoxPokemonGBA substruct names and GBA_MON_DATA enums 2023-02-28 11:16:55 -03:00
Eduardo Quezada
5c1d7d00d8 ov97_02236924GetGBABoxMonData 2023-02-28 10:01:55 -03:00
Eduardo Quezada
fc50a7bdbb sub_02077ADCSetBoxShayminForm 2023-02-27 22:31:15 -03:00
Eduardo Quezada
b19f6609cd UnkStruct_ov97_02236340PokemonStorageGBA 2023-02-27 22:27:40 -03:00
Eduardo Quezada
c03da746bf sub_02075BFCGetNatureFromPersonality 2023-02-27 22:18:00 -03:00
Eduardo Quezada
fec3822266 sub_02077ACCSetShayminForm 2023-02-27 22:12:50 -03:00
Eduardo Quezada
4f31832ddd sub_02077C20SetRotomForm 2023-02-27 22:12:43 -03:00
Eduardo Quezada
ee7b8b758e Implemented use of MON_DATA_x enum 2023-02-27 21:19:53 -03:00
Eduardo Quezada
9443146546 Added missing is_form_symmetrical documentation 2023-02-27 08:42:10 -03:00
Eduardo Quezada
e457964686 Fully documented ov12_022384F0 as IsFormSymmetrical 2023-02-27 08:26:34 -03:00
Eduardo Quezada
820aed4610 Removed include/struct_decls/box_pokemon.h 2023-02-27 07:52:06 -03:00
Eduardo Quezada
6437939861 sub_02074470GetMonData 2023-02-23 14:09:09 -03:00
Eduardo Quezada
49271e1bdd UnkStruct_ov97_02236380_subXPokemonGBASubstructX-1 2023-02-23 10:16:00 -03:00
Eduardo Quezada
15b569e48c Moved BoxPokemonGBA substructs to include/overlay097/box_pokemon_gba.h 2023-02-22 18:13:53 -03:00
Eduardo Quezada
bdff8d1b25 Synced BoxPokemonGBA fields with pokeemerald 2023-02-20 22:59:19 -03:00
Eduardo Quezada
0277ff8d98 include/overlay097/struct_ov97_0223685C.h → include/overlay097/box_pokemon_gba.h` 2023-02-20 21:35:57 -03:00
Eduardo Quezada
24521de5f2 UnkStruct_ov97_0223685CBoxPokemonGBA 2023-02-20 21:16:10 -03:00
Eduardo Quezada
3563a0baa4 UnkStruct_02073C74::unk_08Pokemon::party 2023-02-20 20:54:50 -03:00
Eduardo Quezada
bfb0b6346c UnkStruct_02073C74::unk_00box 2023-02-20 07:14:26 -03:00
Eduardo Quezada
5d3dcc0d3e Removed uneeded header file 2023-02-20 05:38:41 -03:00
Eduardo Quezada
0369a728af sub_02073C70 -> SizeOfStructPokemon 2023-02-20 02:25:43 -03:00
Eduardo Quezada
fb1ebd2436 sub_02073C54 -> ZeroBoxMonData 2023-02-20 02:23:20 -03:00
Eduardo Quezada
c0de4afa88 sub_02073C2C -> ZeroMonData 2023-02-20 02:19:58 -03:00
Eduardo Quezada
5856514b9e sub_02073C74 ->AllocMonZeroed 2023-02-20 02:18:00 -03:00
Eduardo Quezada
bd5c55513c UnkStruct_02073C74_sub2 -> PartyPokemonData 2023-02-20 02:10:08 -03:00
Eduardo Quezada
854c6613c2 UnkStruct_02075454X -> PokemonSubstructX 2023-02-20 01:55:31 -03:00
Eduardo Quezada
485a1118a3 Missing header renames 2023-02-20 01:38:06 -03:00
Eduardo Quezada
4a235cee4c UnkStruct_02073C74_sub1 -> BoxPokemon 2023-02-20 01:27:15 -03:00
Eduardo Quezada
e166e4932a UnkStruct_02073C74 -> Pokemon 2023-02-20 01:05:16 -03:00
Nomura
983b6ab8e6 Partially document poffin.c 2023-02-03 22:49:54 +01:00
Nomura
798092361b Document coins.c 2023-02-03 20:47:50 +01:00
Nomura
e1844cadc0 Restyle function names 2023-02-02 22:06:46 +01:00
Nomura
e9beba42be Fix minor errors in comments in filesystem.h 2023-01-29 10:54:33 +01:00
Nomura
e00cca1445 Party_HasPokemon -> Party_HasSpecies 2023-01-29 10:28:24 +01:00
Nomura
d476d0ebdc Document struct Party 2023-01-29 10:23:57 +01:00
Nomura
06ecf39b3a Document party.c 2023-01-29 10:01:28 +01:00
Nomura
c882fac307 Document gx_layers.c 2023-01-28 17:29:10 +01:00
Nomura
aaf769194f Partially document item.c 2023-01-28 11:10:47 +01:00
Nomura
7c013f896d Document error_message_reset.c 2023-01-27 22:05:22 +01:00
Nomura
6fc30f6cd9 Fix GetMoveAttribute name 2023-01-23 19:55:15 +01:00
Nomura
ae153dfcdb Document move_table.c 2023-01-22 15:29:28 +01:00
Nomura
ed14915bb3 Document error_handling.c 2023-01-21 22:59:59 +01:00
Nomura
a0821efd25 Document poke_overlay.c 2023-01-21 22:50:07 +01:00
Nomura
2d4d30696d Document heap.c 2023-01-21 18:51:49 +01:00
Nomura
ed4a787311 Document filesystem.c 2023-01-12 19:44:53 +01:00
Nomura
e65f86e0c7 Add species constants header 2023-01-12 17:06:52 +01:00
Nomura
dcf40efcf6 Improve names in map_header.c 2023-01-12 16:18:32 +01:00
Nomura
37d3366362 Partially document map_header.c 2023-01-11 20:34:34 +01:00
luckytyphlosion
485f1be394 Match remaining non-library files. 2023-01-06 16:53:19 -05:00
Nomura
d66c46f23b Match files in overlay21 2022-12-31 10:51:52 +01:00
luckytyphlosion
007782694d Use precompiled header.
Note for pokeheartgold maintainers: This will pass the precompiled header to nitrosdk libs and possibly arm7
2022-12-31 00:21:55 -05:00
luckytyphlosion
743bf8d6eb Create global_terminal.h 2022-12-30 23:15:00 -05:00
Nomura
866010e624 Match most files in overlay16 2022-12-30 19:20:22 +01:00
Nomura
96a6549d9f Match most files in overlay5 2022-12-30 12:49:51 +01:00
Nomura
1653509e21 Match several arm9 files, part 4 2022-12-29 19:37:27 +01:00
Nomura
0217a8c36d Match unk_020E4C40.c 2022-12-28 17:50:42 +01:00
luckytyphlosion
ea122df5e9 Match main.c 2022-12-23 16:54:09 -05:00
luckytyphlosion
46f6dc3bf4 Add in headers. 2022-12-23 14:05:03 -05:00
luckytyphlosion
ea716561e3 Move global/ to include directory. 2022-12-22 18:43:59 -05:00
luckytyphlosion
8cefcbd8b2 Get it to build, part 1. 2022-11-23 14:01:24 -05:00