mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-30 14:18:10 -05:00
152f6c7ea6f51f2584e4ad5b214ad5d074684495
Decompile from asm: SetMoneyStored 0x0201070C GetCurrentKecleonShop1ItemByIndex 0x02010898 GetCurrentKecleonShop2ItemByIndex 0x02010BA4 GetExclusiveItemOffset 0x02010E40 SwapShopFreeDoublePointer 0x020114F8 IsMonsterAffectedByGravelyrockGroundMode 0x02011830 The two Kecleon accessors index arrays hanging off pointers at 0x132C and 0x1370. Unlike the previous two extensions those offsets fall inside fill2[0x1009] rather than past the struct's end, so the filler is split into three runs with the two pointers between them. maybeMoney still lands at 0x1394 and nothing after it moves, which the rebuild of every struct bag_items user confirms. SetMoneyStored clamps to 0x0098967F, decimal 9999999, and to zero below. GetExclusiveItemOffset returns zero unless the item is in CATEGORY_EXCLUSIVE_ITEMS, which item.h already defines as 15, and otherwise the item's distance from 0x1bc, narrowed to 16 bits. IsMonsterAffectedByGravelyrockGroundMode normalises the species through FemaleToMaleForm and compares against two ids, left as raw values because naming them is not this commit's job. Its return is word-sized: bool8 appends and r0, r0, #0xff, which the target does not have. SwapShopFreeDoublePointer frees through two levels of indirection and clears the outer pointer, returning early when it is already null. No comments are added to any pmd-sky file. Authored by Claude (Opus 5) under human direction. Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK. 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%