mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-29 13:47:50 -05:00
ba4d07a4b1f0c9a501ea4cfc43d674c9f18f2721
DoMoveTag0x1AB, DoMoveDoubleTeam, DoMoveMinimize, DoMoveAmnesia, DoMoveBoostAttack1, DoMoveBoostDefense1, DoMoveBoostDefense2, DoMoveDefenseCurl, DoMoveGrowth and DoMoveFamish. Eight forward to BoostOffensiveStat / BoostDefensiveStat / BoostHitChanceStat with ATK_STAT_IDX or SPATK_STAT_IDX and a stage count. These take struct StatIndex by value, per move_orb_effects.h, which is why the asm loads the global's word into r2. src/overlay_29_0232E250.c declared those globals as s32 and BoostDefensiveStat with an (s32, s16) tail, both contradicting move_orb_effects.h. Since the two declarations lived in different translation units the compiler never saw the disagreement and the ROM still matched. Replaced with an include of the canonical header; DoMoveDefendOrder is unchanged and still matches. Authored by Claude (Opus 5) under human direction. All ten matched on the first candidate once the canonical StatIndex signature was used. 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%