new property: BLND_RES

Add enlightenment feedback for Sunsword's blocking of becoming blind
from light flashes.  It uses an extra property so that wizard mode
can report the reason.

EDITLEVEL is being incremented, so existing save and bones files are
invalidated.
This commit is contained in:
PatR
2024-11-26 20:57:11 -08:00
parent 15e70035d0
commit d32ab55b84
9 changed files with 72 additions and 37 deletions

View File

@@ -17,7 +17,7 @@
* Incrementing EDITLEVEL can be used to force invalidation of old bones
* and save files.
*/
#define EDITLEVEL 109
#define EDITLEVEL 110
/*
* Development status possibilities.

View File

@@ -55,41 +55,42 @@ enum prop_types {
CLAIRVOYANT = 35,
INFRAVISION = 36,
DETECT_MONSTERS = 37,
BLND_RES = 38,
/* Appearance and behavior */
ADORNED = 38,
INVIS = 39,
DISPLACED = 40,
STEALTH = 41,
AGGRAVATE_MONSTER = 42,
CONFLICT = 43,
ADORNED = 39,
INVIS = 40,
DISPLACED = 41,
STEALTH = 42,
AGGRAVATE_MONSTER = 43,
CONFLICT = 44,
/* Transportation */
JUMPING = 44,
TELEPORT = 45,
TELEPORT_CONTROL = 46,
LEVITATION = 47,
FLYING = 48,
WWALKING = 49,
SWIMMING = 50,
MAGICAL_BREATHING = 51,
PASSES_WALLS = 52,
JUMPING = 45,
TELEPORT = 46,
TELEPORT_CONTROL = 47,
LEVITATION = 48,
FLYING = 49,
WWALKING = 50,
SWIMMING = 51,
MAGICAL_BREATHING = 52,
PASSES_WALLS = 53,
/* Physical attributes */
SLOW_DIGESTION = 53,
HALF_SPDAM = 54,
HALF_PHDAM = 55,
REGENERATION = 56,
ENERGY_REGENERATION = 57,
PROTECTION = 58,
PROT_FROM_SHAPE_CHANGERS = 59,
POLYMORPH = 60,
POLYMORPH_CONTROL = 61,
UNCHANGING = 62,
FAST = 63,
REFLECTING = 64,
FREE_ACTION = 65,
FIXED_ABIL = 66,
LIFESAVED = 67
SLOW_DIGESTION = 54,
HALF_SPDAM = 55,
HALF_PHDAM = 56,
REGENERATION = 57,
ENERGY_REGENERATION = 58,
PROTECTION = 59,
PROT_FROM_SHAPE_CHANGERS = 60,
POLYMORPH = 61,
POLYMORPH_CONTROL = 62,
UNCHANGING = 63,
FAST = 64,
REFLECTING = 65,
FREE_ACTION = 66,
FIXED_ABIL = 67,
LIFESAVED = 68,
LAST_PROP = LIFESAVED
};
#define LAST_PROP (LIFESAVED)
/*** Where the properties come from ***/
/* Definitions were moved here from obj.h and you.h */

View File

@@ -156,6 +156,10 @@
#define Blind_telepat (HTelepat || ETelepat)
#define Unblind_telepat (ETelepat)
#define HBlnd_resist u.uprops[BLND_RES].intrinsic /* from form */
#define EBlnd_resist u.uprops[BLND_RES].extrinsic /* wielding Sunsword */
#define Blnd_resist (HBlnd_resist || EBlnd_resist)
#define HWarning u.uprops[WARNING].intrinsic
#define EWarning u.uprops[WARNING].extrinsic
#define Warning (HWarning || EWarning)