Skip to content

Commit

Permalink
Merge branch 'MachinesOFWar' of https://github.com/HeraldOfTzeentch/C…
Browse files Browse the repository at this point in the history
…ombatExtended into MachinesOFWar
  • Loading branch information
HeraldOfTzeentch committed Sep 20, 2023
2 parents 580a2eb + 816a984 commit 5000ae8
Show file tree
Hide file tree
Showing 12 changed files with 297 additions and 295 deletions.
24 changes: 12 additions & 12 deletions Patches/Machines of War/BodyDefs/CicadaBody.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Machines of War</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ========== Add groups entry if it doesn't exist already ========== -->
<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -22,7 +24,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalNeck"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -32,7 +34,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -42,7 +44,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -52,7 +54,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -62,19 +64,17 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>



<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalLeg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalLeg"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -84,7 +84,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_MechanicalCicada"]/corePart/parts/li[def="MechanicalLeg"]/parts/li[def="MechanicalFoot"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand Down Expand Up @@ -148,6 +148,6 @@

</operations>
</match>
</Operation>
</Operation>

</Patch>
</Patch>
34 changes: 17 additions & 17 deletions Patches/Machines of War/BodyDefs/DemolisherBody.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Machines of War</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ========== Add groups entry if it doesn't exist already ========== -->
<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -22,7 +24,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalNeck"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -32,7 +34,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -42,7 +44,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -52,7 +54,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -62,7 +64,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -72,7 +74,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalShoulder"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -82,7 +84,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -92,7 +94,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -102,7 +104,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/parts/li[def="MechanicalFinger"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -112,7 +114,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalLeg"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -122,7 +124,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalLeg"]/parts/li[def="MechanicalFoot"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand Down Expand Up @@ -199,14 +201,12 @@
</li>

<li Class="PatchOperationAdd">
<xpath> Defs/BodyDef[defName="MOW_Demolisher"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/groups</xpath>
<xpath> Defs/BodyDef[defName="MOW_Demolisher"]/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="MOW_Demolisher"]/corePart/parts/li[def="MechanicalShoulder"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/parts/li[def="MechanicalFinger"]/groups</xpath>
<value>
Expand All @@ -216,6 +216,6 @@

</operations>
</match>
</Operation>
</Operation>

</Patch>
</Patch>
35 changes: 17 additions & 18 deletions Patches/Machines of War/BodyDefs/EnforcerBody.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Machines of War</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ========== Add groups entry if it doesn't exist already ========== -->
<li Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -22,7 +24,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalNeck"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -32,7 +34,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -42,7 +44,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -52,7 +54,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -62,7 +64,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -72,7 +74,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MOW_MechanicalShoulderPauldron"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -82,7 +84,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MOW_MechanicalShoulderPauldron"]/parts/li[def="MechanicalArm"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -92,7 +94,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MOW_MechanicalShoulderPauldron"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -102,7 +104,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MOW_MechanicalShoulderPauldron"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/parts/li[def="MechanicalFinger"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -112,7 +114,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalLeg"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand All @@ -122,7 +124,7 @@
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MechanicalLeg"]/parts/li[def="MechanicalFoot"]</xpath>
<value>
<groups/>
<groups />
</value>
</nomatch>
</li>
Expand Down Expand Up @@ -199,14 +201,12 @@
</li>

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



<li Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="MOW_Enforcer"]/corePart/parts/li[def="MOW_MechanicalShoulderPauldron"]/parts/li[def="MechanicalArm"]/parts/li[def="MechanicalHand"]/parts/li[def="MechanicalFinger"]/groups</xpath>
<value>
Expand All @@ -216,7 +216,6 @@

</operations>
</match>
</Operation>

</Operation>

</Patch>
</Patch>
Loading

0 comments on commit 5000ae8

Please sign in to comment.