Client LuaCsForBarotrauma
AbilityConditionCharacterNotLooted.cs
1 namespace Barotrauma.Abilities
2 {
3  internal sealed class AbilityConditionCharacterNotLooted : AbilityConditionCharacter
4  {
5  private readonly Identifier identifier;
6 
7  public AbilityConditionCharacterNotLooted(CharacterTalent characterTalent, ContentXElement conditionElement) : base(characterTalent, conditionElement)
8  {
9  identifier = conditionElement.GetAttributeIdentifier("identifier", Identifier.Empty);
10  }
11 
12  protected override bool MatchesCharacter(Character character)
13  {
14  return character != null &&!character.MarkedAsLooted.Contains(identifier);
15  }
16  }
17 }