2022-06-06 21:25:42 +00:00
|
|
|
DEF MAPGROUP_N_A EQU -1
|
|
|
|
DEF GROUP_N_A EQU -1
|
|
|
|
DEF MAP_N_A EQU -1
|
|
|
|
DEF MAPGROUP_NONE EQU 0
|
|
|
|
DEF GROUP_NONE EQU 0
|
|
|
|
DEF MAP_NONE EQU 0
|
2017-12-26 04:45:54 +00:00
|
|
|
|
2018-02-03 21:58:49 +00:00
|
|
|
; map struct members (see data/maps/maps.asm)
|
2021-03-11 02:06:06 +00:00
|
|
|
rsreset
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF MAP_MAPATTRIBUTES_BANK rb ; 0
|
|
|
|
DEF MAP_TILESET rb ; 1
|
|
|
|
DEF MAP_ENVIRONMENT rb ; 2
|
|
|
|
DEF MAP_MAPATTRIBUTES rw ; 3
|
|
|
|
DEF MAP_LOCATION rb ; 5
|
|
|
|
DEF MAP_MUSIC rb ; 6
|
|
|
|
DEF MAP_PALETTE rb ; 7
|
|
|
|
DEF MAP_FISHGROUP rb ; 8
|
|
|
|
DEF MAP_LENGTH EQU _RS
|
2017-12-26 04:45:54 +00:00
|
|
|
|
|
|
|
; map environments (wEnvironment)
|
2021-03-16 21:53:42 +00:00
|
|
|
; EnvironmentColorsPointers indexes (see data/maps/environment_colors.asm)
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2017-12-26 04:45:54 +00:00
|
|
|
const TOWN
|
|
|
|
const ROUTE
|
|
|
|
const INDOOR
|
|
|
|
const CAVE
|
|
|
|
const ENVIRONMENT_5
|
|
|
|
const GATE
|
|
|
|
const DUNGEON
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_ENVIRONMENTS EQU const_value - 1
|
2017-12-26 04:45:54 +00:00
|
|
|
|
2024-01-07 11:38:00 +00:00
|
|
|
; map palettes (wMapTimeOfDay)
|
2017-12-26 04:45:54 +00:00
|
|
|
const_def
|
|
|
|
const PALETTE_AUTO
|
|
|
|
const PALETTE_DAY
|
|
|
|
const PALETTE_NITE
|
|
|
|
const PALETTE_MORN
|
|
|
|
const PALETTE_DARK
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_MAP_PALETTES EQU const_value
|
2017-12-26 04:45:54 +00:00
|
|
|
|
2018-02-01 20:19:27 +00:00
|
|
|
; FishGroups indexes (see data/wild/fish.asm)
|
2017-12-26 04:45:54 +00:00
|
|
|
const_def
|
|
|
|
const FISHGROUP_NONE
|
|
|
|
const FISHGROUP_SHORE
|
|
|
|
const FISHGROUP_OCEAN
|
|
|
|
const FISHGROUP_LAKE
|
|
|
|
const FISHGROUP_POND
|
|
|
|
const FISHGROUP_DRATINI
|
|
|
|
const FISHGROUP_QWILFISH_SWARM
|
|
|
|
const FISHGROUP_REMORAID_SWARM
|
|
|
|
const FISHGROUP_GYARADOS
|
|
|
|
const FISHGROUP_DRATINI_2
|
|
|
|
const FISHGROUP_WHIRL_ISLANDS
|
|
|
|
const FISHGROUP_QWILFISH
|
|
|
|
const FISHGROUP_REMORAID
|
|
|
|
const FISHGROUP_QWILFISH_NO_SWARM
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_FISHGROUPS EQU const_value - 1
|
2017-12-26 04:45:54 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
; wMapConnections
|
2024-11-30 00:29:30 +00:00
|
|
|
; connection directions (see data/maps/data.asm)
|
2017-12-26 04:45:54 +00:00
|
|
|
const_def
|
|
|
|
shift_const EAST
|
|
|
|
shift_const WEST
|
|
|
|
shift_const SOUTH
|
|
|
|
shift_const NORTH
|
|
|
|
|
2018-01-18 20:58:55 +00:00
|
|
|
; SpawnPoints indexes (see data/maps/spawn_points.asm)
|
2021-03-04 03:22:41 +00:00
|
|
|
const_def
|
2018-01-18 20:58:55 +00:00
|
|
|
const SPAWN_HOME
|
|
|
|
const SPAWN_DEBUG
|
|
|
|
; kanto
|
|
|
|
const SPAWN_PALLET
|
|
|
|
const SPAWN_VIRIDIAN
|
|
|
|
const SPAWN_PEWTER
|
|
|
|
const SPAWN_CERULEAN
|
|
|
|
const SPAWN_ROCK_TUNNEL
|
|
|
|
const SPAWN_VERMILION
|
|
|
|
const SPAWN_LAVENDER
|
|
|
|
const SPAWN_SAFFRON
|
|
|
|
const SPAWN_CELADON
|
|
|
|
const SPAWN_FUCHSIA
|
|
|
|
const SPAWN_CINNABAR
|
|
|
|
const SPAWN_INDIGO
|
|
|
|
; johto
|
|
|
|
const SPAWN_NEW_BARK
|
|
|
|
const SPAWN_CHERRYGROVE
|
|
|
|
const SPAWN_VIOLET
|
|
|
|
const SPAWN_UNION_CAVE
|
|
|
|
const SPAWN_AZALEA
|
|
|
|
const SPAWN_CIANWOOD
|
|
|
|
const SPAWN_GOLDENROD
|
|
|
|
const SPAWN_OLIVINE
|
|
|
|
const SPAWN_ECRUTEAK
|
|
|
|
const SPAWN_MAHOGANY
|
2018-01-22 18:00:35 +00:00
|
|
|
const SPAWN_LAKE_OF_RAGE
|
2018-01-18 20:58:55 +00:00
|
|
|
const SPAWN_BLACKTHORN
|
|
|
|
const SPAWN_MT_SILVER
|
|
|
|
const SPAWN_FAST_SHIP
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_SPAWNS EQU const_value
|
2018-01-18 20:58:55 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF SPAWN_N_A EQU -1
|
2021-03-04 03:22:41 +00:00
|
|
|
|
2020-03-15 18:10:53 +00:00
|
|
|
; Flypoints indexes (see data/maps/flypoints.asm)
|
|
|
|
const_def
|
|
|
|
; johto
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF JOHTO_FLYPOINT EQU const_value
|
2020-03-15 18:10:53 +00:00
|
|
|
const FLY_NEW_BARK
|
|
|
|
const FLY_CHERRYGROVE
|
|
|
|
const FLY_VIOLET
|
|
|
|
const FLY_AZALEA
|
|
|
|
const FLY_GOLDENROD
|
|
|
|
const FLY_ECRUTEAK
|
|
|
|
const FLY_OLIVINE
|
|
|
|
const FLY_CIANWOOD
|
|
|
|
const FLY_MAHOGANY
|
|
|
|
const FLY_LAKE_OF_RAGE
|
|
|
|
const FLY_BLACKTHORN
|
|
|
|
const FLY_MT_SILVER
|
|
|
|
; kanto
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF KANTO_FLYPOINT EQU const_value
|
2020-03-15 18:10:53 +00:00
|
|
|
const FLY_PALLET
|
|
|
|
const FLY_VIRIDIAN
|
|
|
|
const FLY_PEWTER
|
|
|
|
const FLY_CERULEAN
|
|
|
|
const FLY_VERMILION
|
|
|
|
const FLY_ROCK_TUNNEL
|
|
|
|
const FLY_LAVENDER
|
|
|
|
const FLY_CELADON
|
|
|
|
const FLY_SAFFRON
|
|
|
|
const FLY_FUCHSIA
|
|
|
|
const FLY_CINNABAR
|
|
|
|
const FLY_INDIGO
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_FLYPOINTS EQU const_value
|
2020-03-15 18:10:53 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF MAX_OUTDOOR_SPRITES EQU 23 ; see engine/overworld/overworld.asm
|