mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-11 07:44:47 +13:00
Citrine grass encounter fix
Had to hardcode the tile to work. Yeah.
This commit is contained in:
parent
19762488ae
commit
e234d77c24
|
|
@ -9,7 +9,6 @@ ENDM
|
||||||
Tilesets:
|
Tilesets:
|
||||||
table_width 12, Tilesets
|
table_width 12, Tilesets
|
||||||
; name, 3 counter tiles, grass tile, animations
|
; name, 3 counter tiles, grass tile, animations
|
||||||
; FIXME: Needs to have a new column for a second grass tile for Citrine to work properly. Missing tile is $3F.
|
|
||||||
tileset Overworld, -1, -1, -1, $52, TILEANIM_WATER_FLOWER
|
tileset Overworld, -1, -1, -1, $52, TILEANIM_WATER_FLOWER
|
||||||
tileset RedsHouse1, -1, -1, -1, -1, TILEANIM_NONE
|
tileset RedsHouse1, -1, -1, -1, -1, TILEANIM_NONE
|
||||||
tileset Mart, $18,$19,$1E, -1, TILEANIM_NONE
|
tileset Mart, $18,$19,$1E, -1, TILEANIM_NONE
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,5 @@ WaterTilesets:
|
||||||
db CAVERN
|
db CAVERN
|
||||||
db FACILITY
|
db FACILITY
|
||||||
db PLATEAU
|
db PLATEAU
|
||||||
|
db CITRINE
|
||||||
db -1 ; end
|
db -1 ; end
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,13 @@ TryDoWildEncounter:
|
||||||
cp c
|
cp c
|
||||||
ld a, [wGrassRate]
|
ld a, [wGrassRate]
|
||||||
jr z, .CanEncounter
|
jr z, .CanEncounter
|
||||||
|
|
||||||
|
cp CITRINE
|
||||||
|
ld a, $0E ; So the Citrine grass works.
|
||||||
|
cp c
|
||||||
|
ld a, [wGrassRate]
|
||||||
|
jr z, .CanEncounter
|
||||||
|
|
||||||
ld a, $14 ; in all tilesets with a water tile, this is its id
|
ld a, $14 ; in all tilesets with a water tile, this is its id
|
||||||
cp c
|
cp c
|
||||||
ld a, [wWaterRate]
|
ld a, [wWaterRate]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue