Monster known traps bit twiddling

This commit is contained in:
Pasi Kallinen
2022-08-21 11:36:39 +03:00
parent 96e9534289
commit 953d43f5ac
10 changed files with 47 additions and 18 deletions

View File

@@ -1651,6 +1651,8 @@ extern boolean olfaction(struct permonst *);
unsigned long cvt_adtyp_to_mseenres(uchar);
extern void monstseesu(unsigned long);
extern boolean resist_conflict(struct monst *);
extern boolean mon_knows_traps(struct monst *, int);
extern void mon_learns_traps(struct monst *, int);
/* ### monmove.c ### */

View File

@@ -54,6 +54,7 @@ struct trap {
/* unconditional traps */
enum trap_types {
ALL_TRAPS = -1, /* mon_knows_traps(), mon_learns_traps() */
NO_TRAP = 0,
ARROW_TRAP = 1,
DART_TRAP = 2,