mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
No more W_
This commit is contained in:
parent
1ee9fb408c
commit
38065a744d
190 changed files with 2202 additions and 2202 deletions
|
|
@ -3,7 +3,7 @@ HiddenItemNear: ; 7481f (1d:481f)
|
|||
ld b, 0
|
||||
.loop
|
||||
ld de, 3
|
||||
ld a, [W_CURMAP]
|
||||
ld a, [wCurMap]
|
||||
call IsInRestOfArray
|
||||
ret nc ; return if current map has no hidden items
|
||||
push bc
|
||||
|
|
@ -24,19 +24,19 @@ HiddenItemNear: ; 7481f (1d:481f)
|
|||
inc hl
|
||||
jr nz, .loop ; if the item has already been obtained
|
||||
; check if the item is within 4-5 tiles (depending on the direction of item)
|
||||
ld a, [W_YCOORD]
|
||||
ld a, [wYCoord]
|
||||
call Sub5ClampTo0
|
||||
cp d
|
||||
jr nc, .loop
|
||||
ld a, [W_YCOORD]
|
||||
ld a, [wYCoord]
|
||||
add 4
|
||||
cp d
|
||||
jr c, .loop
|
||||
ld a, [W_XCOORD]
|
||||
ld a, [wXCoord]
|
||||
call Sub5ClampTo0
|
||||
cp e
|
||||
jr nc, .loop
|
||||
ld a, [W_XCOORD]
|
||||
ld a, [wXCoord]
|
||||
add 5
|
||||
cp e
|
||||
jr c, .loop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue