Table of Contents

Class HeroDeveloper

Namespace
TaleWorlds.CampaignSystem.CharacterDevelopment
Assembly
TaleWorlds.CampaignSystem.dll
public class HeroDeveloper : PropertyOwnerF<PropertyObject>, IHeroDeveloper
Inheritance
HeroDeveloper
Implements
Inherited Members

Properties

Hero

[SaveableProperty(103)]
public Hero Hero { get; }

Property Value

Hero

IsDeveloperInitialized

public bool IsDeveloperInitialized { get; }

Property Value

bool

TotalXp

public int TotalXp { get; }

Property Value

int

UnspentAttributePoints

[SaveableProperty(102)]
public int UnspentAttributePoints { get; set; }

Property Value

int

UnspentFocusPoints

[SaveableProperty(101)]
public int UnspentFocusPoints { get; set; }

Property Value

int

Methods

AddAttribute(CharacterAttribute, int, bool)

public void AddAttribute(CharacterAttribute attrib, int changeAmount, bool checkUnspentPoints = true)

Parameters

attrib CharacterAttribute
changeAmount int
checkUnspentPoints bool

AddFocus(SkillObject, int, bool)

public void AddFocus(SkillObject skill, int changeAmount, bool checkUnspentFocusPoints = true)

Parameters

skill SkillObject
changeAmount int
checkUnspentFocusPoints bool

AddPerk(PerkObject)

public void AddPerk(PerkObject perk)

Parameters

perk PerkObject

AddSkillXp(SkillObject, float, bool, bool)

public void AddSkillXp(SkillObject skill, float rawXp, bool isAffectedByFocusFactor = true, bool shouldNotify = true)

Parameters

skill SkillObject
rawXp float
isAffectedByFocusFactor bool
shouldNotify bool

AfterLoad()

protected override void AfterLoad()

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

CanAddFocusToSkill(SkillObject)

public bool CanAddFocusToSkill(SkillObject skill)

Parameters

skill SkillObject

Returns

bool

ChangeSkillLevel(SkillObject, int, bool)

public void ChangeSkillLevel(SkillObject skill, int changeAmount, bool shouldNotify = true)

Parameters

skill SkillObject
changeAmount int
shouldNotify bool

ClearHero()

public void ClearHero()

ClearUnspentPoints()

public void ClearUnspentPoints()

DevelopCharacterStats()

public void DevelopCharacterStats()

GetFocus(SkillObject)

public int GetFocus(SkillObject skill)

Parameters

skill SkillObject

Returns

int

GetFocusFactor(SkillObject)

public float GetFocusFactor(SkillObject skill)

Parameters

skill SkillObject

Returns

float

GetPerkValue(PerkObject)

public bool GetPerkValue(PerkObject perk)

Parameters

perk PerkObject

Returns

bool

GetRequiredFocusPointsToAddFocus(SkillObject)

public int GetRequiredFocusPointsToAddFocus(SkillObject skill)

Parameters

skill SkillObject

Returns

int

GetSkillXpProgress(SkillObject)

public int GetSkillXpProgress(SkillObject skill)

Parameters

skill SkillObject

Returns

int

GetTotalSkillPoints()

public int GetTotalSkillPoints()

Returns

int

GetXpRequiredForLevel(int)

public int GetXpRequiredForLevel(int level)

Parameters

level int

Returns

int

InitializeHeroDeveloper(bool, CharacterObject)

public void InitializeHeroDeveloper(bool isByNaturalGrowth = false, CharacterObject template = null)

Parameters

isByNaturalGrowth bool
template CharacterObject

InitializeSkillXp(SkillObject)

public void InitializeSkillXp(SkillObject skill)

Parameters

skill SkillObject

RemoveAttribute(CharacterAttribute, int)

public void RemoveAttribute(CharacterAttribute attrib, int changeAmount)

Parameters

attrib CharacterAttribute
changeAmount int

RemoveFocus(SkillObject, int)

public void RemoveFocus(SkillObject skill, int changeAmount)

Parameters

skill SkillObject
changeAmount int

SetInitialLevel(int)

public void SetInitialLevel(int level)

Parameters

level int

SetInitialSkillLevel(SkillObject, int)

public void SetInitialSkillLevel(SkillObject skill, int newSkillValue)

Parameters

skill SkillObject
newSkillValue int

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).