Client LuaCsForBarotrauma
AbilityConditionHasSkill.cs
1
namespace
Barotrauma.Abilities
2
{
3
class
AbilityConditionHasSkill
:
AbilityConditionDataless
4
{
5
private
readonly Identifier skillIdentifier;
6
private
readonly
float
minValue;
7
8
public
AbilityConditionHasSkill
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
9
{
10
skillIdentifier = conditionElement.
GetAttributeIdentifier
(
"skillidentifier"
, Identifier.Empty);
11
minValue = conditionElement.
GetAttributeFloat
(
"minvalue"
, 0f);
12
}
13
14
protected
override
bool
MatchesConditionSpecific
()
15
{
16
return
character
.
GetSkillLevel
(skillIdentifier) >= minValue;
17
}
18
}
19
}
Barotrauma.Abilities.AbilityConditionDataless
Definition:
AbilityConditionDataless.cs:4
Barotrauma.Abilities.AbilityConditionHasSkill
Definition:
AbilityConditionHasSkill.cs:4
Barotrauma.Abilities.AbilityConditionHasSkill.MatchesConditionSpecific
override bool MatchesConditionSpecific()
Definition:
AbilityConditionHasSkill.cs:14
Barotrauma.Abilities.AbilityConditionHasSkill.AbilityConditionHasSkill
AbilityConditionHasSkill(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionHasSkill.cs:8
Barotrauma.Abilities.AbilityCondition.character
Character character
Definition:
AbilityCondition.cs:9
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Character.GetSkillLevel
float GetSkillLevel(Identifier skillIdentifier)
Get the character's current skill level, taking into account any temporary boosts from wearables and ...
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:1860
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeFloat
float GetAttributeFloat(string key, float def)
Barotrauma.ContentXElement.GetAttributeIdentifier
Identifier GetAttributeIdentifier(string key, string def)
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionDataless
AbilityConditionHasSkill.cs
Generated by
1.9.1