From: Pasi Kallinen Date: Tue, 12 Jul 2022 18:51:41 +0000 (+0300) Subject: More message variation on eating palatable corpses X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e339f8a1fa1f3d96c0c46cb058d6aa21edf1887e;p=nethack More message variation on eating palatable corpses --- diff --git a/src/eat.c b/src/eat.c index c712e6dd2..5005ca7b9 100644 --- a/src/eat.c +++ b/src/eat.c @@ -1870,6 +1870,9 @@ eatcorpse(struct obj *otmp) && rn2(10) && (rotted < 1 || !rn2((int) rotted + 1))); const char *pmxnam = food_xname(otmp, FALSE); + static const char *const palatable_msgs[] = { + "okay", "stringy", "gamey", "fatty", "tough" + }; if (!strncmpi(pmxnam, "the ", 4)) pmxnam += 4; @@ -1883,7 +1886,8 @@ eatcorpse(struct obj *otmp) Hallucination ? (yummy ? ((u.umonnum == PM_TIGER) ? "gr-r-reat" : "gnarly") : palatable ? "copacetic" : "grody") - : (yummy ? "delicious" : palatable ? "okay" : "terrible"), + : (yummy ? "delicious" : palatable ? + palatable_msgs[mnum % SIZE(palatable_msgs)] : "terrible"), (yummy || !palatable) ? '!' : '.'); }