Table of Contents

Class PerkObject

Namespace
TaleWorlds.CampaignSystem.CharacterDevelopment
Assembly
TaleWorlds.CampaignSystem.dll
public sealed class PerkObject : PropertyObject
Inheritance
PerkObject
Inherited Members

Constructors

PerkObject(string)

public PerkObject(string stringId)

Parameters

stringId string

Properties

All

public static MBReadOnlyList<PerkObject> All { get; }

Property Value

MBReadOnlyList<PerkObject>

AlternativePerk

public PerkObject AlternativePerk { get; }

Property Value

PerkObject

IsTrash

public bool IsTrash { get; }

Property Value

bool

PrimaryBonus

public float PrimaryBonus { get; }

Property Value

float

PrimaryDescription

public TextObject PrimaryDescription { get; }

Property Value

TextObject

PrimaryIncrementType

public SkillEffect.EffectIncrementType PrimaryIncrementType { get; }

Property Value

SkillEffect.EffectIncrementType

PrimaryRole

public SkillEffect.PerkRole PrimaryRole { get; }

Property Value

SkillEffect.PerkRole

PrimaryTroopUsageMask

public TroopUsageFlags PrimaryTroopUsageMask { get; }

Property Value

TroopUsageFlags

RequiredSkillValue

public float RequiredSkillValue { get; }

Property Value

float

SecondaryBonus

public float SecondaryBonus { get; }

Property Value

float

SecondaryDescription

public TextObject SecondaryDescription { get; }

Property Value

TextObject

SecondaryIncrementType

public SkillEffect.EffectIncrementType SecondaryIncrementType { get; }

Property Value

SkillEffect.EffectIncrementType

SecondaryRole

public SkillEffect.PerkRole SecondaryRole { get; }

Property Value

SkillEffect.PerkRole

SecondaryTroopUsageMask

public TroopUsageFlags SecondaryTroopUsageMask { get; }

Property Value

TroopUsageFlags

Skill

public SkillObject Skill { get; }

Property Value

SkillObject

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

Initialize(string, SkillObject, int, PerkObject, string, PerkRole, float, EffectIncrementType, string, PerkRole, float, EffectIncrementType, TroopUsageFlags, TroopUsageFlags)

public void Initialize(string name, SkillObject skill, int requiredSkillValue, PerkObject alternativePerk, string primaryDescription, SkillEffect.PerkRole primaryRole, float primaryBonus, SkillEffect.EffectIncrementType incrementType, string secondaryDescription = "", SkillEffect.PerkRole secondaryRole = PerkRole.None, float secondaryBonus = 0, SkillEffect.EffectIncrementType secondaryIncrementType = EffectIncrementType.Invalid, TroopUsageFlags primaryTroopUsageMask = TroopUsageFlags.Undefined, TroopUsageFlags secondaryTroopUsageMask = TroopUsageFlags.Undefined)

Parameters

name string
skill SkillObject
requiredSkillValue int
alternativePerk PerkObject
primaryDescription string
primaryRole SkillEffect.PerkRole
primaryBonus float
incrementType SkillEffect.EffectIncrementType
secondaryDescription string
secondaryRole SkillEffect.PerkRole
secondaryBonus float
secondaryIncrementType SkillEffect.EffectIncrementType
primaryTroopUsageMask TroopUsageFlags
secondaryTroopUsageMask TroopUsageFlags

ToString()

public override string ToString()

Returns

string

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