displacer beast as food

Make eating a displacer beast corpse or a tin of displacer beast
meat confer temporary Displacement lasting 6d6 turns.
This commit is contained in:
PatR
2020-05-04 09:50:11 -07:00
parent 88461e1923
commit 16562b2892
5 changed files with 21 additions and 9 deletions

View File

@@ -489,6 +489,7 @@ E int NDECL(take_off);
#endif
E const char *FDECL(fingers_or_gloves, (BOOLEAN_P));
E void FDECL(off_msg, (struct obj *));
E void FDECL(toggle_displacement, (struct obj *, long, BOOLEAN_P));
E void FDECL(set_wear, (struct obj *));
E boolean FDECL(donning, (struct obj *));
E boolean FDECL(doffing, (struct obj *));

View File

@@ -180,8 +180,9 @@
#define Invisible (Invis && !See_invisible)
/* Note: invisibility also hides inventory and steed */
#define EDisplaced u.uprops[DISPLACED].extrinsic
#define Displaced EDisplaced
#define HDisplaced u.uprops[DISPLACED].intrinsic /* timed from corpse */
#define EDisplaced u.uprops[DISPLACED].extrinsic /* worn cloak */
#define Displaced (HDisplaced || EDisplaced)
#define HStealth u.uprops[STEALTH].intrinsic
#define EStealth u.uprops[STEALTH].extrinsic