-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3253 from SaltyKarl/EnchantedSword
Enchanted Sword patch
- Loading branch information
Showing
5 changed files
with
258 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
ModPatches/Enchanted Sword/Patches/Enchanted Sword/ES_AbilityDefs_Patch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Patch> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/AbilityDef[defName="TripleStrike"]/comps/li[@Class="EnchantedSword.CompProperties_AbilityMultiStrike"]/armourPentration</xpath> | ||
<value> | ||
<armourPentration>48</armourPentration> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/AbilityDef[defName="TorrentBlade"]/comps/li[@Class="EnchantedSword.CompProperties_AbilityTorrentBlade"]/armourPentration</xpath> | ||
<value> | ||
<armourPentration>24</armourPentration> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/AbilityDef[defName="Decapitation"]/comps/li[@Class="EnchantedSword.CompProperties_AbilityDestroyBodypart"]/armourPentration</xpath> | ||
<value> | ||
<armourPentration>24</armourPentration> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/AbilityDef[defName="HeavensWrath"]/verbProperties/range</xpath> | ||
<value> | ||
<range>36</range> | ||
</value> | ||
</Operation> | ||
|
||
</Patch> |
28 changes: 28 additions & 0 deletions
28
ModPatches/Enchanted Sword/Patches/Enchanted Sword/ES_DamageDefs_Patch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Patch> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/DamageDef[defName="Slash_EnchantedSword"]/defaultArmorPenetration</xpath> | ||
<value> | ||
<defaultArmorPenetration>24</defaultArmorPenetration> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAddModExtension"> | ||
<xpath>Defs/DamageDef[defName="SwordBolt"]</xpath> | ||
<value> | ||
<li Class="CombatExtended.DamageDefExtensionCE"> | ||
<harmOnlyOutsideLayers>true</harmOnlyOutsideLayers> | ||
<isAmbientDamage>true</isAmbientDamage> | ||
</li> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/DamageDef[defName="SwordBolt"]/defaultArmorPenetration</xpath> | ||
<value> | ||
<defaultArmorPenetration>1</defaultArmorPenetration> | ||
</value> | ||
</Operation> | ||
|
||
</Patch> |
196 changes: 196 additions & 0 deletions
196
ModPatches/Enchanted Sword/Patches/Enchanted Sword/ES_WeaponDefs_Patch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Patch> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/ThingDef[defName="EnchantedRing"]/apparel/layers</xpath> | ||
<value> | ||
<layers> | ||
<li>OnSkin</li> | ||
</layers> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword"]/tools</xpath> | ||
<value> | ||
<tools> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>edge</label> | ||
<capacities> | ||
<li>Cut</li> | ||
</capacities> | ||
<power>25</power> | ||
<armorPenetrationBlunt>24</armorPenetrationBlunt> | ||
<armorPenetrationSharp>60</armorPenetrationSharp> | ||
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon> | ||
<cooldownTime>1.0</cooldownTime> | ||
<soundMeleeHit>Impact_EnchantedSword</soundMeleeHit> | ||
<soundMeleeMiss>Miss_EnchantedSword</soundMeleeMiss> | ||
</li> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>blade tip</label> | ||
<capacities> | ||
<li>Stab</li> | ||
</capacities> | ||
<power>30</power> | ||
<cooldownTime>0.75</cooldownTime> | ||
<armorPenetrationBlunt>32</armorPenetrationBlunt> | ||
<armorPenetrationSharp>72</armorPenetrationSharp> | ||
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup> | ||
<soundMeleeHit>Impact_EnchantedSword</soundMeleeHit> | ||
<soundMeleeMiss>Miss_EnchantedSword</soundMeleeMiss> | ||
</li> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>handle</label> | ||
<capacities> | ||
<li>Poke</li> | ||
</capacities> | ||
<power>12</power> | ||
<chanceFactor>0.33</chanceFactor> | ||
<cooldownTime>1.5</cooldownTime> | ||
<armorPenetrationBlunt>2.4</armorPenetrationBlunt> | ||
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup> | ||
</li> | ||
</tools> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAdd"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword"]/statBases</xpath> | ||
<value> | ||
<Bulk>4</Bulk> | ||
<MeleeCounterParryBonus>1.8</MeleeCounterParryBonus> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAdd"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword"]/equippedStatOffsets</xpath> | ||
<value> | ||
<MeleeCritChance>1.0</MeleeCritChance> | ||
<MeleeParryChance>1.5</MeleeParryChance> | ||
<MeleeDodgeChance>1.0</MeleeDodgeChance> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword_Awakened"]/tools</xpath> | ||
<value> | ||
<tools> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>edge</label> | ||
<capacities> | ||
<li>Cut</li> | ||
</capacities> | ||
<power>25</power> | ||
<armorPenetrationBlunt>24</armorPenetrationBlunt> | ||
<armorPenetrationSharp>60</armorPenetrationSharp> | ||
<cooldownTime>1.0</cooldownTime> | ||
<soundMeleeHit>Impact_EnchantedSword</soundMeleeHit> | ||
<soundMeleeMiss>Miss_EnchantedSword</soundMeleeMiss> | ||
<extraMeleeDamages> | ||
<li> | ||
<def>Flame</def> | ||
<amount>15</amount> | ||
<chance>0.5</chance> | ||
</li> | ||
</extraMeleeDamages> | ||
</li> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>blade tip</label> | ||
<capacities> | ||
<li>Stab</li> | ||
</capacities> | ||
<power>30</power> | ||
<cooldownTime>0.75</cooldownTime> | ||
<armorPenetrationBlunt>32</armorPenetrationBlunt> | ||
<armorPenetrationSharp>72</armorPenetrationSharp> | ||
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup> | ||
<soundMeleeHit>Impact_EnchantedSword</soundMeleeHit> | ||
<soundMeleeMiss>Miss_EnchantedSword</soundMeleeMiss> | ||
<extraMeleeDamages> | ||
<li> | ||
<def>Flame</def> | ||
<amount>15</amount> | ||
<chance>0.5</chance> | ||
</li> | ||
</extraMeleeDamages> | ||
</li> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>handle</label> | ||
<capacities> | ||
<li>Poke</li> | ||
</capacities> | ||
<power>12</power> | ||
<chanceFactor>0.33</chanceFactor> | ||
<cooldownTime>1.5</cooldownTime> | ||
<armorPenetrationBlunt>2.4</armorPenetrationBlunt> | ||
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup> | ||
</li> | ||
</tools> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAdd"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword_Awakened"]/statBases</xpath> | ||
<value> | ||
<Bulk>4</Bulk> | ||
<MeleeCounterParryBonus>1.8</MeleeCounterParryBonus> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAdd"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword_Awakened"]/equippedStatOffsets</xpath> | ||
<value> | ||
<MeleeCritChance>1.2</MeleeCritChance> | ||
<MeleeParryChance>2.2</MeleeParryChance> | ||
<MeleeDodgeChance>1.2</MeleeDodgeChance> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword_Ranged_Awakened"]/tools</xpath> | ||
<value> | ||
<tools> | ||
<li Class="CombatExtended.ToolCE"> | ||
<capacities> | ||
<li>Blunt</li> | ||
</capacities> | ||
<power>12</power> | ||
<cooldownTime>1.6</cooldownTime> | ||
<armorPenetrationBlunt>2.65</armorPenetrationBlunt> | ||
</li> | ||
</tools> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAdd"> | ||
<xpath>Defs/ThingDef[defName="Melee_EnchantedSword_Ranged_Awakened"]/statBases</xpath> | ||
<value> | ||
<Bulk>5</Bulk> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationAdd"> | ||
<xpath>/Defs/ThingDef[defName = "Melee_EnchantedSword_Ranged_Awakened"]</xpath> | ||
<value> | ||
<weaponTags> | ||
<li>Patched</li> | ||
</weaponTags> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>/Defs/ThingDef[defName = "Melee_EnchantedSword_Ranged_Awakened"]/verbs/li[@Class="Pandora.Verb_Properties_ClusterShot"]/range</xpath> | ||
<value> | ||
<range>36</range> | ||
</value> | ||
</Operation> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>/Defs/ThingDef[defName = "Bullet_MagicArrow"]/projectile/armorPenetrationBase</xpath> | ||
<value> | ||
<armorPenetrationBase>35</armorPenetrationBase> | ||
</value> | ||
</Operation> | ||
|
||
</Patch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters