Class PerkHelper
- Namespace
- Helpers
- Assembly
- TaleWorlds.CampaignSystem.dll
public static class PerkHelper
- Inheritance
-
PerkHelper
- Inherited Members
Methods
AddEpicPerkBonusForCharacter(PerkObject, CharacterObject, SkillObject, bool, ref ExplainedNumber, int)
public static void AddEpicPerkBonusForCharacter(PerkObject perk, CharacterObject character, SkillObject skillType, bool applyPrimaryBonus, ref ExplainedNumber bonuses, int skillRequired)
Parameters
perkPerkObjectcharacterCharacterObjectskillTypeSkillObjectapplyPrimaryBonusboolbonusesExplainedNumberskillRequiredint
AddPerkBonusForCharacter(PerkObject, CharacterObject, bool, ref ExplainedNumber)
public static void AddPerkBonusForCharacter(PerkObject perk, CharacterObject character, bool isPrimaryBonus, ref ExplainedNumber bonuses)
Parameters
perkPerkObjectcharacterCharacterObjectisPrimaryBonusboolbonusesExplainedNumber
AddPerkBonusForParty(PerkObject, MobileParty, bool, ref ExplainedNumber)
public static void AddPerkBonusForParty(PerkObject perk, MobileParty party, bool isPrimaryBonus, ref ExplainedNumber stat)
Parameters
perkPerkObjectpartyMobilePartyisPrimaryBonusboolstatExplainedNumber
AddPerkBonusForTown(PerkObject, Town, ref ExplainedNumber)
public static void AddPerkBonusForTown(PerkObject perk, Town town, ref ExplainedNumber bonuses)
Parameters
perkPerkObjecttownTownbonusesExplainedNumber
AddPerkBonusFromCaptain(PerkObject, CharacterObject, ref ExplainedNumber)
public static void AddPerkBonusFromCaptain(PerkObject perk, CharacterObject captainCharacter, ref ExplainedNumber bonuses)
Parameters
perkPerkObjectcaptainCharacterCharacterObjectbonusesExplainedNumber
AvailablePerkCountOfHero(Hero)
public static int AvailablePerkCountOfHero(Hero hero)
Parameters
heroHero
Returns
GetCaptainPerksForTroopUsages(TroopUsageFlags)
public static IEnumerable<PerkObject> GetCaptainPerksForTroopUsages(TroopUsageFlags troopUsageFlags)
Parameters
troopUsageFlagsTroopUsageFlags
Returns
GetGovernorEngineeringSkillEffectForHero(Hero)
public static (TextObject, TextObject) GetGovernorEngineeringSkillEffectForHero(Hero governor)
Parameters
governorHero
Returns
GetGovernorPerksForHero(Hero)
public static List<PerkObject> GetGovernorPerksForHero(Hero hero)
Parameters
heroHero
Returns
GetPerkValueForTown(PerkObject, Town)
public static bool GetPerkValueForTown(PerkObject perk, Town town)
Parameters
perkPerkObjecttownTown
Returns
PlayerHasAnyItemDonationPerk()
public static bool PlayerHasAnyItemDonationPerk()
Returns
SetDescriptionTextVariable(TextObject, float, EffectIncrementType)
public static void SetDescriptionTextVariable(TextObject description, float bonus, SkillEffect.EffectIncrementType effectIncrementType)
Parameters
descriptionTextObjectbonusfloateffectIncrementTypeSkillEffect.EffectIncrementType
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).