Give dragon armor extra effects

Dragon scales and dragon scale mails will provide some extra effects
when worn:

 - blue:   very fast speed
 - black:  level-drain resistance
 - green:  sickness resistance
 - gold:   hallucination resistance
 - orange: free action
 - red:    infravision
 - white:  slow digestion
 - yellow: stoning resistance

gray and silver don't have extra effects - those two are already the
best ones, so don't need any.
This commit is contained in:
Pasi Kallinen
2021-12-20 23:22:07 +02:00
parent 0bc396282d
commit ef1eeed755
3 changed files with 95 additions and 4 deletions

View File

@@ -66,7 +66,8 @@
/* Intrinsics only */
#define HSick_resistance u.uprops[SICK_RES].intrinsic
#define Sick_resistance (HSick_resistance || defends(AD_DISE, uwep))
#define ESick_resistance u.uprops[SICK_RES].extrinsic
#define Sick_resistance (HSick_resistance || ESick_resistance || defends(AD_DISE, uwep))
#define Invulnerable u.uprops[INVULNERABLE].intrinsic /* [Tom] */