Client LuaCsForBarotrauma
AbilityConditionAllyHasTalent.cs
1 
2 namespace Barotrauma.Abilities
3 {
5  {
6  private readonly Identifier talentIdentifier;
7 
9  {
10  talentIdentifier = conditionElement.GetAttributeIdentifier("identifier", Identifier.Empty);
11  }
12 
13  protected override bool MatchesConditionSpecific()
14  {
15  foreach (Character crewCharacter in Character.GetFriendlyCrew(characterTalent.Character))
16  {
17  if (crewCharacter.HasTalent(talentIdentifier)) { return true; }
18  }
19  return false;
20  }
21  }
22 }
AbilityConditionAllyHasTalent(CharacterTalent characterTalent, ContentXElement conditionElement)
static IEnumerable< Character > GetFriendlyCrew(Character character)
Identifier GetAttributeIdentifier(string key, string def)