Account for pet hunger while away from a level
This commit is contained in:
@@ -90,6 +90,8 @@ after polymorph or revival from corpse, monsters were not interacting with
|
|||||||
fix undead corpses (zombies, etc.) now being edible
|
fix undead corpses (zombies, etc.) now being edible
|
||||||
alias rings of constitution, strength, and damage, spellbook/scroll of
|
alias rings of constitution, strength, and damage, spellbook/scroll of
|
||||||
identification
|
identification
|
||||||
|
pets left on another level no longer have their hunger postponed by the
|
||||||
|
time spent away
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
@@ -1246,6 +1246,9 @@ getlev(NHFILE *nhfp, int pid, xint8 lev)
|
|||||||
: peace_minded(mtmp->data);
|
: peace_minded(mtmp->data);
|
||||||
set_malign(mtmp);
|
set_malign(mtmp);
|
||||||
} else if (elapsed > 0L) {
|
} else if (elapsed > 0L) {
|
||||||
|
/* restmon() based hunger on now; account for time away */
|
||||||
|
if (has_edog(mtmp))
|
||||||
|
EDOG(mtmp)->hungrytime -= elapsed;
|
||||||
mon_catchup_elapsed_time(mtmp, elapsed);
|
mon_catchup_elapsed_time(mtmp, elapsed);
|
||||||
}
|
}
|
||||||
/* update shape-changers in case protection against
|
/* update shape-changers in case protection against
|
||||||
|
|||||||
Reference in New Issue
Block a user