From ee270bfbe0ec3967712294fbe6b7566a64359731 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Fri, 2 Dec 2022 12:45:00 -0500 Subject: [PATCH] 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. --- src/shk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shk.c b/src/shk.c index dcdaa82ea..e4a376600 100644 --- a/src/shk.c +++ b/src/shk.c @@ -4628,15 +4628,15 @@ price_quote(register struct obj* first_obj) } else if (cnt == 1) { if (!cost) { /* ", 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);