Use verbalize for shopkeeper price-check #chatting

The shopkeeper is speaking out loud, so use verbalize for consistency
with other types of speech.

I couldn't figure out a way to wrap the multiline version in quotes in a
way that actually worked and looked good, so I restricted this to the
pline responses.
This commit is contained in:
Michael Meyer
2022-12-02 12:45:00 -05:00
committed by PatR
parent f38a40fafd
commit ee270bfbe0

View File

@@ -4628,15 +4628,15 @@ price_quote(register struct obj* first_obj)
} else if (cnt == 1) {
if (!cost) {
/* "<doname(obj)>, no charge" */
pline("%s!", upstart(buf)); /* buf still contains the string */
verbalize("%s!", upstart(buf)); /* buf contains the string */
} else {
/* print cost in slightly different format, so can't reuse buf;
cost and contentsonly are already set up */
Sprintf(buf, "%s%s", contentsonly ? the_contents_of : "",
doname(first_obj));
pline("%s, price %ld %s%s%s", upstart(buf), cost, currency(cost),
(first_obj->quan > 1L) ? " each" : "",
contentsonly ? "." : shk_embellish(first_obj, cost));
verbalize("%s, price %ld %s%s%s", upstart(buf), cost,
currency(cost), (first_obj->quan > 1L) ? " each" : "",
contentsonly ? "." : shk_embellish(first_obj, cost));
}
}
destroy_nhwindow(tmpwin);