]> granicus.if.org Git - nethack/commit
monsters eating green slime corpses (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 25 Oct 2008 01:04:04 +0000 (01:04 +0000)
committernethack.rankin <nethack.rankin>
Sat, 25 Oct 2008 01:04:04 +0000 (01:04 +0000)
commitbb5820b493fd5899df32431fc02bb0d5c300cfcc
tree46714b3a5f57a8871a238eaa2f092edb4a1173c2
parent3425a19dff334965e2f2d16e17b2b1615575c9a8
monsters eating green slime corpses (trunk only)

     From a bug report, pets able to eat
acidic and poisonous corpses (black naga was the case cited) would eat
green slime corpses without turning into green slime, unlike the hero.
This prevents such monsters from eating green slime unless they're
starving, implements transformation into green slime for the case where
it does get eaten, and prevents non-pet gelatinous cubes from devouring
such corpses.  meatobj() is reorganized to hopefully become clearer, and
it removes the assumption that the object eater is a g.cube in case we
ever adopt slash'em's "tasmanian devil" monster.

     Monsters with digestion attacks who swallow green slime monsters
are turned into green slime, but ones who swallow hero poly'd into green
slime are not.  This doesn't address that.
doc/fixes35.0
src/dog.c
src/dogmove.c
src/mon.c