In
Should be
The code that checks for the upgrade capability (
I think these perks used to be working and somebody changed some stuff.
Make unit tests to cover perk effects like this to prevent regressions of this nature.
TaleWorlds.CampaignSystem.DefaultPerks.InitializePerks
...
C#:
LeadershipDisciplinarian.Initialize(
"{=ER3ieXOb}Disciplinarian",
"{=2feqprAv}You are able to revert bandits into regular troops .",
DefaultSkills.Leadership,
this.GetTierCost(5),
this.LeadershipDispenserOfJustice,
SkillEffect.PerkRole.Personal,
0f,
SkillEffect.PerkRole.None,
0f,
SkillEffect.EffectIncrementType.AddFactor
);
SkillEffect.PerkRole.PartyLeader
instead of SkillEffect.PerkRole.Personal
there.The code that checks for the upgrade capability (
TaleWorlds.CampaignSystem.MobileParty.HasPerk
) doesn't check Personal
perks.I think these perks used to be working and somebody changed some stuff.
Make unit tests to cover perk effects like this to prevent regressions of this nature.