Commit Graph

296 Commits

Author SHA1 Message Date
Kuruyia
bb21d0d576 Document persisted map features
This documents the `unk_02027F50.c` file, which is in charge of managing
data used by some maps to be more dynamic, and that needs to be
persisted in the save file. Examples include Sunyshore Gym's bridges
rotation, Pastoria Gym's water level, Canalave Gym's platform
positions...

This also documents related code in the save data module, and names
constants used as IDs for identifying the map that is currently using
dynamic features.

Signed-off-by: Kuruyia <github@kuruyia.net>
2025-03-24 07:43:55 +01:00
Kuruyia
607e8f4bf9 Document terrain collision manager
This documents the `unk_02054D00.c` file, which is in charge of managing
height, collision and tile behavior between the terrain and the
player/map objects.

Signed-off-by: Kuruyia <github@kuruyia.net>
2025-03-22 13:48:02 +01:00
Eduardo Quezada
18ecf16d74
Document Daycare (#436)
* Identified Daycare struct + incense baby table

* Daycare params

* Daycare_CreateEgg

* TryGiveVoltTackle

* Better names

* DetermineEggSpeciesAndParentSlots

* Format

* GetParentsCompatibility

* Party_GetFirstEgg

* GetEggCyclesToSubtract

* Egg cycles

* Nature inheritence

* DaycareMon

* Better name for FieldSystem_GetDay

* Cleaner struct defs

* Store into daycare

* Daycare levels and price

* Daycare mon count

* DaycareMail

* Mail struct def

* MON_DATA_MAIL and Take mon from daycare

* IVs and Moves

* Utility functions

* More utility functions

* Review changes

* Renamed files
2025-03-22 03:16:18 -07:00
RavePossum
cb30afbe26 Document PokemonSpriteTaskAnim 2025-03-09 19:29:06 -04:00
RavePossum
be5355af20 Document most of pokemon_sprite.c 2025-03-09 19:28:45 -04:00
RavePossum
ad79c0418c unk_0200762C -> pokemon_sprite 2025-03-09 19:24:44 -04:00
RavePossum
f0ff83c47a Remove pokemon sprite struct def file and move to unk_0200762C.h 2025-03-09 19:24:43 -04:00
RavePossum
8c388258e3 Name PokemonSprite fields based on pokeheartgold 2025-03-09 19:24:43 -04:00
RavePossum
dd7046ff07 Move PokemonSpriteTransforms to pokemon sprite struct def header 2025-03-09 19:24:43 -04:00
RavePossum
0d8a1f1259 UnkFuncPtr_02007C34 -> PokemonSpriteCallback 2025-03-09 19:24:43 -04:00
RavePossum
34be0bc7db Name PokemonSpriteTransforms and fields based on pokeheartgold 2025-03-09 19:24:43 -04:00
RavePossum
b37e5caf9a Move PokemonSpriteShadow to pokemon sprite struct def header 2025-03-09 19:24:43 -04:00
RavePossum
ae19bfe5ee Name PokemonSpriteShadow and fields based on pokeheartgold 2025-03-09 19:24:43 -04:00
RavePossum
fa983cf03b Move PokemonSpriteTemplate to pokemon sprite struct def header 2025-03-09 19:24:43 -04:00
RavePossum
67ec27b77e Move PokemonSpriteManager to pokemon sprite struct def header 2025-03-09 19:24:43 -04:00
RavePossum
7c6bfa45df Mass rename UnkStruct_02007768 -> PokemonSpriteManager 2025-03-09 19:24:43 -04:00
RavePossum
430b6ba6b9 Rename Unk_02007768 fields based on pokeheartgold 2025-03-09 19:24:43 -04:00
RavePossum
fc4b0b7304 Rename parameters and other bits ArchivedSprite -> PokemonSpriteTemplate 2025-03-09 19:23:08 -04:00
RavePossum
d0f759ca3b Mass rename ArchivedSprite -> PokemonSpriteTemplate 2025-03-09 19:23:08 -04:00
Kuruyia
4bea4a8462 Document land data
This documents the `ov5_021E779C.c` file, which is in charge of loading
map data from the `land_data.narc` archive, dynamically load and unload
maps as the player moves, and render the map base models and their
props.

Also, for the viewer's pleasure, it includes a ton of Distortion
World-specific functions.

This also documents the `ov5_021EEAC8.c` file, which is in charge of
managing buffer allocation for the map base model and BDHC data.

Signed-off-by: Kuruyia <github@kuruyia.net>
2025-03-09 09:50:09 +01:00
narf0708@gmail.com
53835af289 Polish & renaming 2025-03-08 09:33:17 -05:00
Eduardo Quezada
f7f2ade2b6 Document params used with Heap_AllocFromHeap - Part 1 2025-03-03 19:12:57 -03:00
Kuruyia
3c903a6649 Document model attributes
This documents the `ov5_021D5878.c` file, which manages a data structure
containing various attributes used when rendering 3D models.

Those attributes directly map to polygon attributes/parameters that are
exposed by the NDS 3D hardware.

Signed-off-by: Kuruyia <github@kuruyia.net>
2025-02-27 17:25:22 +01:00
Rachel
dc5440a466
Merge pull request #393 from Viperio19/document-scripts
Some checks failed
build / build (push) Has been cancelled
Document lake trio cavern scripts
2025-02-23 12:38:27 -08:00
Gudf
bfa39b9d0d Rename FieldMenu to StartMenu 2025-02-20 21:54:54 +01:00
Viperio19
913d67dd10 Document lake trio caverns 2025-02-20 18:14:04 +01:00
Rachel
8204088ea4 Delete unused struct_defs/sprite_template.h 2025-02-13 19:07:40 -08:00
Rachel
c807806d15 Zip def and decl for PokemonSprite into one header 2025-02-13 19:07:16 -08:00
Rachel
41abbde3c6 Mass terminology update: CellActor -> Sprite, etc. 2025-02-13 18:43:23 -08:00
Rachel
02870538aa Identify unk_0200C6E4 -> sprite_system and document structs 2025-02-13 18:37:08 -08:00
Lucie
d7aca4616d Updated SCREEN macros and moved struct into main file 2025-02-13 03:15:10 +00:00
Lucie
759423c9af Labeled Brightness Controller 2025-02-13 01:30:22 +00:00
Rachel
b48080e37e Clean up some lingering mess in heap.{h,c} 2025-02-07 21:43:33 -08:00
Rachel
f1ac42f387
Merge pull request #361 from lhearachel/sprite-util
Some checks failed
build / build (push) Has been cancelled
Document sprite_util.c
2025-02-05 21:27:40 -08:00
TheSylphIsIn
38a4eed067 wild_encounter PR cleanup 2025-02-05 01:16:46 -05:00
Rachel
6ae0808081 Document sprite_util structs 2025-02-04 18:52:36 -08:00
Rachel
7f3e09fc33 Identify unk_020093B4 -> sprite_util 2025-02-04 18:52:36 -08:00
TheSylphIsIn
faae53c119 Merge branch 'main' of https://github.com/pret/pokeplatinum 2025-02-04 17:06:09 -05:00
TheSylphIsIn
5cfa8894af Finish documenting special_encounter
Documents the last unknown components of SpecialEncounter. Also some other things, sorry.
2025-02-04 16:52:48 -05:00
TheSylphIsIn
f8f514931e Merge branch 'main' of https://github.com/pret/pokeplatinum 2025-02-03 22:59:00 -05:00
TheSylphIsIn
b4229dbac1 Honey Trees
Documents honey_tree. Mostly. There are some functions related to the overworld tree shaking animation that I didn't document, but it's at least contextually obvious what the end result is.

Also might have a bit of roamer stuff, idk, this commit was sitting for 2 weeks
2025-02-03 22:44:28 -05:00
Rachel
47f8382923 Identify unk_0201F834 -> pltt_transfer 2025-02-02 19:58:28 -08:00
Rachel
81cb1b2f27 Identify structs used in char_transfer + document templates 2025-02-02 19:55:58 -08:00
Rachel
14b7a95da0 Identify unk_0201E86C -> char_transfer 2025-02-02 19:55:58 -08:00
Rachel
7e5f0e62b8 Port trainer data archive packing to C++ 2025-01-31 19:42:24 -08:00
Rachel
38436e0741 Split NARC-related trainer structs from main Trainer struct 2025-01-30 20:42:15 -08:00
Rachel
26db7b2f7e Migrate constants used by battle and AI scripting to metang 2025-01-27 20:46:35 -08:00
TheSylphIsIn
233169c647 FEEBAS
Document OV6_02247660, which handles Feebas tile fishing. Could probably be merged into another file but I leave decisions like that to the smart people.
2025-01-27 00:17:43 -05:00
TheSylphIsIn
1e195adf04 format + cleanup
changed a name on Roamers to be less ambiguous
2025-01-26 22:29:42 -05:00
TheSylphIsIn
4f4d81db5b Merge branch 'main' of https://github.com/pret/pokeplatinum 2025-01-26 22:14:21 -05:00