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
AlternativePerk
public PerkObject AlternativePerk { get; }
Property Value
IsTrash
public bool IsTrash { get; }
Property Value
PrimaryBonus
public float PrimaryBonus { get; }
Property Value
PrimaryDescription
public TextObject PrimaryDescription { get; }
Property Value
PrimaryIncrementType
public SkillEffect.EffectIncrementType PrimaryIncrementType { get; }
Property Value
PrimaryRole
public SkillEffect.PerkRole PrimaryRole { get; }
Property Value
PrimaryTroopUsageMask
public TroopUsageFlags PrimaryTroopUsageMask { get; }
Property Value
RequiredSkillValue
public float RequiredSkillValue { get; }
Property Value
SecondaryBonus
public float SecondaryBonus { get; }
Property Value
SecondaryDescription
public TextObject SecondaryDescription { get; }
Property Value
SecondaryIncrementType
public SkillEffect.EffectIncrementType SecondaryIncrementType { get; }
Property Value
SecondaryRole
public SkillEffect.PerkRole SecondaryRole { get; }
Property Value
SecondaryTroopUsageMask
public TroopUsageFlags SecondaryTroopUsageMask { get; }
Property Value
Skill
public SkillObject Skill { get; }
Property Value
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
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
stringskill
SkillObjectrequiredSkillValue
intalternativePerk
PerkObjectprimaryDescription
stringprimaryRole
SkillEffect.PerkRoleprimaryBonus
floatincrementType
SkillEffect.EffectIncrementTypesecondaryDescription
stringsecondaryRole
SkillEffect.PerkRolesecondaryBonus
floatsecondaryIncrementType
SkillEffect.EffectIncrementTypeprimaryTroopUsageMask
TroopUsageFlagssecondaryTroopUsageMask
TroopUsageFlags
ToString()
public override string ToString()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).