mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
fix fishing in statues
This commit is contained in:
parent
2670abaf56
commit
9f5094d23e
|
@ -12,3 +12,8 @@ WaterTilesets:
|
|||
db CITRINE
|
||||
db CELESTE
|
||||
db -1 ; end
|
||||
|
||||
NonShoreTilesets:
|
||||
db GYM
|
||||
db SHIP_PORT
|
||||
db -1 ; end
|
||||
|
|
|
@ -2942,9 +2942,11 @@ IsNextTileShoreOrWater:
|
|||
call IsInArray
|
||||
jr nc, .notShoreOrWater
|
||||
ld a, [wCurMapTileset]
|
||||
cp SHIP_PORT ; Vermilion Dock tileset
|
||||
ld hl, NonShoreTilesets
|
||||
ld de, 1
|
||||
call IsInArray ; check if shore tiles should be skipped
|
||||
ld a, [wTileInFrontOfPlayer] ; tile in front of player
|
||||
jr z, .skipShoreTiles ; if it's the Vermilion Dock tileset
|
||||
jr c, .skipShoreTiles ; if it's the Vermilion Dock tileset
|
||||
cp $48 ; eastern shore tile in Safari Zone
|
||||
jr z, .shoreOrWater
|
||||
cp $32 ; usual eastern shore tile
|
||||
|
|
Loading…
Reference in a new issue