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:
@@ -1,14 +1,16 @@
|
||||
; npctrade struct members (see data/events/npc_trades.asm)
|
||||
NPCTRADE_DIALOG EQU 0 ; db
|
||||
NPCTRADE_GIVEMON EQU 1 ; db
|
||||
NPCTRADE_GETMON EQU 2 ; db
|
||||
NPCTRADE_NICK EQU 3 ; ds MON_NAME_LENGTH
|
||||
NPCTRADE_DVS EQU 14 ; dw
|
||||
NPCTRADE_ITEM EQU 16 ; db
|
||||
NPCTRADE_OT_ID EQU 17 ; dw
|
||||
NPCTRADE_OT_NAME EQU 19 ; ds NAME_LENGTH
|
||||
NPCTRADE_GENDER EQU 30 ; db
|
||||
NPCTRADE_PADDING EQU 31 ; db
|
||||
rsreset
|
||||
NPCTRADE_DIALOG rb
|
||||
NPCTRADE_GIVEMON rb
|
||||
NPCTRADE_GETMON rb
|
||||
NPCTRADE_NICK rb MON_NAME_LENGTH
|
||||
NPCTRADE_DVS rw
|
||||
NPCTRADE_ITEM rb
|
||||
NPCTRADE_OT_ID rw
|
||||
NPCTRADE_OT_NAME rb NAME_LENGTH
|
||||
NPCTRADE_GENDER rb
|
||||
NPCTRADE_PADDING rb
|
||||
NPCTRADE_STRUCT_LENGTH EQU _RS
|
||||
|
||||
; NPCTrades indexes (see data/events/npc_trades.asm)
|
||||
const_def
|
||||
|
Reference in New Issue
Block a user