mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-04-15 14:51:04 +12:00
Change name wSeaRoutesWildMons to wWaterMons in WRAM
This commit is contained in:
parent
dfc81962d2
commit
21c266b950
3 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ TryDoWildEncounter:
|
||||||
lda_coord 8, 9
|
lda_coord 8, 9
|
||||||
cp $14 ; is the bottom left tile (8,9) of the half-block we're standing in a water tile?
|
cp $14 ; is the bottom left tile (8,9) of the half-block we're standing in a water tile?
|
||||||
jr nz, .gotWildEncounterType ; else, it's treated as a grass tile by default
|
jr nz, .gotWildEncounterType ; else, it's treated as a grass tile by default
|
||||||
ld hl, wSeaRoutesWildMons
|
ld hl, wWaterMons
|
||||||
; since the bottom right tile of a "left shore" half-block is $14 but the bottom left tile is not,
|
; since the bottom right tile of a "left shore" half-block is $14 but the bottom left tile is not,
|
||||||
; "left shore" half-blocks (such as the one in the east coast of Cinnabar) load grass encounters.
|
; "left shore" half-blocks (such as the one in the east coast of Cinnabar) load grass encounters.
|
||||||
.gotWildEncounterType
|
.gotWildEncounterType
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ LoadWildData::
|
||||||
ld [wWaterRate], a
|
ld [wWaterRate], a
|
||||||
and a
|
and a
|
||||||
ret z ; if no water data, we're done
|
ret z ; if no water data, we're done
|
||||||
ld de, wSeaRoutesWildMons ; otherwise, load surfing data
|
ld de, wWaterMons ; otherwise, load surfing data
|
||||||
ld bc, $14
|
ld bc, $14
|
||||||
jp CopyData
|
jp CopyData
|
||||||
|
|
||||||
|
|
|
||||||
2
wram.asm
2
wram.asm
|
|
@ -3046,7 +3046,7 @@ wGrassMons::
|
||||||
ds 8
|
ds 8
|
||||||
|
|
||||||
wWaterRate:: db
|
wWaterRate:: db
|
||||||
wSeaRoutesWildMons::
|
wWaterMons::
|
||||||
ds 10 * 2
|
ds 10 * 2
|
||||||
|
|
||||||
NEXTU
|
NEXTU
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue