peasant: add checks for dialog getting too big

peasant1 got too big with kerrek text
This commit is contained in:
Vince Weaver
2021-11-09 12:42:56 -05:00
parent 7033bf3a17
commit ab27445f89
7 changed files with 44 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
inn_dialog_start:
;================== ;==================
; Inside Giant Inn ; Inside Giant Inn
;================== ;==================
@@ -242,4 +244,7 @@ inside_inn_sleep_bed_message:
.byte "to that stinky old guy over",13 .byte "to that stinky old guy over",13
.byte "there about that.",0 .byte "there about that.",0
inn_dialog_end:
.assert (>inn_dialog_end - >inn_dialog_start) < $1E , error, "inn dialog too big"

View File

@@ -1,3 +1,5 @@
inside_dialog_start:
;================ ;================
; Hidden Glen ; Hidden Glen
;================ ;================
@@ -564,3 +566,7 @@ inside_cottage_leaving_post_trinket_message:
.byte "foreground. You don't see",13 .byte "foreground. You don't see",13
.byte "me all typing ",34,"get",13 .byte "me all typing ",34,"get",13
.byte "computer monitor",34,", do you?",0 .byte "computer monitor",34,", do you?",0
inside_dialog_end:
.assert (>inside_dialog_end - >inside_dialog_start) < $1E , error, "inside dialog too big"

View File

@@ -58,23 +58,23 @@ kerrek_look_at_message:
.byte "just go, ",34,"Yay! Piggies!",34,0 .byte "just go, ",34,"Yay! Piggies!",34,0
; + look (dead Kerrek) ; + look (dead Kerrek)
.byte "There are large hoof prints",13 ;.byte "There are large hoof prints",13
.byte "in the grass here.",13 ;.byte "in the grass here.",13
.byte "There is a large",13 ;.byte "There is a large",13
.byte "Kerrek-shaped mound on the",13 ;.byte "Kerrek-shaped mound on the",13
.byte "grass.",0 ;.byte "grass.",0
; + look (rotting Kerrek) ; + look (rotting Kerrek)
.byte "There are large hoof prints",13 ;.byte "There are large hoof prints",13
.byte "in the grass here. Part",13 ;.byte "in the grass here. Part",13
.byte "of the ground looks just",13 ;.byte "of the ground looks just",13
.byte "like a rotting kerrek.",0 ;.byte "like a rotting kerrek.",0
; + look (skeletal Kerrek) ; + look (skeletal Kerrek)
.byte "There are large hoof prints",13 ;.byte "There are large hoof prints",13
.byte "in the grass here.",13 ;.byte "in the grass here.",13
.byte "Looks like someone left",13 ;.byte "Looks like someone left",13
.byte "their spare bones here.",0 ;.byte "their spare bones here.",0
; + buy kerrek a cold one (in the Kerrek's domain while he's still alive) ; + buy kerrek a cold one (in the Kerrek's domain while he's still alive)
; (Warning: This speeds the Kerrek up, so be careful.) ; (Warning: This speeds the Kerrek up, so be careful.)

View File

@@ -1,3 +1,5 @@
peasant1_dialog_start:
;=================== ;===================
; Poor Gary's Glen ; Poor Gary's Glen
;=================== ;===================
@@ -520,3 +522,6 @@ waterfall_swim_message:
.byte "of those weight-gain",13 .byte "of those weight-gain",13
.byte "protein smoothies.",0 .byte "protein smoothies.",0
peasant1_dialog_end:
.assert (>peasant1_dialog_end - >peasant1_dialog_start) < $1E , error, "peasant1 dialog too big"

View File

@@ -1,3 +1,4 @@
peasant2_dialog_start:
;=============== ;===============
; That Hay Bale ; That Hay Bale
@@ -595,3 +596,7 @@ knight_ask_trogdor_message:
knight_ask_unknown_message: knight_ask_unknown_message:
.byte 34,"I don't know anything",13 .byte 34,"I don't know anything",13
.byte "about that, short pants.",34,0 .byte "about that, short pants.",34,0
peasant2_dialog_end:
.assert (>peasant2_dialog_end - >peasant2_dialog_start) < $1E , error, "peasant2 dialog too big"

View File

@@ -1,3 +1,5 @@
peasant3_dialog_start:
;============= ;=============
; Jhonka cave ; Jhonka cave
;============= ;=============
@@ -549,3 +551,7 @@ outside_inn_note_get_message:
.byte "notes?! No!! ",0 .byte "notes?! No!! ",0
; +3 POINTS: leave inn with pot on head ; +3 POINTS: leave inn with pot on head
peasant3_dialog_end:
.assert (>peasant3_dialog_end - >peasant3_dialog_start) < $1E , error, "peasant3 dialog too big"

View File

@@ -1,3 +1,4 @@
peasant4_dialog_start:
;==================================== ;====================================
; Outside Mysterious (Ned's) Cottage ; Outside Mysterious (Ned's) Cottage
@@ -407,3 +408,6 @@ crooked_tree_get_plaque_message:
.byte "your browning, rotten",13 .byte "your browning, rotten",13
.byte "peasant teeth already.",0 .byte "peasant teeth already.",0
peasant4_dialog_end:
.assert (>peasant4_dialog_end - >peasant4_dialog_start) < $1E , error, "peasant4 dialog too big"