Client LuaCsForBarotrauma
AbilityConditionAboveVitality.cs
1
namespace
Barotrauma.Abilities
2
{
3
class
AbilityConditionAboveVitality
:
AbilityConditionDataless
4
{
5
private
readonly
float
vitalityPercentage;
6
7
public
AbilityConditionAboveVitality
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
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
}
Barotrauma.Abilities.AbilityConditionAboveVitality
Definition:
AbilityConditionAboveVitality.cs:4
Barotrauma.Abilities.AbilityConditionAboveVitality.MatchesConditionSpecific
override bool MatchesConditionSpecific()
Definition:
AbilityConditionAboveVitality.cs:12
Barotrauma.Abilities.AbilityConditionAboveVitality.AbilityConditionAboveVitality
AbilityConditionAboveVitality(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionAboveVitality.cs:7
Barotrauma.Abilities.AbilityConditionDataless
Definition:
AbilityConditionDataless.cs:4
Barotrauma.Abilities.AbilityCondition.character
Character character
Definition:
AbilityCondition.cs:9
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Character.Vitality
float Vitality
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:967
Barotrauma.Character.MaxVitality
float MaxVitality
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:970
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeFloat
float GetAttributeFloat(string key, float def)
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionDataless
AbilityConditionAboveVitality.cs
Generated by
1.9.1