Client LuaCsForBarotrauma
AbilityConditionCoauthor.cs
1
namespace
Barotrauma.Abilities
2
{
3
class
AbilityConditionCoauthor
:
AbilityConditionDataless
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
}
Barotrauma.Abilities.AbilityConditionCoauthor
Definition:
AbilityConditionCoauthor.cs:4
Barotrauma.Abilities.AbilityConditionCoauthor.MatchesConditionSpecific
override bool MatchesConditionSpecific()
Definition:
AbilityConditionCoauthor.cs:12
Barotrauma.Abilities.AbilityConditionCoauthor.AbilityConditionCoauthor
AbilityConditionCoauthor(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionCoauthor.cs:7
Barotrauma.Abilities.AbilityConditionDataless
Definition:
AbilityConditionDataless.cs:4
Barotrauma.Abilities.AbilityCondition.character
Character character
Definition:
AbilityCondition.cs:9
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Character
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:32
Barotrauma.Character.SelectedBy
Character SelectedBy
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:792
Barotrauma.Character.SelectedCharacter
Character SelectedCharacter
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:734
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeString
string? GetAttributeString(string key, string? def)
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionDataless
AbilityConditionCoauthor.cs
Generated by
1.9.1