peasant: move inventory strings so they are compressed

saves 300 or so bytes in INVENTORY file
This commit is contained in:
Vince Weaver 2021-11-17 14:12:57 -05:00
parent f5c549c165
commit 355d0c34a3
7 changed files with 132 additions and 2 deletions

View File

@ -34,6 +34,7 @@ peasant2 18302
17394 -- move loadsave to qload.inc
17100 -- move parse_input high and move p2 strings back in
17368 -- use lookup table for next room (and other changes)
17780 -- size as of the switch to dictionary word lookup
partial save, can we fit in 4k?
102 lines ; inventory was 115?

View File

@ -654,6 +654,10 @@ descriptions_high:
.byte >map_description
.byte >tshirt_description
.include "text/lookup.inc"
.include "text/inventory.inc.lookup"
.if 0
; arrow
arrow_description:
@ -777,7 +781,7 @@ tshirt_description:
.byte "fishing, stoning heathens. What",13
.byte "a Blast!",0
.endif
;========================
; overwrite entry

View File

@ -11,7 +11,8 @@ all: dump_text shrink_text \
inn.inc.lookup \
cliff.inc.lookup \
trogdor.inc.lookup \
common.inc.lookup
common.inc.lookup \
inventory.inc.lookup
###
@ -27,6 +28,9 @@ inn.inc.lookup: inn.inc shrink_text
inside.inc.lookup: inside.inc shrink_text
./shrink_text < inside.inc > inside.inc.lookup
inventory.inc.lookup: inventory.inc shrink_text
./shrink_text < inventory.inc > inventory.inc.lookup
peasant1.inc.lookup: peasant1.inc shrink_text
./shrink_text < peasant1.inc > peasant1.inc.lookup

View File

@ -0,0 +1,121 @@
; arrow
arrow_description:
.byte "Boy, you sure know how to pick",13
.byte "em! This arrow's kinda pointy",13
.byte "even!!",0
; baby
baby_description:
.byte "Awww! Peasant babies are",13
.byte "adorable. No wonder they fetch",13
.byte "such a pretty penny on the black",13
.byte "market.",0
; kerrek belt
kerrek_belt_description:
.byte "Phew! This thing stinks like all",13
.byte "getout. Why couldn't the Kerrek",13
.byte "have kidnapped a hot wench or",13
.byte "something that you coulda saved?",0
; chicken feed
chicken_feed_description:
.byte "Woah! Gold nuggets! Oh",13
.byte "wait...This is just chicken",13
.byte "feed. Crap.",0
; SuperTime FunBow TM
funbow_description:
.byte "This is a pretty fancy bow.",13
.byte "You're suprised those shady",13
.byte "archers give away such decent",13
.byte "prizes. You half-expected gold",13
.byte "fish in a bag.",0
; monster maskus
monster_maskus_description:
.byte "Man, those pagans sure can make",13
.byte "a freaky lookin mask when they",13
.byte "want to. It's like those theatre",13
.byte "masks' evil uncle or something.",0
; pebbles
pebbles_description:
.byte "Woah! Gray chicken feed! Oh",13
.byte "wait... those are just pebbles.",13
.byte "Heavier than they look, though.",0
; pills
pills_description:
.byte "The innkeeper's medication says",13
.byte "it's supposed to treat ",34,"general",13
.byte "oldness. May cause checkers",13
.byte "playing, hiked-up pants, and",13
.byte "overall pee smell.",34,0
; riches
riches_description:
.byte "Riches, dude. Riches. That",13
.byte "peasant lady totally has to",13
.byte "share some of this with you,",13
.byte "right? At least that shiny,",13
.byte "clawed sceptre thing.",0
; robe
robe_description:
.byte "A propa peasant robe. It smells",13
.byte "freshly washed and has the",13
.byte "initials 'N.N' sewn onto the",13
.byte "tag.",0
; soda
soda_description:
.byte "A full bottle of popular soda.",0
; meatball sub
meatball_sub_description:
.byte "A piping hot meatball sub fresh",13
.byte "from the bottom of a dingy old",13
.byte "well. All you need is a bag of",13
.byte "chips and you've got a combo",13
.byte "meal!",0
; super trinket
super_trinket_description:
.byte "This super trinket is weird. It",13
.byte "looks like it could either kill",13
.byte "you or make you the hit of your",13
.byte "Christmas party.",0
; TrogHelmet
troghelmet_description:
.byte "The TrogHelmet is not screwing",13
.byte "around. It's a serious helmet.",13
.byte "It also protects against",13
.byte "harmful UV rays.",0
; TrogShield
trogshield_description:
.byte "Behold the TrogSheild! No",13
.byte "seriously, behold it. There's",13
.byte "no way Trogdor's fire breath can",13
.byte "penetrate this thing.",0
; TrogSword
trogsword_description:
.byte "The TrogSword is for real.",13
.byte "Hands-down the coolest item in",13
.byte "this whole game. You can't wait",13
.byte "to lop off that beefy arm of",13
.byte "Trogdor's with this guy.",0
; ???
map_description:
; t-shirt
tshirt_description:
.byte "This has got to be your favorite",13
.byte "T-Shirt ever. Oh, the times you",13
.byte "had at Scalding Lake. Canoeing,",13
.byte "fishing, stoning heathens. What",13
.byte "a Blast!",0