diff options
| author | Narishma-gb <194818981+Narishma-gb@users.noreply.github.com> | 2026-05-24 16:56:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-24 09:56:30 -0500 |
| commit | c3c71909c9ccc2e4db6e4f29f581d8c3c1c1d11d (patch) | |
| tree | 4755755d28a77a07bb17e244897daf5697ac4dd5 | |
| parent | Merge branch 'master' of https://github.com/pret/pokered (diff) | |
| download | pokeyellow-c3c71909c9ccc2e4db6e4f29f581d8c3c1c1d11d.tar.gz pokeyellow-c3c71909c9ccc2e4db6e4f29f581d8c3c1c1d11d.tar.xz pokeyellow-c3c71909c9ccc2e4db6e4f29f581d8c3c1c1d11d.zip | |
Fix comments in `IsNextTileShoreOrWater` (#152)
| -rw-r--r-- | engine/items/item_effects.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm index 0cbb0c48..8efea6ae 100644 --- a/engine/items/item_effects.asm +++ b/engine/items/item_effects.asm @@ -3114,7 +3114,7 @@ SendNewMonToBox: ; checks if the tile in front of the player is a shore or water tile ; used for surfing and fishing -; unsets carry if it is, sets carry if not +; sets carry if it is, unsets carry if not IsNextTileShoreOrWater:: ld a, [wCurMapTileset] ld hl, WaterTilesets @@ -3124,15 +3124,15 @@ IsNextTileShoreOrWater:: ld hl, WaterTile ld a, [wCurMapTileset] cp SHIP_PORT ; Vermilion Dock tileset - jr z, .skipShoreTiles ; if it's the Vermilion Dock tileset - cp GYM ; eastern shore tile in Safari Zone jr z, .skipShoreTiles - cp DOJO ; usual eastern shore tile + cp GYM + jr z, .skipShoreTiles + cp DOJO jr z, .skipShoreTiles ld hl, ShoreTiles .skipShoreTiles ld a, [wTileInFrontOfPlayer] - ld de, $1 + ld de, 1 call IsInArray ret |
