Use a macro for warp tile IDs, like other tile behaviors

This commit is contained in:
Rangi 2020-07-14 14:33:16 -04:00
parent eb1ca5813b
commit fcb573f4ac
2 changed files with 27 additions and 32 deletions

View file

@ -4,7 +4,7 @@ WarpTileListPointers:
dw .FacingLeftWarpTiles dw .FacingLeftWarpTiles
dw .FacingRightWarpTiles dw .FacingRightWarpTiles
warp_tiles: MACRO warp_carpet_tiles: MACRO
REPT _NARG REPT _NARG
db \1 db \1
shift shift
@ -13,13 +13,13 @@ ENDR
ENDM ENDM
.FacingDownWarpTiles: .FacingDownWarpTiles:
warp_tiles $01, $12, $17, $3D, $04, $18, $33 warp_carpet_tiles $01, $12, $17, $3D, $04, $18, $33
.FacingUpWarpTiles: .FacingUpWarpTiles:
warp_tiles $01, $5C warp_carpet_tiles $01, $5C
.FacingLeftWarpTiles: .FacingLeftWarpTiles:
warp_tiles $1A, $4B warp_carpet_tiles $1A, $4B
.FacingRightWarpTiles: .FacingRightWarpTiles:
warp_tiles $0F, $4E warp_carpet_tiles $0F, $4E

View file

@ -24,9 +24,16 @@ WarpTileIDPointers:
dw .FacilityWarpTileIDs dw .FacilityWarpTileIDs
dw .PlateauWarpTileIDs dw .PlateauWarpTileIDs
.OverworldWarpTileIDs: warp_tiles: MACRO
db $1B, $58 REPT _NARG
db \1
shift
ENDR
db -1 ; end db -1 ; end
ENDM
.OverworldWarpTileIDs:
warp_tiles $1B, $58
.ForestGateWarpTileIDs: .ForestGateWarpTileIDs:
.MuseumWarpTileIDs: .MuseumWarpTileIDs:
@ -35,50 +42,39 @@ WarpTileIDPointers:
; fallthrough ; fallthrough
.RedsHouse1WarpTileIDs: .RedsHouse1WarpTileIDs:
.RedsHouse2WarpTileIDs: .RedsHouse2WarpTileIDs:
db $1A, $1C warp_tiles $1A, $1C
db -1 ; end
.MartWarpTileIDs: .MartWarpTileIDs:
.PokecenterWarpTileIDs: .PokecenterWarpTileIDs:
db $5E warp_tiles $5E
db -1 ; end
.ForestWarpTileIDs: .ForestWarpTileIDs:
db $5A, $5C, $3A warp_tiles $5A, $5C, $3A
db -1 ; end
.DojoWarpTileIDs: .DojoWarpTileIDs:
.GymWarpTileIDs: .GymWarpTileIDs:
db $4A warp_tiles $4A
db -1 ; end
.HouseWarpTileIDs: .HouseWarpTileIDs:
db $54, $5C, $32 warp_tiles $54, $5C, $32
db -1 ; end
.ShipWarpTileIDs: .ShipWarpTileIDs:
db $37, $39, $1E, $4A warp_tiles $37, $39, $1E, $4A
db -1 ; end
.InteriorWarpTileIDs: .InteriorWarpTileIDs:
db $15, $55, $04 warp_tiles $15, $55, $04
db -1 ; end
.CavernWarpTileIDs: .CavernWarpTileIDs:
db $18, $1A, $22 warp_tiles $18, $1A, $22
db -1 ; end
.LobbyWarpTileIDs: .LobbyWarpTileIDs:
db $1A, $1C, $38 warp_tiles $1A, $1C, $38
db -1 ; end
.MansionWarpTileIDs: .MansionWarpTileIDs:
db $1A, $1C, $53 warp_tiles $1A, $1C, $53
db -1 ; end
.LabWarpTileIDs: .LabWarpTileIDs:
db $34 warp_tiles $34
db -1 ; end
.FacilityWarpTileIDs: .FacilityWarpTileIDs:
db $43, $58, $20 db $43, $58, $20
@ -87,12 +83,11 @@ WarpTileIDPointers:
db $1B db $1B
; fallthrough ; fallthrough
.UndergroundWarpTileIDs: .UndergroundWarpTileIDs:
db $13 warp_tiles $13
db -1 ; end
.PlateauWarpTileIDs: .PlateauWarpTileIDs:
db $1B, $3B db $1B, $3B
; fallthrough ; fallthrough
.ShipPortWarpTileIDs: .ShipPortWarpTileIDs:
.ClubWarpTileIDs: .ClubWarpTileIDs:
db -1 ; end warp_tiles ; end