Skip to content

Commit

Permalink
Fix Energy damageDef to go through armor
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Huntsman committed Nov 13, 2023
1 parent dc55ee6 commit 0c7e484
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Patches/Det's Energy Weapons/EnergyBoltAmmoSet.XML
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>10</damageAmountBase>
<armorPenetrationSharp>17.5</armorPenetrationSharp>
<armorPenetrationBlunt>4</armorPenetrationBlunt>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
</projectile>
</ThingDef>

Expand All @@ -62,7 +62,7 @@
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>18</damageAmountBase>
<armorPenetrationSharp>17.5</armorPenetrationSharp>
<armorPenetrationBlunt>4</armorPenetrationBlunt>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
</projectile>
</ThingDef>

Expand All @@ -71,7 +71,7 @@
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>20</damageAmountBase>
<armorPenetrationSharp>20.25</armorPenetrationSharp>
<armorPenetrationBlunt>4</armorPenetrationBlunt>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
</projectile>
</ThingDef>

Expand Down
7 changes: 7 additions & 0 deletions Patches/Det's Energy Weapons/Guns_Defs.XML
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<match Class="PatchOperationSequence">
<operations>

<!-- Damage -->
<li Class="PatchOperationAttributeSet">
<xpath>Defs/DamageDef[defName="EnergyDamage"]</xpath>
<attribute>ParentName</attribute>
<value>Flame</value>
</li>

<!-- Weapons -->
<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>Energy_Rifle</defName>
Expand Down

0 comments on commit 0c7e484

Please sign in to comment.