Client LuaCsForBarotrauma
AbilityConditionCoauthor.cs
1 namespace Barotrauma.Abilities
2 {
4  {
5  private readonly string jobIdentifier;
6 
7  public AbilityConditionCoauthor(CharacterTalent characterTalent, ContentXElement conditionElement) : base(characterTalent, conditionElement)
8  {
9  jobIdentifier = conditionElement.GetAttributeString("jobidentifier", string.Empty);
10  }
11 
12  protected override bool MatchesConditionSpecific()
13  {
14  if (character.SelectedCharacter is Character otherCharacter)
15  {
16  if (!otherCharacter.HasJob(jobIdentifier)) { return false; }
17  if (!(character.SelectedBy == otherCharacter)) { return false; }
18  return true;
19  }
20  return false;
21  }
22  }
23 }
AbilityConditionCoauthor(CharacterTalent characterTalent, ContentXElement conditionElement)
string? GetAttributeString(string key, string? def)