fix #K1139 - corpse removed from ice box by monst
Rot and revive timers are turned off when a corpse gets put inside an ice box. They get turned back on when taken out of the ice box by the hero but were being left off if taken out by a monster. That resulted in corpses of arbitrary type behaving like lizard corpses and never rotting away. This fixes that. It also changes troll corpse behavior. Once put in an ice box, a troll corpse will not get a new revive timer when taken out, just an ordinary rot timer.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 obj.h $NHDT-Date: 1580036271 2020/01/26 10:57:51 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.66 $ */
|
||||
/* NetHack 3.6 obj.h $NHDT-Date: 1590870784 2020/05/30 20:33:04 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.69 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2006. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -86,7 +86,7 @@ struct obj {
|
||||
#define MAX_ERODE 3
|
||||
#define orotten oeroded /* rotten food */
|
||||
#define odiluted oeroded /* diluted potions */
|
||||
#define norevive oeroded2
|
||||
#define norevive oeroded2 /* frozen corpse */
|
||||
Bitfield(oerodeproof, 1); /* erodeproof weapon/armor */
|
||||
Bitfield(olocked, 1); /* object is locked */
|
||||
Bitfield(obroken, 1); /* lock has been broken */
|
||||
|
||||
Reference in New Issue
Block a user