Drain life (monster attack)
The precise effects then depend on whether it is a monster or a player that is hit.
If a player's level was one, he dies. Otherwise, the player's level is reduced by 1. His experience is reduced to the maximum for his new level. Maximum and current hit points are reduced by the same amount as they would have been increased had the player gained a level. They cannot be reduced below one hit point.
Monsters with the attack
Drain life is represented by the macro AD_DRLI.
Drain resistance completely negates this attack. This is not usually necessary however, as each successful attack only has a (1/50 * 1/3 =) 1 in 150 chance of affecting a player with a magic cancellation of 3. One lost level is immediately regained due to the experience gained when the attacker is killed. To permanently lose a level, a player must lose two levels without earning any experience in between; the chances of permanently losing even one level over the lifetime of a game are therefore sufficiently small that many players choose to ignore the possibility.
- mhitm.c, line 991 monster draining a monster
- mhitu.c, line 1130 monster draining a player
- uhitm.c, line 1467 player draining a monster
- losexp in exper.c player loses a level
- Vampires in monst.c all V have a drain life attack
- Wraiths in monst.c all W have a drain life attack
- monst.c, line 2731 Demogorgon has a drain life attack
- monst.c, line 2554 foocubi have a drain life attack if SEDUCE is not defined
- monattk.h in NetHack 3.4.3, line 52: AD_DRLI macro