pokecrystal-board/constants/map_data_constants.asm
2023-10-31 20:25:56 +01:00

97 lines
2.2 KiB
NASM

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
; map struct members (see data/maps/maps.asm)
rsreset
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
; map environments (wEnvironment)
; EnvironmentColorsPointers indexes (see data/maps/environment_colors.asm)
const_def
const OUTDOOR_GRASSY
const OUTDOOR_MOUNTAIN
const OUTDOOR_COAST
const OUTDOOR_SEA
DEF INDOOR_ENVIRONMENT EQU const_value
const INDOOR_FOREST
const INDOOR_CAVE
const INDOOR_ICE_CAVE
const INDOOR_BUILDING
DEF NUM_ENVIRONMENTS EQU const_value
; map palettes (wMapTimeOfDay)
const_def
const PALETTE_AUTO
const PALETTE_DAY
const PALETTE_NITE
const PALETTE_MORN
const PALETTE_EVE
DEF NUM_MAP_PALETTES EQU const_value
IN_DARKNESS_F EQU 3
IN_DARKNESS EQU 1 << IN_DARKNESS_F ; masked with a PALETTE_* constant
; FishGroups indexes (see data/wild/fish.asm)
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
DEF NUM_FISHGROUPS EQU const_value - 1
; connection directions (see data/maps/data.asm)
const_def
const EAST_F
const WEST_F
const SOUTH_F
const NORTH_F
; wMapConnections
const_def
shift_const EAST
shift_const WEST
shift_const SOUTH
shift_const NORTH
; SpawnPoints indexes (see data/maps/spawn_points.asm)
const_def
const SPAWN_LEVEL_1
; const SPAWN_LEVEL_2
if DEF(_DEBUG)
const SPAWN_DEBUGLEVEL_1
const SPAWN_DEBUGLEVEL_2
const SPAWN_DEBUGLEVEL_3
const SPAWN_DEBUGLEVEL_4
const SPAWN_DEBUGLEVEL_5
endc
DEF NUM_SPAWNS EQU const_value
DEF SPAWN_FROM_RAM EQU -2
DEF SPAWN_N_A EQU -1
; Flypoints indexes (see data/maps/flypoints.asm)
const_def
const FLY_1
DEF NUM_FLYPOINTS EQU const_value