monster aggravation spell
When testing drawbridge stuff recently I ended up with an unseen monster who evidently cast the aggravation spell repeatedly, yielding a steady stream of "you feel that monsters are aware of your presence" messages. This patch makes monsters tend to avoid repeating that spell once everyone on the level has already been woken up. It also extends the spell effect so that it will wake monsters like quest nemesis and the Wizard who ordinarily wait until you get close before they become active.
This commit is contained in:
17
src/wizard.c
17
src/wizard.c
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)wizard.c 3.5 2004/12/20 */
|
||||
/* SCCS Id: @(#)wizard.c 3.5 2005/03/19 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -371,14 +371,15 @@ aggravate()
|
||||
{
|
||||
register struct monst *mtmp;
|
||||
|
||||
for(mtmp = fmon; mtmp; mtmp = mtmp->nmon)
|
||||
if (!DEADMONSTER(mtmp)) {
|
||||
mtmp->msleeping = 0;
|
||||
if(!mtmp->mcanmove && !rn2(5)) {
|
||||
mtmp->mfrozen = 0;
|
||||
mtmp->mcanmove = 1;
|
||||
}
|
||||
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
|
||||
if (DEADMONSTER(mtmp)) continue;
|
||||
mtmp->mstrategy &= ~STRAT_WAITFORU;
|
||||
mtmp->msleeping = 0;
|
||||
if (!mtmp->mcanmove && !rn2(5)) {
|
||||
mtmp->mfrozen = 0;
|
||||
mtmp->mcanmove = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user