Skip to content

Commit

Permalink
Update ArmorUtilityCE.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tostov authored Sep 7, 2024
1 parent a971255 commit 58acefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/CombatExtended/CombatExtended/ArmorUtilityCE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static DamageInfo GetAfterArmorDamage(DamageInfo originalDinfo, Pawn pawn

var dinfo = new DamageInfo(originalDinfo);
var dmgAmount = dinfo.Amount;
var penAmount = originalDinfo.ArmorPenetrationInt; //GetPenetrationValue(originalDinfo);
var penAmount = dinfo.ArmorPenetrationInt; //GetPenetrationValue(originalDinfo);
var involveArmor = dinfo.Def.harmAllLayersUntilOutside || hitPart.depth == BodyPartDepth.Outside;
bool isAmbientDamage = dinfo.IsAmbientDamage();

Expand Down Expand Up @@ -419,7 +419,7 @@ private static bool TryDamageArmor(DamageDef def, float penAmount, float armorAm
/// <param name="pawn">The damaged pawn</param>
/// <param name="part">The body part affected</param>
/// <returns>The post-armor damage ranging from 0 to the original amount</returns>
private static float GetAmbientPostArmorDamage(float dmgAmount,float penAmount, StatDef armorRatingStat, Pawn pawn, BodyPartRecord part)
private static float GetAmbientPostArmorDamage(float dmgAmount, float penAmount, StatDef armorRatingStat, Pawn pawn, BodyPartRecord part)
{
var dmgMult = 1f + penAmount;
if (part.IsInGroup(CE_BodyPartGroupDefOf.CoveredByNaturalArmor))
Expand Down

0 comments on commit 58acefe

Please sign in to comment.