More message variation on eating palatable corpses
This commit is contained in:
@@ -1870,6 +1870,9 @@ eatcorpse(struct obj *otmp)
|
|||||||
&& rn2(10)
|
&& rn2(10)
|
||||||
&& (rotted < 1 || !rn2((int) rotted + 1)));
|
&& (rotted < 1 || !rn2((int) rotted + 1)));
|
||||||
const char *pmxnam = food_xname(otmp, FALSE);
|
const char *pmxnam = food_xname(otmp, FALSE);
|
||||||
|
static const char *const palatable_msgs[] = {
|
||||||
|
"okay", "stringy", "gamey", "fatty", "tough"
|
||||||
|
};
|
||||||
|
|
||||||
if (!strncmpi(pmxnam, "the ", 4))
|
if (!strncmpi(pmxnam, "the ", 4))
|
||||||
pmxnam += 4;
|
pmxnam += 4;
|
||||||
@@ -1883,7 +1886,8 @@ eatcorpse(struct obj *otmp)
|
|||||||
Hallucination
|
Hallucination
|
||||||
? (yummy ? ((u.umonnum == PM_TIGER) ? "gr-r-reat" : "gnarly")
|
? (yummy ? ((u.umonnum == PM_TIGER) ? "gr-r-reat" : "gnarly")
|
||||||
: palatable ? "copacetic" : "grody")
|
: palatable ? "copacetic" : "grody")
|
||||||
: (yummy ? "delicious" : palatable ? "okay" : "terrible"),
|
: (yummy ? "delicious" : palatable ?
|
||||||
|
palatable_msgs[mnum % SIZE(palatable_msgs)] : "terrible"),
|
||||||
(yummy || !palatable) ? '!' : '.');
|
(yummy || !palatable) ? '!' : '.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user