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.
This commit is contained in:
Pasi Kallinen
2022-01-31 19:52:30 +02:00
parent 218c0d4a3b
commit 2cad4ecec2
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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))) {