mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-28 21:31:17 -05:00
25d5994bdf834ee8b69f8dda53ee1dba36cc4fed
GetLeaderMonster, SetDungeonRngPreseed, GetDungeonRngPreseed, SetDungeonRngPreseed23Bit, FindClosestUnoccupiedTileWithin2, FindFarthestUnoccupiedTileWithin2, FindUnoccupiedTileWithin3, FixedRoomActionParamToDirection, ov29_022E9FC0 and ov29_022E9FD0. The three preseed accessors read and write prng_state::preseed at offset 8, using the struct dg_random.h already defines. SetDungeonRngPreseed23Bit sets bit 0 and masks the top byte, which is where its name comes from. GetLeaderMonster merged into dg_uty.h alongside GetLeader, so the provisional `extern struct monster *GetLeaderMonster();` that src/overlay_29_022F0EDC.c carried is removed -- that file already includes dg_uty.h, which now declares it properly with a (void) parameter list. The three FindNearbyUnoccupiedTile wrappers pass a displacement table and a count (0x19 within 2, 0x31 within 3). That helper and its tables are undeclared in the tree, so their prototypes are written from these call sites and are provisional. Authored by Claude (Opus 5) under human direction. All ten verified at score 0. Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK. None carries a region conditional, so US alone is sufficient. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…
…
…
…
…
Pokémon Mystery Dungeon: Explorers of Sky
This is a WIP disassembly of Pokémon Mystery Dungeon: Explorers of Sky. For instructions on how to set up the repository, please read INSTALL.md. For information on how to contribute changes, see CONTRIBUTING.md.
This repository builds the following ROMs:
- pmdsky.us.nds
sha1: 5fa96ca8d8dd6405d6cd2bad73ed68bc73a9d152 - pmdsky.eu.nds
sha1: c838a5adf1ed32d2da8454976e5b1a1aa189c139 - pmdsky.jp.nds
sha1: 7785138dd343b6f2d0f2c9cadc26b4aa927161d7
For contacts and other pret projects, see pret.github.io.
Description
Languages
Assembly
66.3%
C
18%
C++
7.1%
Boogie
4.3%
sed
1.5%
Other
2.8%