From: Michael Meyer Date: Fri, 20 Aug 2021 23:20:00 +0000 (-0400) Subject: Count all poly'ing tins as potential sliming cures X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6596718acd47f4c99d22c9165660704d06a71800;p=nethack Count all poly'ing tins as potential sliming cures Popeye, used to check whether eating a particular tin is a potential lifesaving action, considered tins of chameleon meat a cure for sliming (since you can polymorph into a fiery monster), but didn't credit the same possible curative power to other tins which can polymorph the hero. Use the polyfodder macro (used elsewhere to check whether eating something will polymorph a monster/pet) to determine whether a tin will polymorph the hero. --- diff --git a/src/eat.c b/src/eat.c index 2bb8be744..6ec3014b0 100644 --- a/src/eat.c +++ b/src/eat.c @@ -3546,7 +3546,7 @@ Popeye(int threat) && (mndx == PM_LIZARD || acidic(&mons[mndx]))); /* polymorph into a fiery monster */ case SLIMED: - return (boolean) (mndx == PM_CHAMELEON); + return (boolean) polyfodder(otin); /* no tins can cure these (yet?) */ case SICK: case VOMITING: