Verify the trade dialog pointer table length
This commit is contained in:
@@ -38,6 +38,7 @@ DEF NUM_NPC_TRADES EQU const_value
|
|||||||
const TRADE_DIALOG_WRONG
|
const TRADE_DIALOG_WRONG
|
||||||
const TRADE_DIALOG_COMPLETE
|
const TRADE_DIALOG_COMPLETE
|
||||||
const TRADE_DIALOG_AFTER
|
const TRADE_DIALOG_AFTER
|
||||||
|
DEF NUM_TRADE_DIALOGS EQU const_value
|
||||||
|
|
||||||
; trade dialog sets
|
; trade dialog sets
|
||||||
const_def
|
const_def
|
||||||
@@ -45,3 +46,4 @@ DEF NUM_NPC_TRADES EQU const_value
|
|||||||
const TRADE_DIALOGSET_HAPPY
|
const TRADE_DIALOGSET_HAPPY
|
||||||
const TRADE_DIALOGSET_NEWBIE
|
const TRADE_DIALOGSET_NEWBIE
|
||||||
const TRADE_DIALOGSET_GIRL
|
const TRADE_DIALOGSET_GIRL
|
||||||
|
DEF NUM_TRADE_DIALOGSETS EQU const_value
|
||||||
|
@@ -405,6 +405,7 @@ PrintTradeText:
|
|||||||
|
|
||||||
TradeTexts:
|
TradeTexts:
|
||||||
; entries correspond to TRADE_DIALOG_* × TRADE_DIALOGSET_* constants
|
; entries correspond to TRADE_DIALOG_* × TRADE_DIALOGSET_* constants
|
||||||
|
table_width 2
|
||||||
; TRADE_DIALOG_INTRO
|
; TRADE_DIALOG_INTRO
|
||||||
dw NPCTradeIntroText1
|
dw NPCTradeIntroText1
|
||||||
dw NPCTradeIntroText2
|
dw NPCTradeIntroText2
|
||||||
@@ -430,6 +431,7 @@ TradeTexts:
|
|||||||
dw NPCTradeAfterText2
|
dw NPCTradeAfterText2
|
||||||
dw NPCTradeAfterText4
|
dw NPCTradeAfterText4
|
||||||
dw NPCTradeAfterText3
|
dw NPCTradeAfterText3
|
||||||
|
assert_table_length NUM_TRADE_DIALOGS * NUM_TRADE_DIALOGSETS
|
||||||
|
|
||||||
NPCTradeCableText:
|
NPCTradeCableText:
|
||||||
text_far _NPCTradeCableText
|
text_far _NPCTradeCableText
|
||||||
|
Reference in New Issue
Block a user