Get rid of force_mintrap, allow passing flags to mintrap
It uses the same flags as dotrap, so simulate force_mintrap by passing FORCETRAP flag.
This commit is contained in:
@@ -381,14 +381,15 @@ typedef struct sortloot_item Loot;
|
||||
#define PICK_RANDOM 0
|
||||
#define PICK_RIGID 1
|
||||
|
||||
/* Flags to control dotrap() in trap.c */
|
||||
#define FORCETRAP 0x01 /* triggering not left to chance */
|
||||
#define NOWEBMSG 0x02 /* suppress stumble into web message */
|
||||
#define FORCEBUNGLE 0x04 /* adjustments appropriate for bungling */
|
||||
/* Flags to control dotrap() and mintrap() in trap.c */
|
||||
#define NO_TRAP_FLAGS 0
|
||||
#define FORCETRAP 0x01 /* triggering not left to chance */
|
||||
#define NOWEBMSG 0x02 /* suppress stumble into web message */
|
||||
#define FORCEBUNGLE 0x04 /* adjustments appropriate for bungling */
|
||||
#define RECURSIVETRAP 0x08 /* trap changed into another type this same turn */
|
||||
#define TOOKPLUNGE 0x10 /* used '>' to enter pit below you */
|
||||
#define VIASITTING 0x20 /* #sit while at trap location (affects message) */
|
||||
#define FAILEDUNTRAP 0x40 /* trap activated by failed untrap attempt */
|
||||
#define TOOKPLUNGE 0x10 /* used '>' to enter pit below you */
|
||||
#define VIASITTING 0x20 /* #sit while at trap location (affects message) */
|
||||
#define FAILEDUNTRAP 0x40 /* trap activated by failed untrap attempt */
|
||||
|
||||
/* Flags to control test_move in hack.c */
|
||||
#define DO_MOVE 0 /* really doing the move */
|
||||
|
||||
Reference in New Issue
Block a user