diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-27 13:22:32 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-27 23:08:46 -0400 |
commit | 599046c89283997efac417c445d0bdcf75fd373c (patch) | |
tree | 96739c05bfcb374ebf26fa5833a11a49bc59a7a5 /engine/menus/intro_menu.asm | |
parent | 6e142eb5b365659ec9e13360b663037cbfa615af (diff) |
Identify remaining Mystery Gift labels and constants
Source: https://projectpokemon.org/home/forums/topic/43930-mystery-gift-reverse-engineering-of-ir-protocol/
Diffstat (limited to 'engine/menus/intro_menu.asm')
-rw-r--r-- | engine/menus/intro_menu.asm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/menus/intro_menu.asm b/engine/menus/intro_menu.asm index 2155bdc3..2fe285b1 100644 --- a/engine/menus/intro_menu.asm +++ b/engine/menus/intro_menu.asm @@ -87,12 +87,13 @@ _ResetWRAM: ld [wRoamMon2MapNumber], a ld [wRoamMon3MapNumber], a - ld a, BANK(sMysteryGiftItem) + ld a, BANK(sMysteryGiftItem) ; aka BANK(sMysteryGiftUnlocked) call OpenSRAM ld hl, sMysteryGiftItem xor a ld [hli], a - dec a + assert sMysteryGiftItem + 1 == sMysteryGiftUnlocked + dec a ; -1 ld [hl], a call CloseSRAM @@ -280,7 +281,7 @@ Continue: ld c, 20 call DelayFrames farcall JumpRoamMons - farcall MysteryGift_CopyReceivedDecosToPC + farcall CopyMysteryGiftReceivedDecorationsToPC farcall ClockContinue ld a, [wSpawnAfterChampion] cp SPAWN_LANCE |