Client LuaCsForBarotrauma
AbilityConditionHasTalent.cs
1 
2 namespace Barotrauma.Abilities
3 {
5  {
6  private readonly Identifier talentIdentifier;
7 
8  public AbilityConditionHasTalent(CharacterTalent characterTalent, ContentXElement conditionElement) : base(characterTalent, conditionElement)
9  {
10  talentIdentifier = conditionElement.GetAttributeIdentifier("identifier", Identifier.Empty);
11  }
12 
13  protected override bool MatchesConditionSpecific()
14  {
15  return character.HasTalent(talentIdentifier);
16  }
17  }
18 }
AbilityConditionHasTalent(CharacterTalent characterTalent, ContentXElement conditionElement)
Identifier GetAttributeIdentifier(string key, string def)