From f61e3ceefecc6696a99b9e7dafcb37f5349660ec Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 25 May 2003 23:21:20 +0000 Subject: [PATCH] another grammar bit My e-mail archive shows this was originally reported as one of several items in R871. Clean up a hit message when wielding cream pies. --- src/uhitm.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/uhitm.c b/src/uhitm.c index bb0454c86..7027ab05b 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -839,12 +839,16 @@ int thrown; mon->mcansee ? "" : " further"); } else { char *whom = mon_nam(mon); + char *what = The(xname(obj)); + if (!thrown && obj->quan > 1) + what = An(singular(obj, xname)); /* note: s_suffix returns a modifiable buffer */ if (haseyes(mdat) && mdat != &mons[PM_FLOATING_EYE]) - whom = strcat(s_suffix(whom), " face"); - pline_The("%s splashes over %s!", - xname(obj), whom); + whom = strcat(strcat(s_suffix(whom), " "), + mbodypart(mon, FACE)); + pline("%s %s over %s!", + what, vtense(what, "splash"), whom); } setmangry(mon); mon->mcansee = 0; -- 2.40.0