kep-hack/data/tilesets/warp_tile_ids.asm
May Evans e7784604ce Faraway Island warp now works
Essentially, I bruteforced making it work; made the tiles we desire be warps for us instead. You do this by noting the bottom-left tile of the block for some reason, so tile $30 of forest will be a warp tile even though it really looks like it shouldn't be. As far as I can tell, there are no consequences for this war crime code as long as you don't put a warp where it shouldn't be.
2022-12-12 06:17:33 +00:00

95 lines
1.8 KiB
NASM

WarpTileIDPointers:
table_width 2, WarpTileIDPointers
dw .OverworldWarpTileIDs
dw .RedsHouse1WarpTileIDs
dw .MartWarpTileIDs
dw .ForestWarpTileIDs
dw .RedsHouse2WarpTileIDs
dw .DojoWarpTileIDs
dw .PokecenterWarpTileIDs
dw .GymWarpTileIDs
dw .HouseWarpTileIDs
dw .ForestGateWarpTileIDs
dw .MuseumWarpTileIDs
dw .UndergroundWarpTileIDs
dw .GateWarpTileIDs
dw .ShipWarpTileIDs
dw .ShipPortWarpTileIDs
dw .CemeteryWarpTileIDs
dw .InteriorWarpTileIDs
dw .CavernWarpTileIDs
dw .LobbyWarpTileIDs
dw .MansionWarpTileIDs
dw .LabWarpTileIDs
dw .ClubWarpTileIDs
dw .FacilityWarpTileIDs
dw .PlateauWarpTileIDs
assert_table_length NUM_TILESETS
MACRO warp_tiles
IF _NARG
db \# ; all args
ENDC
db -1 ; end
ENDM
.OverworldWarpTileIDs:
warp_tiles $1B, $58
.ForestGateWarpTileIDs:
.MuseumWarpTileIDs:
.GateWarpTileIDs:
db $3B
; fallthrough
.RedsHouse1WarpTileIDs:
.RedsHouse2WarpTileIDs:
warp_tiles $1A, $1C
.MartWarpTileIDs:
.PokecenterWarpTileIDs:
warp_tiles $5E
.ForestWarpTileIDs:
warp_tiles $5A, $5C, $3A, $30, $50, $51 ; $30, $50, and $51 are for Faraway Island, intended for the upward ($58) and downward ($59) blocks we use to signify warps. - PvK
.DojoWarpTileIDs:
.GymWarpTileIDs:
warp_tiles $4A
.HouseWarpTileIDs:
warp_tiles $54, $5C, $32
.ShipWarpTileIDs:
warp_tiles $37, $39, $1E, $4A
.InteriorWarpTileIDs:
warp_tiles $15, $55, $04
.CavernWarpTileIDs:
warp_tiles $18, $1A, $22
.LobbyWarpTileIDs:
warp_tiles $1A, $1C, $38
.MansionWarpTileIDs:
warp_tiles $1A, $1C, $53
.LabWarpTileIDs:
warp_tiles $34
.FacilityWarpTileIDs:
db $43, $58, $20
; fallthrough
.CemeteryWarpTileIDs:
db $1B
; fallthrough
.UndergroundWarpTileIDs:
warp_tiles $13
.PlateauWarpTileIDs:
db $1B, $3B
; fallthrough
.ShipPortWarpTileIDs:
.ClubWarpTileIDs:
warp_tiles ; end