Client LuaCsForBarotrauma
AbilityConditionAllyHasTalent.cs
1
2
namespace
Barotrauma.Abilities
3
{
4
class
AbilityConditionAllyHasTalent
:
AbilityConditionDataless
5
{
6
private
readonly Identifier talentIdentifier;
7
8
public
AbilityConditionAllyHasTalent
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
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
}
Barotrauma.Abilities.AbilityConditionAllyHasTalent
Definition:
AbilityConditionAllyHasTalent.cs:5
Barotrauma.Abilities.AbilityConditionAllyHasTalent.AbilityConditionAllyHasTalent
AbilityConditionAllyHasTalent(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionAllyHasTalent.cs:8
Barotrauma.Abilities.AbilityConditionAllyHasTalent.MatchesConditionSpecific
override bool MatchesConditionSpecific()
Definition:
AbilityConditionAllyHasTalent.cs:13
Barotrauma.Abilities.AbilityConditionDataless
Definition:
AbilityConditionDataless.cs:4
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Character
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:32
Barotrauma.Character.GetFriendlyCrew
static IEnumerable< Character > GetFriendlyCrew(Character character)
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:5738
Barotrauma.Character.HasTalent
bool HasTalent(Identifier identifier)
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:5663
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.CharacterTalent.Character
Character Character
Definition:
CharacterTalent.cs:9
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeIdentifier
Identifier GetAttributeIdentifier(string key, string def)
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionDataless
AbilityConditionAllyHasTalent.cs
Generated by
1.9.1