Barotrauma Client Doc
Barotrauma.CharacterTalent Class Reference

Public Member Functions

 CharacterTalent (TalentPrefab talentPrefab, Character character)
 
virtual void UpdateTalent (float deltaTime)
 
void CheckTalent (AbilityEffectType abilityEffectType, AbilityObject abilityObject)
 
void ActivateTalent (bool addingFirstTime)
 
void AddAbilityGroupEffect (CharacterAbilityGroupEffect characterAbilityGroup, AbilityEffectType abilityEffectType=AbilityEffectType.None)
 

Static Public Member Functions

static void CheckTalentsForCrew (IEnumerable< Character > crew, AbilityEffectType type, AbilityObject abilityObject)
 Checks talents for a given AbilityObject taking into account non-stackable talents. More...
 
static AbilityEffectType ParseAbilityEffectType (CharacterTalent characterTalent, string abilityEffectTypeString)
 

Public Attributes

readonly TalentPrefab Prefab
 
bool AddedThisRound = true
 

Properties

Character Character [get]
 
string DebugIdentifier [get]
 
List< IdentifierUnlockedRecipes = new List<Identifier>() [get]
 
List< IdentifierUnlockedStoreItems = new List<Identifier>() [get]
 

Detailed Description

Definition at line 7 of file CharacterTalent.cs.

Constructor & Destructor Documentation

◆ CharacterTalent()

Barotrauma.CharacterTalent.CharacterTalent ( TalentPrefab  talentPrefab,
Character  character 
)

Definition at line 24 of file CharacterTalent.cs.

Member Function Documentation

◆ ActivateTalent()

void Barotrauma.CharacterTalent.ActivateTalent ( bool  addingFirstTime)

Definition at line 109 of file CharacterTalent.cs.

◆ AddAbilityGroupEffect()

void Barotrauma.CharacterTalent.AddAbilityGroupEffect ( CharacterAbilityGroupEffect  characterAbilityGroup,
AbilityEffectType  abilityEffectType = AbilityEffectType.None 
)

Definition at line 132 of file CharacterTalent.cs.

◆ CheckTalent()

void Barotrauma.CharacterTalent.CheckTalent ( AbilityEffectType  abilityEffectType,
AbilityObject  abilityObject 
)

Definition at line 98 of file CharacterTalent.cs.

◆ CheckTalentsForCrew()

static void Barotrauma.CharacterTalent.CheckTalentsForCrew ( IEnumerable< Character crew,
AbilityEffectType  type,
AbilityObject  abilityObject 
)
static

Checks talents for a given AbilityObject taking into account non-stackable talents.

Definition at line 80 of file CharacterTalent.cs.

◆ ParseAbilityEffectType()

static AbilityEffectType Barotrauma.CharacterTalent.ParseAbilityEffectType ( CharacterTalent  characterTalent,
string  abilityEffectTypeString 
)
static

Definition at line 146 of file CharacterTalent.cs.

◆ UpdateTalent()

virtual void Barotrauma.CharacterTalent.UpdateTalent ( float  deltaTime)
virtual

Definition at line 67 of file CharacterTalent.cs.

Member Data Documentation

◆ AddedThisRound

bool Barotrauma.CharacterTalent.AddedThisRound = true

Definition at line 14 of file CharacterTalent.cs.

◆ Prefab

readonly TalentPrefab Barotrauma.CharacterTalent.Prefab

Definition at line 12 of file CharacterTalent.cs.

Property Documentation

◆ Character

Character Barotrauma.CharacterTalent.Character
get

Definition at line 9 of file CharacterTalent.cs.

◆ DebugIdentifier

string Barotrauma.CharacterTalent.DebugIdentifier
get

Definition at line 10 of file CharacterTalent.cs.

◆ UnlockedRecipes

List<Identifier> Barotrauma.CharacterTalent.UnlockedRecipes = new List<Identifier>()
get

Definition at line 21 of file CharacterTalent.cs.

◆ UnlockedStoreItems

List<Identifier> Barotrauma.CharacterTalent.UnlockedStoreItems = new List<Identifier>()
get

Definition at line 22 of file CharacterTalent.cs.