aboutsummaryrefslogtreecommitdiffstats
path: root/home/hidden_objects.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2026-01-17 22:38:33 -0600
committerdannye <33dannye@gmail.com>2026-01-17 22:38:33 -0600
commitbc2354dd6626ce28bb9561547ed2107cfa56c18e (patch)
tree5902d4c3389253c76b7c3351e0d7dfecb551c28d /home/hidden_objects.asm
parentIdentify characters in `_OakSpeechText2B` and `Printer_GetMonStats.IDNo` (#144) (diff)
parentUse macros for `WildMonEncounterSlotChances` (#562) (diff)
downloadpokeyellow-bc2354dd6626ce28bb9561547ed2107cfa56c18e.tar.gz
pokeyellow-bc2354dd6626ce28bb9561547ed2107cfa56c18e.tar.xz
pokeyellow-bc2354dd6626ce28bb9561547ed2107cfa56c18e.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/hidden_objects.asm')
-rw-r--r--home/hidden_objects.asm37
1 files changed, 0 insertions, 37 deletions
diff --git a/home/hidden_objects.asm b/home/hidden_objects.asm
deleted file mode 100644
index c1e1c9d3..00000000
--- a/home/hidden_objects.asm
+++ /dev/null
@@ -1,37 +0,0 @@
-UpdateCinnabarGymGateTileBlocks::
- farcall UpdateCinnabarGymGateTileBlocks_
- ret
-
-CheckForHiddenObjectOrBookshelfOrCardKeyDoor::
- ldh a, [hLoadedROMBank]
- push af
- ldh a, [hJoyHeld]
- bit B_PAD_A, a
- jr z, .nothingFound
-; A button is pressed
- ld a, BANK(CheckForHiddenObject)
- call BankswitchCommon
- call CheckForHiddenObject
- ldh a, [hDidntFindAnyHiddenObject]
- and a
- jr nz, .hiddenObjectNotFound
- xor a
- ldh [hItemAlreadyFound], a
- ld a, [wHiddenObjectFunctionRomBank]
- call BankswitchCommon
- call JumpToAddress
- ldh a, [hItemAlreadyFound]
- jr .done
-.hiddenObjectNotFound
- predef GetTileAndCoordsInFrontOfPlayer
- farcall PrintBookshelfText
- ldh a, [hInteractedWithBookshelf]
- and a
- jr z, .done
-.nothingFound
- ld a, $ff
-.done
- ldh [hItemAlreadyFound], a
- pop af
- call BankswitchCommon
- ret