wounded legs fixes
Document 'HWounded_legs' vs 'EWounded_legs'; they aren't used the way other properties use their intrinsic and extrinsic values. And they switch from hero to steed when riding. (Can't start riding when hero's legs are wounded and the steed's legs magically heal when hero dismounts, so existing wounds never transfer from one to the other.) Having one leg become injured when the other already was would cure the other leg but keep the longer of their two timeouts for the new injury. Eliminate that mystery cure. Since their timeouts aren't tracked separately, the best that can be done is to make both legs eventually recover at the same time. Make ^X report which leg is the wounded one when only one of them is. (It already implicitly reports the both-legs case by using plural.) When zapping a wand of probing downward while riding, include wounded leg feedback for the steed. Simplify wounded leg feedback when probing self a little bit. Make drinking blessed potions of full healing cure wounded legs for hero when not mounted or for steed when mounted. (The latter is a bit strange--hero drinks potion, steed gets affected--but it's magic.) Make drinking uncursed potions of full healing or blessed potions of extra healing cure wounded legs for hero (but not steed; the magic either isn't that strong or maybe not that reliable...).
This commit is contained in:
@@ -120,9 +120,13 @@
|
||||
#define EFumbling u.uprops[FUMBLING].extrinsic
|
||||
#define Fumbling (HFumbling || EFumbling)
|
||||
|
||||
/* HWounded_legs indicates whether wounded leg(s) condition exists and
|
||||
holds the timeout for recovery; EWounded_legs uses the worn-ring bits
|
||||
to track left vs right vs both and is meaningless when HWounded_legs
|
||||
is zero; both values apply to steed rather than to hero when riding */
|
||||
#define HWounded_legs u.uprops[WOUNDED_LEGS].intrinsic
|
||||
#define EWounded_legs u.uprops[WOUNDED_LEGS].extrinsic
|
||||
#define Wounded_legs (HWounded_legs || EWounded_legs)
|
||||
#define Wounded_legs (HWounded_legs) /* (don't include EWounded_legs here) */
|
||||
|
||||
#define HSleepy u.uprops[SLEEPY].intrinsic
|
||||
#define ESleepy u.uprops[SLEEPY].extrinsic
|
||||
|
||||
Reference in New Issue
Block a user