From f4acfd79955953b12524ce18c02593fa03fe920f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 27 Oct 2016 21:44:38 +0300 Subject: [PATCH] Make older corpses not taste okay Post-3.6.0 change made practically all corpses taste okay. Change it so there's always a 10% chance for the corpse to taste terrible, and increase the chance if the corpse is slightly old. --- src/eat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/eat.c b/src/eat.c index 34277af03..2c748ef06 100644 --- a/src/eat.c +++ b/src/eat.c @@ -1674,9 +1674,11 @@ struct obj *otmp; && herbivorous(youmonst.data)) : (carnivorous(youmonst.data) && !herbivorous(youmonst.data))), - palatable = (vegetarian(&mons[mnum]) - ? herbivorous(youmonst.data) - : carnivorous(youmonst.data)); + palatable = ((vegetarian(&mons[mnum]) + ? herbivorous(youmonst.data) + : carnivorous(youmonst.data)) + && rn2(10) + && ((rotted < 1) ? TRUE : !rn2(rotted+1))); const char *pmxnam = food_xname(otmp, FALSE); if (!strncmpi(pmxnam, "the ", 4))