Merge branch 'NetHack-3.6.2'
This commit is contained in:
12
src/mon.c
12
src/mon.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 mon.c $NHDT-Date: 1548937318 2019/01/31 12:21:58 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.278 $ */
|
||||
/* NetHack 3.6 mon.c $NHDT-Date: 1550524562 2019/02/18 21:16:02 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.279 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Derek S. Ray, 2015. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1989,14 +1989,14 @@ register struct monst *mtmp;
|
||||
mptr = mtmp->data; /* save this for m_detach() */
|
||||
/* restore chameleon, lycanthropes to true form at death */
|
||||
if (mtmp->cham >= LOW_PM) {
|
||||
set_mon_data(mtmp, &mons[mtmp->cham], -1);
|
||||
set_mon_data(mtmp, &mons[mtmp->cham]);
|
||||
mtmp->cham = NON_PM;
|
||||
} else if (mtmp->data == &mons[PM_WEREJACKAL])
|
||||
set_mon_data(mtmp, &mons[PM_HUMAN_WEREJACKAL], -1);
|
||||
set_mon_data(mtmp, &mons[PM_HUMAN_WEREJACKAL]);
|
||||
else if (mtmp->data == &mons[PM_WEREWOLF])
|
||||
set_mon_data(mtmp, &mons[PM_HUMAN_WEREWOLF], -1);
|
||||
set_mon_data(mtmp, &mons[PM_HUMAN_WEREWOLF]);
|
||||
else if (mtmp->data == &mons[PM_WERERAT])
|
||||
set_mon_data(mtmp, &mons[PM_HUMAN_WERERAT], -1);
|
||||
set_mon_data(mtmp, &mons[PM_HUMAN_WERERAT]);
|
||||
|
||||
/*
|
||||
* g.mvitals[].died does double duty as total number of dead monsters
|
||||
@@ -3568,7 +3568,7 @@ boolean msg; /* "The oldmon turns into a newmon!" */
|
||||
mtmp->mhp = 1;
|
||||
|
||||
/* take on the new form... */
|
||||
set_mon_data(mtmp, mdat, 0);
|
||||
set_mon_data(mtmp, mdat);
|
||||
|
||||
if (emits_light(olddata) != emits_light(mtmp->data)) {
|
||||
/* used to give light, now doesn't, or vice versa,
|
||||
|
||||
Reference in New Issue
Block a user