Talk:Spellbook of stone to flesh

From NetHackWiki
Revision as of 03:47, 14 October 2006 by Killian (talk | contribs) (I see, the statue gets polymorphed into a corpse)
Jump to navigation Jump to search

I was testing the behaviour of stone to flesh in wizard mode and I found that reanimating a statue of a genocided monster produces that monster's corpse. I've looked in zap.c#bhito and trap.c#animate_statue, but I can't seem to find where in the source this is handled. Does anybody know? -- Killian 02:08, 14 October 2006 (UTC)

  • animate_statue is called from zap.c#line1627 and if this fails it proceeds to create the corpse if possible. -- SGrunt 03:00, 14 October 2006 (UTC)
Thanks—I had skimmed that section, and saw the call to animate_statue, but I missed the call to poly_obj(obj, CORPSE), which seems to be the bit that actually creates the corpse. -- Killian 03:47, 14 October 2006 (UTC)