wilkins
Recruit

all the "+" penetration perks actually increase enemy's armor. Here paste codes.
for example, bow perk bodkin, bodkin's values are positive numbers (that's where the bug is):
this._bowBodkin.Initialize("{=PDM8MzCA}Bodkin", DefaultSkills.Bow, this.GetTierCost(2), this._bowNockingPoint, "{=EU3No7XM}{VALUE}% armor penetration with bows.", SkillEffect.PerkRole.Personal, 0.1f, SkillEffect.EffectIncrementType.AddFactor, "{=KfLZ8Hbw}{VALUE}% armor penetration with bows by troops in your formation.", SkillEffect.PerkRole.Captain, 0.05f, SkillEffect.EffectIncrementType.AddFactor, TroopClassFlag.None, TroopClassFlag.BowUser);
calculating method: CalculateAdjustedArmorForBlow in class SandboxStrikeMagnitudeModel,
here, result armor = base armor + base armor * sum penetration, because they are positive numbers, result armor is higher than base armor:
so these perks actually reduce your damage.
bug perks:
TwoHanded.Vandal
OneHanded.ChinkInTheArmor
Bow.Bodkin
Crossbow.Puncture
Throwing.WeakSpot
for example, bow perk bodkin, bodkin's values are positive numbers (that's where the bug is):
this._bowBodkin.Initialize("{=PDM8MzCA}Bodkin", DefaultSkills.Bow, this.GetTierCost(2), this._bowNockingPoint, "{=EU3No7XM}{VALUE}% armor penetration with bows.", SkillEffect.PerkRole.Personal, 0.1f, SkillEffect.EffectIncrementType.AddFactor, "{=KfLZ8Hbw}{VALUE}% armor penetration with bows by troops in your formation.", SkillEffect.PerkRole.Captain, 0.05f, SkillEffect.EffectIncrementType.AddFactor, TroopClassFlag.None, TroopClassFlag.BowUser);
calculating method: CalculateAdjustedArmorForBlow in class SandboxStrikeMagnitudeModel,
here, result armor = base armor + base armor * sum penetration, because they are positive numbers, result armor is higher than base armor:
Code:
public float ResultNumber
{
get
{
return MathF.Clamp(this.BaseNumber + this.BaseNumber * this._sumOfFactors, this.LimitMinValue, this.LimitMaxValue);
}
}
so these perks actually reduce your damage.
bug perks:
TwoHanded.Vandal
OneHanded.ChinkInTheArmor
Bow.Bodkin
Crossbow.Puncture
Throwing.WeakSpot