From: Pasi Kallinen Date: Mon, 31 Jan 2022 17:52:30 +0000 (+0200) Subject: Covetous monsters will teleport to downstairs or upstairs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cad4ecec23d992d65f1f1c4c460bccb70b15b77;p=nethack Covetous monsters will teleport to downstairs or upstairs I accidentally swapped the covetous monsters teleport to stairs to heal but instead of changing it back like it was, now make those monsters teleport to either upstairs or downstairs - some of them will go up, others go down. --- diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 98289dcfd..6133a3aab 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -763,6 +763,7 @@ don't stop running when next to a peaceful, unless it blocks the way mindless monsters shouldn't cringe stepping on squeaky boards falling down a hole or trapdoor will cause damage proportional to fall height stinking gas clouds block line-of-sight +covetous monsters will teleport to downstairs or upstairs to heal Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/wizard.c b/src/wizard.c index 8271d9526..309b03a00 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -355,7 +355,7 @@ tactics(struct monst *mtmp) case STRAT_HEAL: /* hide and recover */ mx = mtmp->mx, my = mtmp->my; /* if wounded, hole up on or near the stairs (to block them) */ - choose_stairs(&sx, &sy, FALSE); + choose_stairs(&sx, &sy, (mtmp->m_id % 2)); mtmp->mavenge = 1; /* covetous monsters attack while fleeing */ if (In_W_tower(mx, my, &u.uz) || (mtmp->iswiz && !sx && !mon_has_amulet(mtmp))) {