aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/MtMoonB2F.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2026-01-07 22:05:20 -0500
committerGitHub <noreply@github.com>2026-01-07 22:05:20 -0500
commitfe1e76466b293c83e6cd3a7d4639fb3c49da26ad (patch)
treeaba22f9f595e09024b902c08ddfdac67ee0e85f3 /scripts/MtMoonB2F.asm
parentUpdate RGBDS to 1.0.1 (although 1.0.0 still works) (diff)
downloadpokeyellow-fe1e76466b293c83e6cd3a7d4639fb3c49da26ad.tar.gz
pokeyellow-fe1e76466b293c83e6cd3a7d4639fb3c49da26ad.tar.xz
pokeyellow-fe1e76466b293c83e6cd3a7d4639fb3c49da26ad.zip
Use macros to enforce "missable/hide/show object" constraints, and rename them to "toggleable objects" (#557)
Diffstat (limited to 'scripts/MtMoonB2F.asm')
-rw-r--r--scripts/MtMoonB2F.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/MtMoonB2F.asm b/scripts/MtMoonB2F.asm
index 34f11d99..d3c7e57a 100644
--- a/scripts/MtMoonB2F.asm
+++ b/scripts/MtMoonB2F.asm
@@ -141,12 +141,12 @@ MtMoonB2FSuperNerdTakesOtherFossilScript:
call DisplayTextID
CheckEvent EVENT_GOT_DOME_FOSSIL
jr z, .got_dome_fossil
- ld a, HS_MT_MOON_B2F_FOSSIL_2
+ ld a, TOGGLE_MT_MOON_B2F_FOSSIL_2
jr .continue
.got_dome_fossil
- ld a, HS_MT_MOON_B2F_FOSSIL_1
+ ld a, TOGGLE_MT_MOON_B2F_FOSSIL_1
.continue
- ld [wMissableObjectIndex], a
+ ld [wToggleableObjectIndex], a
predef HideObject
xor a
ld [wJoyIgnore], a
@@ -250,8 +250,8 @@ MtMoonB2FDomeFossilText:
call GiveItem
jp nc, MtMoonB2FYouHaveNoRoomText
call MtMoonB2FReceivedFossilText
- ld a, HS_MT_MOON_B2F_FOSSIL_1
- ld [wMissableObjectIndex], a
+ ld a, TOGGLE_MT_MOON_B2F_FOSSIL_1
+ ld [wToggleableObjectIndex], a
predef HideObject
SetEvent EVENT_GOT_DOME_FOSSIL
ld a, SCRIPT_MTMOONB2F_MOVE_SUPER_NERD
@@ -278,8 +278,8 @@ MtMoonB2FHelixFossilText:
call GiveItem
jp nc, MtMoonB2FYouHaveNoRoomText
call MtMoonB2FReceivedFossilText
- ld a, HS_MT_MOON_B2F_FOSSIL_2
- ld [wMissableObjectIndex], a
+ ld a, TOGGLE_MT_MOON_B2F_FOSSIL_2
+ ld [wToggleableObjectIndex], a
predef HideObject
SetEvent EVENT_GOT_HELIX_FOSSIL
ld a, SCRIPT_MTMOONB2F_MOVE_SUPER_NERD