aboutsummaryrefslogtreecommitdiffstats
path: root/home/hidden_objects.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2026-01-07 22:05:37 -0500
committerGitHub <noreply@github.com>2026-01-07 22:05:37 -0500
commit0e49aef88ef94b9d3e80d89e4eb718e9425045df (patch)
treec63433287b9e2aceda14ff977cc06875cd0735d3 /home/hidden_objects.asm
parentUse macros to enforce "missable/hide/show object" constraints, and rename the... (diff)
downloadpokeyellow-0e49aef88ef94b9d3e80d89e4eb718e9425045df.tar.gz
pokeyellow-0e49aef88ef94b9d3e80d89e4eb718e9425045df.tar.xz
pokeyellow-0e49aef88ef94b9d3e80d89e4eb718e9425045df.zip
Use macros to enforce "hidden object" constraints, and rename them to "hidden events" (#559)
Diffstat (limited to '')
-rw-r--r--home/hidden_events.asm (renamed from home/hidden_objects.asm)14
1 files changed, 7 insertions, 7 deletions
diff --git a/home/hidden_objects.asm b/home/hidden_events.asm
index bb513b9d..5acc95d9 100644
--- a/home/hidden_objects.asm
+++ b/home/hidden_events.asm
@@ -1,21 +1,21 @@
UpdateCinnabarGymGateTileBlocks::
farjp UpdateCinnabarGymGateTileBlocks_
-CheckForHiddenObjectOrBookshelfOrCardKeyDoor::
+CheckForHiddenEventOrBookshelfOrCardKeyDoor::
ldh a, [hLoadedROMBank]
push af
ldh a, [hJoyHeld]
bit B_PAD_A, a
jr z, .nothingFound
; A button is pressed
- ld a, BANK(CheckForHiddenObject)
+ ld a, BANK(CheckForHiddenEvent)
ld [rROMB], a
ldh [hLoadedROMBank], a
- call CheckForHiddenObject
- ldh a, [hDidntFindAnyHiddenObject]
+ call CheckForHiddenEvent
+ ldh a, [hDidntFindAnyHiddenEvent]
and a
- jr nz, .hiddenObjectNotFound
- ld a, [wHiddenObjectFunctionRomBank]
+ jr nz, .hiddenEventNotFound
+ ld a, [wHiddenEventFunctionRomBank]
ld [rROMB], a
ldh [hLoadedROMBank], a
ld de, .returnAddress
@@ -24,7 +24,7 @@ CheckForHiddenObjectOrBookshelfOrCardKeyDoor::
.returnAddress
xor a
jr .done
-.hiddenObjectNotFound
+.hiddenEventNotFound
farcall PrintBookshelfText
ldh a, [hInteractedWithBookshelf]
and a