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.
This commit is contained in:
Pasi Kallinen
2016-10-27 21:44:44 +03:00
parent f715224b9c
commit f4acfd7995
+5 -3
View File
@@ -1674,9 +1674,11 @@ struct obj *otmp;
&& herbivorous(youmonst.data)) && herbivorous(youmonst.data))
: (carnivorous(youmonst.data) : (carnivorous(youmonst.data)
&& !herbivorous(youmonst.data))), && !herbivorous(youmonst.data))),
palatable = (vegetarian(&mons[mnum]) palatable = ((vegetarian(&mons[mnum])
? herbivorous(youmonst.data) ? herbivorous(youmonst.data)
: carnivorous(youmonst.data)); : carnivorous(youmonst.data))
&& rn2(10)
&& ((rotted < 1) ? TRUE : !rn2(rotted+1)));
const char *pmxnam = food_xname(otmp, FALSE); const char *pmxnam = food_xname(otmp, FALSE);
if (!strncmpi(pmxnam, "the ", 4)) if (!strncmpi(pmxnam, "the ", 4))