Monsters see and remember when others trigger traps

No longer will there be a conga line of hill orcs stepping into
the same arrow trap one after another.
This commit is contained in:
Pasi Kallinen
2022-08-21 11:46:49 +03:00
parent 953d43f5ac
commit fcf5c1ea50
5 changed files with 35 additions and 0 deletions

View File

@@ -2553,6 +2553,7 @@ dotrap(struct trap *trap, unsigned trflags)
if (u.usteed)
mon_learns_traps(u.usteed, ttype);
mons_see_trap(trap);
/*
* Note:
@@ -3271,6 +3272,7 @@ mintrap(struct monst *mtmp, unsigned mintrapflags)
}
mon_learns_traps(mtmp, tt);
mons_see_trap(trap);
/* Monster is aggravated by being trapped by you.
Recognizing who made the trap isn't completely