Verify data table sizes with table_width and assert_table_length macros
This was discussed in #706 It also uncovered some off-by-one issues with defining some constants. A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
This commit is contained in:
@@ -175,6 +175,7 @@ NUM_CMDQUEUE_TYPES EQU const_value
|
||||
const FLOOR_10F
|
||||
const FLOOR_11F
|
||||
const FLOOR_ROOF
|
||||
NUM_FLOORS EQU const_value
|
||||
|
||||
; showemote arguments
|
||||
; Emotes indexes (see data/sprites/emotes.asm)
|
||||
@@ -191,7 +192,9 @@ NUM_CMDQUEUE_TYPES EQU const_value
|
||||
const EMOTE_ROD ; 9
|
||||
const EMOTE_BOULDER_DUST ; 10
|
||||
const EMOTE_GRASS_RUSTLE ; 11
|
||||
NUM_EMOTES EQU const_value
|
||||
EMOTE_FROM_MEM EQU -1
|
||||
EMOTE_LENGTH EQU 6
|
||||
|
||||
; fruittree arguments
|
||||
; FruitTreeItems indexes (see data/items/fruit_trees.asm)
|
||||
@@ -236,6 +239,7 @@ NUM_FRUIT_TREES EQU const_value - 1
|
||||
const DECODESC_RIGHT_DOLL ; 2
|
||||
const DECODESC_BIG_DOLL ; 3
|
||||
const DECODESC_CONSOLE ; 4
|
||||
NUM_DECODESCS EQU const_value
|
||||
|
||||
; swarm arguments
|
||||
; StoreSwarmMapIndices arguments
|
||||
|
Reference in New Issue
Block a user