Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #901 from zozilin/master
Browse files Browse the repository at this point in the history
Patches for Simply More Melee, Misc Robots, Expanded Patchleather
  • Loading branch information
LockdownX7 authored Nov 15, 2019
2 parents f999437 + a81b928 commit a40a8da
Show file tree
Hide file tree
Showing 3 changed files with 1,696 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<!-- ==== Check for the mod. ==== -->
<li Class="CombatExtended.PatchOperationFindMod">
<modName>Expanded Patchleather v0.14</modName>
</li>

<!--========== Refined Patchleather ============-->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Refined_PatchLeather"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.03</StuffPower_Armor_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Refined_PatchLeather"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.04</StuffPower_Armor_Blunt>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Refined_PatchLeather"]/statBases/StuffPower_Armor_Heat</xpath>
<value>
<StuffPower_Armor_Heat>0.01</StuffPower_Armor_Heat>
</value>
</li>

<!--========== Padded Patchleather ============-->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Padded_PatchLeather"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.02</StuffPower_Armor_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Padded_PatchLeather"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.1</StuffPower_Armor_Blunt>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Padded_PatchLeather"]/statBases/StuffPower_Armor_Heat</xpath>
<value>
<StuffPower_Armor_Heat>0.001</StuffPower_Armor_Heat>
</value>
</li>

<!--========== Studded Patchleather ============-->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Studded_PatchLeather"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.1</StuffPower_Armor_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Studded_PatchLeather"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.2</StuffPower_Armor_Blunt>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Studded_PatchLeather"]/statBases/StuffPower_Armor_Heat</xpath>
<value>
<StuffPower_Armor_Heat>0.005</StuffPower_Armor_Heat>
</value>
</li>

</operations>
</Operation>
</Patch>
73 changes: 73 additions & 0 deletions Patches/MiscRobots/AIRobot_RacesCE.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Misc. Robots</li>
</mods>
<match Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAddModExtension">
<xpath>
Defs/ThingDef[

@Name="Base_X2_AIRobot"
]
</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>QuadrupedLow</bodyShape>
</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[@Name="Base_X2_AIRobot"]/statBases</xpath>
<value>
<MeleeDodgeChance>0.24</MeleeDodgeChance>
<MeleeCritChance>0.02</MeleeCritChance>
<MeleeParryChance>0.01</MeleeParryChance>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[@Name="Base_X2_AIRobot"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>left manipulator</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>1</power>
<cooldownTime>1.6</cooldownTime>
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>right manipulator</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>1</power>
<cooldownTime>1.6</cooldownTime>
<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>1</power>
<cooldownTime>2.5</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
<chanceFactor>0.2</chanceFactor>
</li>
</tools>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>
Loading

0 comments on commit a40a8da

Please sign in to comment.