Resolved Perk Bow Control does not have TroopClassFlag set.

Users who are viewing this thread

Version number
1.0.0
Branch
Main
Modded/unmodded
Yes, I used mods.

armadaxster

Recruit
Summary:
I was looking into captain perks in TaleWorlds.CampaignSystem.dll. And I realised Bow 25 perk "Bow Control" does not cast secondaryTroopClassMask.

this._bowBowControl.InitializeNew("{=1zteHA7R}Bow Control", DefaultSkills.Bow, this.GetTierCost(1), this._bowDeadAim, "{=G0VizlNf}Decreases your bow accuracy loss due to movement by 30%.", SkillEffect.PerkRole.Personal, -30f, SkillEffect.EffectIncrementType.AddFactor, "{=3pBnLqIM}Bow equipped troops in your formation gain 5% damage with bows.", SkillEffect.PerkRole.Captain, 5f, SkillEffect.EffectIncrementType.AddFactor);

And I believe default value for secondaryTroopClassMask is None.

void TaleWorlds.CampaignSystem.CharacterDevelopment.PerkObject.InitializeNew (
...
TroopClassFlag primaryTroopClassMask = TroopClassFlag.None,
TroopClassFlag secondaryTroopClassMask = TroopClassFlag.None
)

secondaryTroopClassMask: TroopClassFlag.BowUser should be added to this._bowBowControl.InitializeNew line.

I think what this does is that none of your troops in your formation get that nice 5% damage bonus.

How to Reproduce: Just play the game.
Have you used cheats and if so which: No.
Scene Name (if related):
Media (Screenshots & Video):
Computer Specs:
OS: Windows 10 Pro
GPU: Nvidia RTX 2060
GPU Driver Version:
CPU: Intel i7 4790k
RAM: 16GB DDR3 1333MHz
Motherboard:MSI Z97S SLI Krait Edition
Storage Device (HDD/SSD): Samsung 980Pro TB NVMe
 
Back
Top Bottom