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 extern.h $NHDT-Date: 1590263447 2020/05/23 19:50:47 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.843 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1590870784 2020/05/30 20:33:04 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.844 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1981,6 +1981,7 @@ E boolean FDECL(allow_all, (struct obj *));
|
||||
E boolean FDECL(allow_category, (struct obj *));
|
||||
E boolean FDECL(is_worn_by_type, (struct obj *));
|
||||
E int FDECL(ck_bag, (struct obj *));
|
||||
E void FDECL(removed_from_icebox, (struct obj *));
|
||||
#ifdef USE_TRAMPOLI
|
||||
E int FDECL(in_container, (struct obj *));
|
||||
E int FDECL(out_container, (struct obj *));
|
||||
|
||||
Reference in New Issue
Block a user