Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phynilla Expanded Mech Scyther patch #2771

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading