Client LuaCsForBarotrauma
AbilityConditionAboveVitality.cs
1 namespace Barotrauma.Abilities
2 {
4  {
5  private readonly float vitalityPercentage;
6 
8  {
9  vitalityPercentage = conditionElement.GetAttributeFloat("vitalitypercentage", 0f);
10  }
11 
12  protected override bool MatchesConditionSpecific()
13  {
14  return character.Vitality / character.MaxVitality > vitalityPercentage;
15  }
16  }
17 }
AbilityConditionAboveVitality(CharacterTalent characterTalent, ContentXElement conditionElement)
float GetAttributeFloat(string key, float def)