]> granicus.if.org Git - nethack/commit
undead turning of ghost on bones level
authornethack.allison <nethack.allison>
Wed, 19 Feb 2003 04:31:46 +0000 (04:31 +0000)
committernethack.allison <nethack.allison>
Wed, 19 Feb 2003 04:31:46 +0000 (04:31 +0000)
commit0f51c0174fd57df21606d88e4ff53f42aa3b493d
treec4ae83e0485e9486400adcda456f441dd0ebc72e
parent6689de0e04536df085d1deae3aeba4fdcf77c9c7
undead turning of ghost on bones level

<email deleted>
Newsgroups: rec.games.roguelike.nethack
Subject: Re: Other ways to destroy the Amulet

<Someone> wrote:
>>> Zapped undead turning at his _corpse_, which brought the corpse
>>> back to life and also destroyed the ghost. The revived
>>> character was not carrying anything.
>>
>> Hmm, didn't the Amulet fall to the floor like when you genocide
>> something that's carrying something?
>
> Nope.
>
> That's because undead turning does mongone(ghost). The mongone
> function destroys the inventory of the monster:
> discard_minvent(mdef); /* release monster's inventory */
>
> Whereas genocided monsters are removed with mondead, which calls
> m_detach, which calls relobj, which drops the monster's inventory
> on the floor.
doc/fixes34.1
src/zap.c