2015-07-23 16:59:19 +00:00
|
|
|
GROUP_N_A EQU -1
|
|
|
|
MAP_N_A EQU -1
|
|
|
|
GROUP_NONE EQU 0
|
|
|
|
MAP_NONE EQU 0
|
2014-05-03 05:02:08 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; map permissions (wPermission)
|
|
|
|
const_value SET 1
|
|
|
|
const TOWN
|
|
|
|
const ROUTE
|
|
|
|
const INDOOR
|
|
|
|
const CAVE
|
|
|
|
const PERM_5
|
|
|
|
const GATE
|
|
|
|
const DUNGEON
|
2015-07-13 04:16:35 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; map palettes (wPermission)
|
2015-07-13 04:16:35 +00:00
|
|
|
const_def
|
2017-12-09 05:50:59 +00:00
|
|
|
const PALETTE_AUTO
|
|
|
|
const PALETTE_DAY
|
|
|
|
const PALETTE_NITE
|
|
|
|
const PALETTE_MORN
|
|
|
|
const PALETTE_DARK
|
|
|
|
|
|
|
|
; fish groups
|
|
|
|
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
|
|
|
|
|
2013-06-11 01:56:34 +00:00
|
|
|
|
|
|
|
; connection directions
|
2015-11-12 16:10:19 +00:00
|
|
|
const_def
|
|
|
|
const EAST_F
|
|
|
|
const WEST_F
|
|
|
|
const SOUTH_F
|
|
|
|
const NORTH_F
|
2013-07-08 05:35:41 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; MapConnections
|
2015-07-13 04:16:35 +00:00
|
|
|
const_def
|
|
|
|
shift_const EAST
|
|
|
|
shift_const WEST
|
|
|
|
shift_const SOUTH
|
|
|
|
shift_const NORTH
|
2013-07-08 05:35:41 +00:00
|
|
|
|
2013-07-14 17:49:37 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; object_struct members (see macros/wram.asm)
|
2015-07-13 04:16:35 +00:00
|
|
|
const_def
|
2016-05-08 18:11:24 +00:00
|
|
|
const OBJECT_SPRITE ; 00
|
|
|
|
const OBJECT_MAP_OBJECT_INDEX ; 01
|
|
|
|
const OBJECT_SPRITE_TILE ; 02
|
|
|
|
const OBJECT_MOVEMENTTYPE ; 03
|
|
|
|
const OBJECT_FLAGS1 ; 04
|
|
|
|
const OBJECT_FLAGS2 ; 05
|
|
|
|
const OBJECT_PALETTE ; 06
|
|
|
|
const OBJECT_DIRECTION_WALKING ; 07
|
|
|
|
const OBJECT_FACING ; 08
|
|
|
|
const OBJECT_STEP_TYPE ; 09
|
|
|
|
const OBJECT_STEP_DURATION ; 0a
|
|
|
|
const OBJECT_ACTION ; 0b
|
|
|
|
const OBJECT_STEP_FRAME ; 0c
|
|
|
|
const OBJECT_FACING_STEP ; 0d
|
|
|
|
const OBJECT_NEXT_TILE ; 0e
|
|
|
|
const OBJECT_STANDING_TILE ; 0f
|
|
|
|
const OBJECT_NEXT_MAP_X ; 10
|
|
|
|
const OBJECT_NEXT_MAP_Y ; 11
|
|
|
|
const OBJECT_MAP_X ; 12
|
|
|
|
const OBJECT_MAP_Y ; 13
|
|
|
|
const OBJECT_INIT_X ; 14
|
|
|
|
const OBJECT_INIT_Y ; 15
|
|
|
|
const OBJECT_RADIUS ; 16
|
|
|
|
const OBJECT_SPRITE_X ; 17
|
|
|
|
const OBJECT_SPRITE_Y ; 18
|
|
|
|
const OBJECT_SPRITE_X_OFFSET ; 19
|
|
|
|
const OBJECT_SPRITE_Y_OFFSET ; 1a
|
|
|
|
const OBJECT_MOVEMENT_BYTE_INDEX ; 1b
|
|
|
|
const OBJECT_28 ; 1c
|
|
|
|
const OBJECT_29 ; 1d
|
|
|
|
const OBJECT_30 ; 1e
|
|
|
|
const OBJECT_31 ; 1f
|
|
|
|
const OBJECT_RANGE ; 20
|
2015-02-11 07:03:46 +00:00
|
|
|
; 33-39 are not used
|
2015-07-15 19:48:44 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; map_object struct members (see macros/wram.asm)
|
2015-07-15 19:48:44 +00:00
|
|
|
const_def
|
2015-07-18 19:46:38 +00:00
|
|
|
const MAPOBJECT_OBJECT_STRUCT_ID ; 0
|
2015-07-15 19:48:44 +00:00
|
|
|
const MAPOBJECT_SPRITE ; 1
|
|
|
|
const MAPOBJECT_Y_COORD ; 2
|
|
|
|
const MAPOBJECT_X_COORD ; 3
|
2015-07-29 22:22:23 +00:00
|
|
|
const MAPOBJECT_MOVEMENT ; 4
|
|
|
|
const MAPOBJECT_RADIUS ; 5
|
2015-07-15 19:48:44 +00:00
|
|
|
const MAPOBJECT_HOUR ; 6
|
|
|
|
const MAPOBJECT_TIMEOFDAY ; 7
|
|
|
|
const MAPOBJECT_COLOR ; 8
|
|
|
|
const MAPOBJECT_RANGE ; 9
|
2015-07-18 19:46:38 +00:00
|
|
|
const MAPOBJECT_SCRIPT_POINTER ; a
|
2015-07-15 19:48:44 +00:00
|
|
|
const MAPOBJECT_POINTER_HI ; b
|
2015-07-18 19:46:38 +00:00
|
|
|
const MAPOBJECT_EVENT_FLAG ; c
|
2015-07-15 19:48:44 +00:00
|
|
|
const MAPOBJECT_FLAG_HI ; d
|
2015-07-17 21:17:10 +00:00
|
|
|
const MAPOBJECT_E ; unused
|
|
|
|
const MAPOBJECT_F ; unused
|
2015-11-03 14:16:56 +00:00
|
|
|
OBJECT_LENGTH EQU const_value
|
2015-07-19 08:58:31 +00:00
|
|
|
|
2015-07-15 19:48:44 +00:00
|
|
|
MAPOBJECT_SCREEN_HEIGHT EQU 11
|
|
|
|
MAPOBJECT_SCREEN_WIDTH EQU 12
|
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; object_struct OBJECT_FACING values
|
2015-11-01 01:05:02 +00:00
|
|
|
OW_DOWN EQU DOWN << 2
|
|
|
|
OW_UP EQU UP << 2
|
|
|
|
OW_LEFT EQU LEFT << 2
|
|
|
|
OW_RIGHT EQU RIGHT << 2
|
2015-07-15 19:48:44 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; object_struct OBJECT_FLAGS1 bit flags
|
|
|
|
INVISIBLE EQU 0
|
|
|
|
FIXED_FACING EQU 2
|
|
|
|
SLIDING EQU 3
|
|
|
|
EMOTE_OBJECT EQU 7
|
2015-07-23 07:41:52 +00:00
|
|
|
|
|
|
|
|
2017-12-11 18:47:58 +00:00
|
|
|
; SpawnPoints indexes (see data/spawn_points.asm)
|
2015-07-23 07:41:52 +00:00
|
|
|
const_value = -1
|
|
|
|
const SPAWN_N_A
|
|
|
|
const SPAWN_HOME
|
|
|
|
const SPAWN_DEBUG
|
2017-12-09 05:50:59 +00:00
|
|
|
; kanto
|
2015-07-23 07:41:52 +00:00
|
|
|
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
|
2017-12-09 05:50:59 +00:00
|
|
|
; johto
|
2015-07-23 07:41:52 +00:00
|
|
|
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
|
|
|
|
const SPAWN_LAKE
|
|
|
|
const SPAWN_BLACKTHORN
|
|
|
|
const SPAWN_MT_SILVER
|
|
|
|
const SPAWN_FAST_SHIP
|
|
|
|
NUM_SPAWNS EQU const_value
|
2015-07-29 22:22:23 +00:00
|
|
|
|
2015-11-14 19:41:47 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; TryReadSign arguments (see engine/events.asm)
|
|
|
|
const_def
|
|
|
|
const SIGNPOST_READ
|
|
|
|
const SIGNPOST_UP
|
|
|
|
const SIGNPOST_DOWN
|
|
|
|
const SIGNPOST_RIGHT
|
|
|
|
const SIGNPOST_LEFT
|
|
|
|
const SIGNPOST_IFSET
|
|
|
|
const SIGNPOST_IFNOTSET
|
|
|
|
const SIGNPOST_ITEM
|
|
|
|
const SIGNPOST_COPY
|
2015-11-15 19:59:38 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; person_event types
|
|
|
|
; TryObjectEvent arguments (see engine/events.asm)
|
2015-11-15 19:59:38 +00:00
|
|
|
const_def
|
|
|
|
const PERSONTYPE_SCRIPT
|
2015-12-15 15:55:56 +00:00
|
|
|
const PERSONTYPE_ITEMBALL
|
2015-11-15 19:59:38 +00:00
|
|
|
const PERSONTYPE_TRAINER
|
|
|
|
const PERSONTYPE_3
|
|
|
|
const PERSONTYPE_4
|
|
|
|
const PERSONTYPE_5
|
|
|
|
const PERSONTYPE_6
|
2015-11-18 15:42:42 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
|
|
|
|
; EmotesPointers indexes (see engine/overworld.asm)
|
|
|
|
const_def
|
|
|
|
const EMOTE_SHOCK ; 0
|
|
|
|
const EMOTE_QUESTION ; 1
|
|
|
|
const EMOTE_HAPPY ; 2
|
|
|
|
const EMOTE_SAD ; 3
|
|
|
|
const EMOTE_HEART ; 4
|
|
|
|
const EMOTE_BOLT ; 5
|
|
|
|
const EMOTE_SLEEP ; 6
|
|
|
|
const EMOTE_FISH ; 7
|
|
|
|
const EMOTE_SHADOW ; 8
|
|
|
|
const EMOTE_ROD ; 9
|
|
|
|
const EMOTE_BOULDER_DUST ; 10
|
|
|
|
const EMOTE_GRASS_RUSTLE ; 11
|
|
|
|
EMOTE_MEM EQU -1
|
|
|
|
|
2017-12-11 18:47:58 +00:00
|
|
|
; FruitTreeItems indexes (see data/fruit_tree_items.asm)
|
2015-11-18 15:42:42 +00:00
|
|
|
const_value SET 1
|
2016-01-12 17:46:18 +00:00
|
|
|
const FRUITTREE_ROUTE_29 ; 01
|
|
|
|
const FRUITTREE_ROUTE_30_1 ; 02
|
|
|
|
const FRUITTREE_ROUTE_38 ; 03
|
|
|
|
const FRUITTREE_ROUTE_46_1 ; 04
|
|
|
|
const FRUITTREE_ROUTE_30_2 ; 05
|
|
|
|
const FRUITTREE_ROUTE_33 ; 06
|
|
|
|
const FRUITTREE_ROUTE_31 ; 07
|
|
|
|
const FRUITTREE_ROUTE_43 ; 08
|
|
|
|
const FRUITTREE_VIOLET_CITY ; 09
|
|
|
|
const FRUITTREE_ROUTE_46_2 ; 0a
|
|
|
|
const FRUITTREE_ROUTE_35 ; 0b
|
|
|
|
const FRUITTREE_ROUTE_45 ; 0c
|
|
|
|
const FRUITTREE_ROUTE_36 ; 0d
|
|
|
|
const FRUITTREE_ROUTE_26 ; 0e
|
|
|
|
const FRUITTREE_ROUTE_39 ; 0f
|
|
|
|
const FRUITTREE_ROUTE_44 ; 10
|
|
|
|
const FRUITTREE_ROUTE_37_1 ; 11
|
|
|
|
const FRUITTREE_ROUTE_37_2 ; 12
|
|
|
|
const FRUITTREE_ROUTE_37_3 ; 13
|
|
|
|
const FRUITTREE_AZALEA_TOWN ; 14
|
|
|
|
const FRUITTREE_ROUTE_42_1 ; 15
|
|
|
|
const FRUITTREE_ROUTE_42_2 ; 16
|
|
|
|
const FRUITTREE_ROUTE_42_3 ; 17
|
|
|
|
const FRUITTREE_ROUTE_11 ; 18
|
|
|
|
const FRUITTREE_ROUTE_2 ; 19
|
|
|
|
const FRUITTREE_ROUTE_1 ; 1a
|
|
|
|
const FRUITTREE_ROUTE_8 ; 1b
|
|
|
|
const FRUITTREE_PEWTER_CITY_1 ; 1c
|
|
|
|
const FRUITTREE_PEWTER_CITY_2 ; 1d
|
|
|
|
const FRUITTREE_FUCHSIA_CITY ; 1e
|
|
|
|
NUM_FRUIT_TREES EQU const_value +- 1
|
2015-11-19 04:16:25 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; elevator floors
|
|
|
|
; used by `elevfloor`
|
|
|
|
const_def
|
2017-12-11 06:02:28 +00:00
|
|
|
const FLOOR_B4F
|
|
|
|
const FLOOR_B3F
|
|
|
|
const FLOOR_B2F
|
|
|
|
const FLOOR_B1F
|
|
|
|
const FLOOR_1F
|
|
|
|
const FLOOR_2F
|
|
|
|
const FLOOR_3F
|
|
|
|
const FLOOR_4F
|
|
|
|
const FLOOR_5F
|
|
|
|
const FLOOR_6F
|
|
|
|
const FLOOR_7F
|
|
|
|
const FLOOR_8F
|
|
|
|
const FLOOR_9F
|
|
|
|
const FLOOR_10F
|
|
|
|
const FLOOR_11F
|
|
|
|
const FLOOR_ROOF
|
2017-12-09 05:50:59 +00:00
|
|
|
|
|
|
|
; command queue members
|
2015-11-19 04:16:25 +00:00
|
|
|
CMDQUEUE_TYPE EQU 0
|
|
|
|
CMDQUEUE_ADDR EQU 1
|
|
|
|
CMDQUEUE_03 EQU 3
|
|
|
|
CMDQUEUE_04 EQU 4
|
|
|
|
CMDQUEUE_05 EQU 5
|
|
|
|
CMDQUEUE_ENTRY_SIZE EQU 6
|
|
|
|
CMDQUEUE_CAPACITY EQU 4
|
2016-03-09 00:54:06 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; command queue types
|
2016-03-09 00:54:06 +00:00
|
|
|
CMDQUEUE_STONETABLE EQU 2
|
2017-12-09 05:50:59 +00:00
|
|
|
|
|
|
|
; see engine/overworld.asm
|
|
|
|
MAX_OUTDOOR_SPRITES EQU 23
|
|
|
|
SPRITE_GFX_LIST_CAPACITY EQU $20
|