aboutsummaryrefslogtreecommitdiffstats
path: root/home/hidden_objects.asm
diff options
context:
space:
mode:
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