Talk:Troll mummy

From NetHackWiki
Jump to: navigation, search

So far none of my pet troll mummies have come back from the dead. Is this just chance or is this due to the fact they were a) my pets or b) summoned by spell?Ndwolfwood 00:49, 4 April 2011 (UTC)

Are you sure troll mummies resurrect at all? They are M-class monsters, not T-class. --Tjr 18:40, 4 April 2011 (UTC)
They do. They're exceptionally annoying since you can't safely eat them if you don't have a unicorn horn or if you're playing for conducts, and regular pets will never eat the corpse either.
I haven't seen anything special to prevent a troll mummy from reviving due to being a pet or being summoned by spell. Tame trolls in vanilla definitely have the normal chances of reviving, so I imagine it would carry over to the mummies. I think it's just pure chance. -- Qazmlpok 19:23, 4 April 2011 (UTC)
Isn't troll reviving tied to corpse age (i.e. once they hit 50 turns old, they won't revive on their own)? It's my understanding that the Riders will stay down if you deny them a place to resurrect for 50 turns, and I think they share some code with trolls. If so, you wouldn't expect an undead troll to ever rise from the dead. --Darth l33t 07:49, 5 April 2011 (UTC)
That's right. mon.c, line 239, mkobj.c, line 675, timeout.c, line 1426 --Tjr 12:28, 5 April 2011 (UTC)
Note that TAINT_AGE is just a constant. It doesn't actually check the age of the corpse. The code in mkobj just determines when this troll will revive, between 2 and 50 turns into the future. It is simply assumed that the corpse is fresh, since normally a corpse is generated fresh. Corpse age is only checked for rotting away (line 661). Also, being an M doesn't matter because the corpse itself is a T. -- Qazmlpok 12:44, 5 April 2011 (UTC)