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