summaryrefslogtreecommitdiff
path: root/src/constants
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants')
-rw-r--r--src/constants/map_constants.asm7
-rw-r--r--src/constants/misc_constants.asm5
-rw-r--r--src/constants/script_constants.asm3
3 files changed, 12 insertions, 3 deletions
diff --git a/src/constants/map_constants.asm b/src/constants/map_constants.asm
index 5e01d0a..92eaf4c 100644
--- a/src/constants/map_constants.asm
+++ b/src/constants/map_constants.asm
@@ -35,14 +35,17 @@
const HALL_OF_HONOR ; $21
+; Size of map data. See data/npc_map_data.asm and data/level_objects.asm
+; for more info on what these represent
NPC_MAP_SIZE EQU $06
+LEVEL_OBJECT_SIZE EQU $09
; Most of these aren't fully understood so the names aren't great
MAP_SCRIPT_SIZE EQU $0f
MAP_SCRIPT_NPCS EQU $00
MAP_SCRIPT_POST_NPC EQU $02
-MAP_SCRIPT_PRESSED_A_1 EQU $04
-MAP_SCRIPT_PRESSED_A_2 EQU $06
+MAP_SCRIPT_OBJECTS EQU $04
+MAP_SCRIPT_PRESSED_A EQU $06
MAP_SCRIPT_LOAD_MAP EQU $08
MAP_SCRIPT_AFTER_DUEL EQU $0a
MAP_SCRIPT_MOVED_PLAYER EQU $0c
diff --git a/src/constants/misc_constants.asm b/src/constants/misc_constants.asm
index b31631a..47b9bf6 100644
--- a/src/constants/misc_constants.asm
+++ b/src/constants/misc_constants.asm
@@ -44,3 +44,8 @@ FLUSH_ALL_PALS_F EQU 6
const GAME_EVENT_CONTINUE_DUEL ; $5
const GAME_EVENT_CHALLENGE_MACHINE ; $6
NUM_GAME_EVENTS EQU const_value
+
+OWMODE_MAP EQU 0
+OWMODE_MOVE EQU 1
+OWMODE_START_SCRIPT EQU 2
+OWMODE_SCRIPT EQU 3
diff --git a/src/constants/script_constants.asm b/src/constants/script_constants.asm
index 2ce9a54..05aaf57 100644
--- a/src/constants/script_constants.asm
+++ b/src/constants/script_constants.asm
@@ -33,7 +33,7 @@
const EVENT_FLAG_1F ; $1f
const EVENT_FLAG_20 ; $20
const EVENT_FLAG_21 ; $21
- const EVENT_FLAG_22 ; $22
+ const EVENT_RECEIVED_LEGEND_CARDS ; $22
const EVENT_FLAG_23 ; $23
const EVENT_FLAG_24 ; $24
const EVENT_FLAG_25 ; $25
@@ -144,3 +144,4 @@ NORTH EQU $00
EAST EQU $01
SOUTH EQU $02
WEST EQU $03
+NO_MOVE EQU %10000000 ; For rotations without movement