Merge branch 'NetHack-3.6.2'
This commit is contained in:
@@ -2441,6 +2441,8 @@ E struct monst *FDECL(animate_statue,
|
||||
(struct obj *, XCHAR_P, XCHAR_P, int, int *));
|
||||
E struct monst *FDECL(activate_statue_trap,
|
||||
(struct trap *, XCHAR_P, XCHAR_P, BOOLEAN_P));
|
||||
E void FDECL(set_utrap, (unsigned, unsigned));
|
||||
E void FDECL(reset_utrap, (BOOLEAN_P));
|
||||
E void FDECL(dotrap, (struct trap *, unsigned));
|
||||
E void FDECL(seetrap, (struct trap *));
|
||||
E void FDECL(feeltrap, (struct trap *));
|
||||
|
||||
@@ -333,6 +333,7 @@ typedef struct sortloot_item Loot;
|
||||
#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 */
|
||||
|
||||
/* Flags to control test_move in hack.c */
|
||||
#define DO_MOVE 0 /* really doing the move */
|
||||
|
||||
@@ -209,8 +209,12 @@
|
||||
#define ETeleport_control u.uprops[TELEPORT_CONTROL].extrinsic
|
||||
#define Teleport_control (HTeleport_control || ETeleport_control)
|
||||
|
||||
/* HLevitation has I_SPECIAL set if levitating due to blessed potion
|
||||
which allows player to use the '>' command to end levitation early */
|
||||
#define HLevitation u.uprops[LEVITATION].intrinsic
|
||||
#define ELevitation u.uprops[LEVITATION].extrinsic
|
||||
/* BLevitation has I_SPECIAL set if trapped in the floor,
|
||||
FROMOUTSIDE set if inside solid rock (or in water on Plane of Water) */
|
||||
#define BLevitation u.uprops[LEVITATION].blocked
|
||||
#define Levitation ((HLevitation || ELevitation) && !BLevitation)
|
||||
/* Can't touch surface, can't go under water; overrides all others */
|
||||
@@ -219,8 +223,11 @@
|
||||
&& (HLevitation & ~(I_SPECIAL | TIMEOUT)) == 0L \
|
||||
&& (ELevitation & ~W_ARTI) == 0L)
|
||||
|
||||
/* Flying is overridden by Levitation */
|
||||
#define HFlying u.uprops[FLYING].intrinsic
|
||||
#define EFlying u.uprops[FLYING].extrinsic
|
||||
/* BFlying has I_SPECIAL set if levitating or trapped in the floor or both,
|
||||
FROMOUTSIDE set if inside solid rock (or in water on Plane of Water) */
|
||||
#define BFlying u.uprops[FLYING].blocked
|
||||
#define Flying \
|
||||
((HFlying || EFlying || (u.usteed && is_flyer(u.usteed->data))) \
|
||||
|
||||
Reference in New Issue
Block a user