M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.SkillEffect Class Reference

Inherits TaleWorlds.Core.PropertyObject.

Public Types

enum  EffectIncrementType {
  Invalid = -1 ,
  Add ,
  AddFactor
}
 
enum  PerkRole {
  None ,
  Ruler ,
  ClanLeader ,
  Governor ,
  ArmyCommander ,
  PartyLeader ,
  PartyOwner ,
  Surgeon ,
  Engineer ,
  Scout ,
  Quartermaster ,
  PartyMember ,
  Personal ,
  Captain ,
  NumberOfPerkRoles
}
 

Public Member Functions

 SkillEffect (string stringId)
 
void Initialize (TextObject description, SkillObject[] effectedSkills, PerkRole primaryRole=PerkRole.None, float primaryBonus=0f, PerkRole secondaryRole=PerkRole.None, float secondaryBonus=0f, EffectIncrementType incrementType=EffectIncrementType.AddFactor, float primaryBaseValue=0.0f, float secondaryBaseValue=0.0f)
 
float GetPrimaryValue (int skillLevel)
 
float GetSecondaryValue (int skillLevel)
 
- Public Member Functions inherited from TaleWorlds.Core.PropertyObject
 PropertyObject (string stringId)
 Initializes a new instance of the SkillObject class.
 
void Initialize (TextObject name, TextObject description)
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Properties

static MBReadOnlyList< SkillEffectAll [get]
 
PerkRole PrimaryRole [get]
 
PerkRole SecondaryRole [get]
 
float PrimaryBonus [get]
 
float SecondaryBonus [get]
 
EffectIncrementType IncrementType [get]
 
SkillObject[] EffectedSkills [get]
 
float PrimaryBaseValue [get]
 
float SecondaryBaseValue [get]
 
- Properties inherited from TaleWorlds.Core.PropertyObject
TextObject Name [get]
 
TextObject Description [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Member Enumeration Documentation

◆ EffectIncrementType

Enumerator
Invalid 
Add 
AddFactor 

◆ PerkRole

Enumerator
None 
Ruler 
ClanLeader 
Governor 
ArmyCommander 
PartyLeader 
PartyOwner 
Surgeon 
Engineer 
Scout 
Quartermaster 
PartyMember 
Personal 
Captain 
NumberOfPerkRoles 

Constructor & Destructor Documentation

◆ SkillEffect()

TaleWorlds.CampaignSystem.SkillEffect.SkillEffect ( string  stringId)

Member Function Documentation

◆ Initialize()

void TaleWorlds.CampaignSystem.SkillEffect.Initialize ( TextObject  description,
SkillObject[]  effectedSkills,
PerkRole  primaryRole = PerkRole::None,
float  primaryBonus = 0f,
PerkRole  secondaryRole = PerkRole::None,
float  secondaryBonus = 0f,
EffectIncrementType  incrementType = EffectIncrementType::AddFactor,
float  primaryBaseValue = 0::0f,
float  secondaryBaseValue = 0::0f 
)

◆ GetPrimaryValue()

float TaleWorlds.CampaignSystem.SkillEffect.GetPrimaryValue ( int  skillLevel)

◆ GetSecondaryValue()

float TaleWorlds.CampaignSystem.SkillEffect.GetSecondaryValue ( int  skillLevel)

Property Documentation

◆ All

MBReadOnlyList<SkillEffect> TaleWorlds.CampaignSystem.SkillEffect.All
staticget

◆ PrimaryRole

PerkRole TaleWorlds.CampaignSystem.SkillEffect.PrimaryRole
get

◆ SecondaryRole

PerkRole TaleWorlds.CampaignSystem.SkillEffect.SecondaryRole
get

◆ PrimaryBonus

float TaleWorlds.CampaignSystem.SkillEffect.PrimaryBonus
get

◆ SecondaryBonus

float TaleWorlds.CampaignSystem.SkillEffect.SecondaryBonus
get

◆ IncrementType

EffectIncrementType TaleWorlds.CampaignSystem.SkillEffect.IncrementType
get

◆ EffectedSkills

SkillObject [] TaleWorlds.CampaignSystem.SkillEffect.EffectedSkills
get

◆ PrimaryBaseValue

float TaleWorlds.CampaignSystem.SkillEffect.PrimaryBaseValue
get

◆ SecondaryBaseValue

float TaleWorlds.CampaignSystem.SkillEffect.SecondaryBaseValue
get