fix recent Wounded_legs fix
Wounded_legs was changed from (HWounded_legs || EWounded_legs) to just (HWounded_legs), but when the timeout code decremented the timer to 0, HWounded_legs became 0 and heal_legs() operated as if there was nothing to repair and hero didn't recover from temporarily lost Dex. Change Wounded_legs back to (HWounded_legs || EWounded_legs).
This commit is contained in:
@@ -123,10 +123,11 @@
|
||||
/* 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 */
|
||||
is zero except when timeout has just decremented that to 0 and calls
|
||||
heal_legs(); 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) /* (don't include EWounded_legs here) */
|
||||
#define Wounded_legs (HWounded_legs || EWounded_legs)
|
||||
|
||||
#define HSleepy u.uprops[SLEEPY].intrinsic
|
||||
#define ESleepy u.uprops[SLEEPY].extrinsic
|
||||
|
||||
Reference in New Issue
Block a user