From d2810a4bcd7a667373b9d2705cb108e5e1c9bd34 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 30 May 2025 22:20:21 -0700 Subject: [PATCH] fix github issue #1413 - mimic feedback for gold Issue reported by ars3niy: if a mimic was given the shape of a gold piece it gets reported as 2 gold pieces but the message was |A gold pieces appears next to you. Avoid article "A" prefix, and use plural verb "appear" instead of singular "appears", yielding |Gold pieces appear next to you. Fixes #1413 --- doc/fixes3-7-0.txt | 1 + src/makemon.c | 4 +++- src/pager.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index c1c24371f..cc3076cb2 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -2116,6 +2116,7 @@ successfully disarming a chest trap was clearing the chest's 'tknown' bit used up the trap when game ended with 'force_invmenu' On, final disclosure of inventory would contain spurious menu entry "? - (list likely candidates)" +avoid reporting "a gold pieces appears next to you" for mimic Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository diff --git a/src/makemon.c b/src/makemon.c index 2de8003ae..f9578b586 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -1485,8 +1485,10 @@ makemon( } if (what) { set_msg_xy(mtmp->mx, mtmp->my); - Norep("%s%s appears%s%c", what, + Norep("%s%s %s%s%c", what, exclaim ? " suddenly" : "", + /* 'what' might be "gold pieces" so need plural verb */ + vtense(what, "appear"), next2u(x, y) ? " next to you" : (distu(x, y) <= (BOLT_LIM * BOLT_LIM)) ? " close by" : "", diff --git a/src/pager.c b/src/pager.c index 0b83c4910..e2e0c06a9 100644 --- a/src/pager.c +++ b/src/pager.c @@ -220,7 +220,7 @@ mhidden_description( what = (otmp && otmp->otyp != STRANGE_OBJECT) ? simpleonames(otmp) : obj_descr[STRANGE_OBJECT].oc_name; - if (incl_article) + if (incl_article && (!otmp || otmp->quan == 1L)) what = an(what); Strcat(outbuf, what);