Skip to content

Commit

Permalink
New Taser damage and buff
Browse files Browse the repository at this point in the history
New Taser damage and add new damage to stick and buff stun chance
  • Loading branch information
SaltyKarl committed Aug 12, 2024
1 parent 43f2907 commit 4656707
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
17 changes: 17 additions & 0 deletions ModPatches/Pulse Weaponry/Defs/Pulse Weaponry/Damage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<DamageDef ParentName="Electrical">
<defName>PW_Taser</defName>
<label>taser</label>
<deathMessage>{0} has been tasered to death.</deathMessage>
<hediff>MuscleSpasms</hediff>
<hediffSkin>TaserStab</hediffSkin>
<hediffSolid>TaserStab</hediffSolid>
<defaultArmorPenetration>0.45</defaultArmorPenetration>
<modExtensions>
<li Class="CombatExtended.DamageDefExtensionCE">
<harmOnlyOutsideLayers>true</harmOnlyOutsideLayers>
</li>
</modExtensions>
</DamageDef>
</Defs>
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
</capacities>
<power>5</power>
<extraMeleeDamages>
<li>
<def>PW_Taser</def>
<amount>10</amount>
</li>
<li>
<def>Stun</def>
<amount>32</amount>
<chance>0.20</chance>
<chance>0.40</chance>
</li>
</extraMeleeDamages>
<cooldownTime>1.68</cooldownTime>
Expand Down Expand Up @@ -70,11 +74,11 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="DV_MeleeWeapon_Stunstick"]</xpath>
<value>
<weaponTags/>
<weaponTags />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="DV_MeleeWeapon_Stunstick"]/weaponTags</xpath>
<value>
Expand Down

0 comments on commit 4656707

Please sign in to comment.