From: Pasi Kallinen Date: Sat, 8 Oct 2016 10:57:39 +0000 (+0300) Subject: Hero polyed into ghoul can eat only non-veggy corpses or eggs X-Git-Tag: NetHack-3.6.1_RC01~579 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5772af5bea7129e94398c9a9c10b73d0d83342b0;p=nethack Hero polyed into ghoul can eat only non-veggy corpses or eggs Change via dNetHack. Restrict heroes polymorphed into ghouls so they can only eat non-vegan corpses and eggs. This matches more closely what pet ghouls prefer. --- diff --git a/src/eat.c b/src/eat.c index 1191a8292..0caec93dd 100644 --- a/src/eat.c +++ b/src/eat.c @@ -93,6 +93,12 @@ register struct obj *obj; && (youmonst.data != &mons[PM_RUST_MONSTER] || is_rustprone(obj))) return TRUE; + /* Ghouls only eat non-veggy corpses or eggs (see dogfood()) */ + if (u.umonnum == PM_GHOUL) + return (boolean)((obj->otyp == CORPSE + && !vegan(&mons[obj->corpsenm])) + || (obj->otyp == EGG)); + if (u.umonnum == PM_GELATINOUS_CUBE && is_organic(obj) /* [g.cubes can eat containers and retain all contents as engulfed items, but poly'd player can't do that] */