Difference between revisions of "Talk:Spellbook of drain life"

From NetHackWiki
Jump to navigation Jump to search
(Draining does reduce HP to zero)
(Draining does reduce HP to zero: you're right)
Line 16: Line 16:
  
 
:I looked at it quite a while to be sure before changing anything, specifically {{sourcecode|Exper.c|146}}, where the new HP is deliberately kept to a minimum of 1.  Your example with the succubus seems to be from HP loss ("You feel exhausted") rather than level drain ("You feel out of shape"). --[[User:Usethe4ce|Usethe4ce]] 14:48, 26 January 2011 (UTC)
 
:I looked at it quite a while to be sure before changing anything, specifically {{sourcecode|Exper.c|146}}, where the new HP is deliberately kept to a minimum of 1.  Your example with the succubus seems to be from HP loss ("You feel exhausted") rather than level drain ("You feel out of shape"). --[[User:Usethe4ce|Usethe4ce]] 14:48, 26 January 2011 (UTC)
 +
 +
::You're right, I'm sorry. [[Source:Mhitu.c#line2313]] means a different foocubus effect is the culprit. --[[User:Tjr|Tjr]] 15:03, 26 January 2011 (UTC)

Revision as of 15:03, 26 January 2011

Monster experience?

If you cast drain life on a monster, are they worth less experience when finally killed? -- Kalon 22:33, 7 January 2008 (UTC)

-- Yes, unless you kill it in one single casting. Gaining exprerience is based on the monster's current experience (before the spell) Source:Exper.c#experience, and drain life updates a monsters level only after it has determined the monster will survive Zap.c#line330. Tjr 22:06, 17 March 2009 (UTC)

Draining does reduce HP to zero

Usethe4ce removed the other fatal side of level drain, I propose to re-add them.

Steps to reproduce (not wiztested): wound yourself so that you have 17hp left, then cast drain lift on yourself. Drain life does at most 16 points of damage, so the damage won't kill you. However, losing or gaining a level seems to preserve (maxHP-HP), and since it reduces maxHP, it also reduces your current hit points further.

Example of succubus level drain killing an XP3 character: http://alt.org/nethack/userdata/t/tjr2/dumplog/1275338192.nh343.txt --Tjr 09:06, 26 January 2011 (UTC)

Experience_level also needs to be corrected. --Tjr 11:17, 26 January 2011 (UTC)

I looked at it quite a while to be sure before changing anything, specifically Exper.c, line 146, where the new HP is deliberately kept to a minimum of 1. Your example with the succubus seems to be from HP loss ("You feel exhausted") rather than level drain ("You feel out of shape"). --Usethe4ce 14:48, 26 January 2011 (UTC)
You're right, I'm sorry. Source:Mhitu.c#line2313 means a different foocubus effect is the culprit. --Tjr 15:03, 26 January 2011 (UTC)