Skip to content

Commit

Permalink
Merge pull request #3093 from SamaelGray/SamaelGray-ExplosionAP
Browse files Browse the repository at this point in the history
Explosion blunt AP ratio, damage and AP falloff tweaks
  • Loading branch information
N7Huntsman authored Jun 26, 2024
2 parents b8587de + 67c4d65 commit 92d035e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Defs/Ammo/Shell/81mmMortar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<!-- Vanilla values -->
<li Class="CompProperties_Explosive">
<explosiveRadius>14.9</explosiveRadius>
<damageAmountBase>300</damageAmountBase>
<explosiveDamageType>BombSuper</explosiveDamageType>
<startWickHitPointsPercent>0.7</startWickHitPointsPercent>
<chanceToStartFire>0.22</chanceToStartFire>
Expand Down Expand Up @@ -393,6 +394,7 @@
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>BombSuper</damageDef>
<damageAmountBase>800</damageAmountBase>
<explosionRadius>50</explosionRadius>
<explosionChanceToStartFire>0.22</explosionChanceToStartFire>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
Expand Down
4 changes: 2 additions & 2 deletions Patches/Core/DamageDefs/Damages_LocalInjury.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/DamageDef[defName="Bomb"]/defaultArmorPenetration</xpath>
<value>
<defaultArmorPenetration>52</defaultArmorPenetration>
<defaultArmorPenetration>62</defaultArmorPenetration>
</value>
</Operation>

Expand All @@ -93,7 +93,7 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/DamageDef[defName="BombSuper"]/defaultArmorPenetration</xpath>
<value>
<defaultArmorPenetration>264</defaultArmorPenetration>
<defaultArmorPenetration>320</defaultArmorPenetration>
</value>
</Operation>

Expand Down
2 changes: 1 addition & 1 deletion Source/CombatExtended/CombatExtended/AmmoUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static class AmmoUtility
/// <summary>
/// Multiplier used to scale the armor penetration of a given projectile's explosion
/// </summary>
private const float ExplosiveArmorPenetrationMultiplier = 0.33f;
private const float ExplosiveArmorPenetrationMultiplier = 0.4f;

/// <summary>
/// Generates a readout text for a projectile with the damage amount, type, secondary explosion and other CE stats for
Expand Down
2 changes: 1 addition & 1 deletion Source/CombatExtended/CombatExtended/SecondaryDamage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace CombatExtended
{
public class SecondaryDamage
{
private const float SecExplosionPenPerDmg = 2.5f;
private const float SecExplosionPenPerDmg = 0.8f; // 2x ExplosiveArmorPenetrationMultiplier

public DamageDef def;
public int amount;
Expand Down

0 comments on commit 92d035e

Please sign in to comment.