Skip to content

Commit

Permalink
Merge pull request #3191 from CombatExtended-Continued/PenetrationFix
Browse files Browse the repository at this point in the history
Fixed incorrect penetration value
  • Loading branch information
N7Huntsman authored Jun 16, 2024
2 parents 433a981 + 0b9e105 commit 7390468
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public virtual float PenetrationAmount
{
var projectilePropsCE = (ProjectilePropertiesCE)def.projectile;
var isSharpDmg = def.projectile.damageDef.armorCategory == DamageArmorCategoryDefOf.Sharp;
return equipment?.GetStatValue(StatDefOf.RangedWeapon_DamageMultiplier) ?? 1f * (isSharpDmg ? projectilePropsCE.armorPenetrationSharp : projectilePropsCE.armorPenetrationBlunt);
return (equipment?.GetStatValue(StatDefOf.RangedWeapon_DamageMultiplier) ?? 1f) * (isSharpDmg ? projectilePropsCE.armorPenetrationSharp : projectilePropsCE.armorPenetrationBlunt);
}
}

Expand Down

0 comments on commit 7390468

Please sign in to comment.