]> granicus.if.org Git - nethack/commitdiff
More message variation on eating palatable corpses
authorPasi Kallinen <paxed@alt.org>
Tue, 12 Jul 2022 18:51:41 +0000 (21:51 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 12 Jul 2022 18:51:41 +0000 (21:51 +0300)
src/eat.c

index c712e6dd2ab7cca81b6b8670caf131efa1409050..5005ca7b930ea5bd3d41f4ba0608a34ca82a1ffe 100644 (file)
--- 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) ? '!' : '.');
     }