diff options
Diffstat (limited to 'constants')
-rw-r--r-- | constants/item_constants.asm | 2 | ||||
-rw-r--r-- | constants/map_data_constants.asm | 7 | ||||
-rw-r--r-- | constants/map_setup_constants.asm | 2 | ||||
-rwxr-xr-x | constants/script_constants.asm | 15 |
4 files changed, 25 insertions, 1 deletions
diff --git a/constants/item_constants.asm b/constants/item_constants.asm index 30af41c..ebc3aee 100644 --- a/constants/item_constants.asm +++ b/constants/item_constants.asm @@ -261,6 +261,8 @@ NUM_TMS = const_value - ITEM_TM01 - 2 ; discount ITEM_C8 and ITEM_E1 const ITEM_HM07 ; fe * NUM_HMS = const_value - ITEM_HM01 + const ITEM_FF + NUM_TMS_HMS = NUM_TMS + NUM_HMS ; leftovers from pokered diff --git a/constants/map_data_constants.asm b/constants/map_data_constants.asm index 075a7f1..ac9908a 100644 --- a/constants/map_data_constants.asm +++ b/constants/map_data_constants.asm @@ -7,3 +7,10 @@ const ENVIRONMENT_5 const GATE const DUNGEON + +; SpawnPoints indexes (see data/maps/spawn_points.asm) +const_value = -1 + const SPAWN_N_A + +; size of each spawn point data +SPAWN_POINT_SIZE EQU 4
\ No newline at end of file diff --git a/constants/map_setup_constants.asm b/constants/map_setup_constants.asm index 046fc65..7357058 100644 --- a/constants/map_setup_constants.asm +++ b/constants/map_setup_constants.asm @@ -3,7 +3,7 @@ const MAPSETUP_CONTINUE ; $f1 const MAPSETUP_F2 const MAPSETUP_RELOADMAP ; $f3 - const MAPSETUP_F4 + const MAPSETUP_TELEPORT ; $f4 const MAPSETUP_F5 ; Note: entry is duplicate of $F4 const MAPSETUP_WARP ; $f6 const MAPSETUP_CONNECTION ; $f7 diff --git a/constants/script_constants.asm b/constants/script_constants.asm new file mode 100755 index 0000000..3aa19b5 --- /dev/null +++ b/constants/script_constants.asm @@ -0,0 +1,15 @@ +
+; Script IDs
+ const_def
+ const SCRIPT_ID_00 ; 00
+ const SCRIPT_ID_01 ; 01
+ const SCRIPT_ID_02 ; 02
+ const SCRIPT_ID_03 ; 03
+
+; Flags
+SCRIPT_FINISHED EQU 7
+
+; Masks/Return Values
+SCRIPT_FINISHED_MASK = 1 << SCRIPT_FINISHED
+SCRIPT_SUCCESS EQU SCRIPT_FINISHED_MASK | $f
+SCRIPT_FAIL EQU SCRIPT_FINISHED_MASK | 0
\ No newline at end of file |