Port two HRAM labels from pokeyellow

This commit is contained in:
Rangi 2020-07-05 16:35:06 -04:00
parent a77999f7f1
commit b0aa4cb14a
4 changed files with 10 additions and 10 deletions

View file

@ -14,14 +14,14 @@ IsPlayerOnDungeonWarp::
set 4, [hl]
ret
; if a hidden object was found, stores $00 in [hFoundHiddenObject], else stores $ff
; if a hidden object was found, stores $00 in [hDidntFindAnyHiddenObject], else stores $ff
CheckForHiddenObject::
ld hl, hFoundHiddenObjectOrBookshelf
ld hl, hItemAlreadyFound
xor a
ld [hli], a ; [hFoundHiddenObjectOrBookshelf]
ld [hli], a ; [hItemAlreadyFound]
ld [hli], a ; [hSavedMapTextPtr]
ld [hli], a ; [hSavedMapTextPtr + 1]
ld [hl], a ; [hFoundHiddenObject]
ld [hl], a ; [hDidntFindAnyHiddenObject]
ld de, $0
ld hl, HiddenObjectMaps
.hiddenMapLoop
@ -81,7 +81,7 @@ CheckForHiddenObject::
ret
.noMatch
ld a, $ff
ld [hFoundHiddenObject], a
ld [hDidntFindAnyHiddenObject], a
ret
; checks if the coordinates in front of the player's sprite match Y in b and X in c