covetous monster tactics on completely full level
If a covetous monster tried to teleport adjacent to the hero but the level was too full to move it from its current spot, it would be sent off level to wait for the hero to leave and return instead just staying put.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 wizard.c $NHDT-Date: 1646688073 2022/03/07 21:21:13 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.85 $ */
|
||||
/* NetHack 3.7 wizard.c $NHDT-Date: 1705357487 2024/01/15 22:24:47 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.105 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2016. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -418,7 +418,9 @@ tactics(struct monst *mtmp)
|
||||
}
|
||||
if (u_at(tx, ty) || where == STRAT_PLAYER) {
|
||||
/* player is standing on it (or has it) */
|
||||
mnexto(mtmp, RLOC_MSG);
|
||||
mx = mtmp->mx, my = mtmp->my;
|
||||
if (!mnearto(mtmp, tx, ty, FALSE, RLOC_MSG))
|
||||
rloc_to(mtmp, mx, my); /* no room? stay put */
|
||||
return 0;
|
||||
}
|
||||
if (where == STRAT_GROUND) {
|
||||
|
||||
Reference in New Issue
Block a user