Skip to content

Commit

Permalink
healdown wounds to rank0 due to scars not populating
Browse files Browse the repository at this point in the history
Due to XMLData.injuries not populating scars if a wound is present, change logic for to healdown wounds to rank 0 instead of rank 1
  • Loading branch information
mrhoribu authored Jan 20, 2025
1 parent 78fb1cd commit ee58db3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/eherbs.lic
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,9 @@ module EHerbs
if [Wounds.head].max > 1
herb_type = "major #{EHerbs.data[:areas][area]} wound"
break
elsif [Wounds.head].max == 1
herb_type = "minor #{EHerbs.data[:areas][area]} wound"
break
end
elsif EHerbs.data[:spellcast_only] && area == 'torso'
if [Wounds.leftEye, Wounds.rightEye].max > 1
Expand All @@ -2880,11 +2883,17 @@ module EHerbs
if [Wounds.nsys].max > 1
herb_type = "major #{EHerbs.data[:areas][area]} wound"
break
elsif [Wounds.nsys].max == 1
herb_type = "minor #{EHerbs.data[:areas][area]} wound"
break
end
elsif area == 'limbs'
if [Wounds.leftArm, Wounds.leftHand, Wounds.rightArm, Wounds.rightHand].max > 1
herb_type = "major #{EHerbs.data[:areas][area]} wound"
break
elsif [Wounds.leftArm, Wounds.leftHand, Wounds.rightArm, Wounds.rightHand].max == 1
herb_type = "minor #{EHerbs.data[:areas][area]} wound"
break
end
end
end
Expand Down

0 comments on commit ee58db3

Please sign in to comment.