Skip to content

Commit

Permalink
Merge pull request #2771 from skycrossercat/Development
Browse files Browse the repository at this point in the history
phynilla Expanded Mech Scyther patch
  • Loading branch information
N7Huntsman authored Oct 11, 2023
2 parents 8457f99 + bd2bba7 commit d41d958
Show file tree
Hide file tree
Showing 3 changed files with 934 additions and 0 deletions.
193 changes: 193 additions & 0 deletions Patches/pphhyy Expanded Scythers/MechBodies_CE.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>phynilla Expanded Mechs Scyther</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ==================== Phynilla Scythers ==================== -->

<!-- ========== Add groups entry if it doesn't exist already ========== -->

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalNeck"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalNeck"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalLeg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalLeg"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalLeg"]/parts/li[def="MechanicalFoot"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalLeg"]/parts/li[def="MechanicalFoot"]</xpath>
<value>
<groups />
</value>
</nomatch>
</li>

<!-- ========== Add armor coverage ========== -->

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalNeck"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="Blade"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/parts/li[def="MechanicalFinger"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalLeg"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalLeg"]/parts/li[def="MechanicalFoot"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<!-- ========== Modify coverage ========== -->

<li Class="PatchOperationReplace">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/coverage</xpath>
<value>
<coverage>0.15</coverage>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="Blade"]/coverage</xpath>
<value>
<coverage>0.2</coverage>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/BodyDef[defName="ScytherExpanded"]/corePart/parts/li[def="FluidReprocessor"]/coverage</xpath>
<value>
<coverage>0.05</coverage>
</value>
</li>

</operations>
</match>
</Operation>
</Patch>
Loading

0 comments on commit d41d958

Please sign in to comment.