Skip to content

Commit

Permalink
Modded partial armor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamaelGray committed Oct 25, 2024
1 parent f8deca9 commit 0b2e9e7
Show file tree
Hide file tree
Showing 14 changed files with 643 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,52 @@
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left second leg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left second leg"]</xpath>
<value>
<groups />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right second leg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right second leg"]</xpath>
<value>
<groups />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left third leg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left third leg"]</xpath>
<value>
<groups />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right third leg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right third leg"]</xpath>
<value>
<groups />
</value>
</nomatch>
</Operation>

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

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@
</match>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_ScorpionLike"]//*[def="InsectLeg"]</xpath>
<value>
<groups />
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_ScorpionLike"]//*[def="InsectLeg" or def="AA_LeftPincer" or def="AA_RightPincer"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_ScorpionLike"]/corePart/parts/li[def="AA_InsectTail"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,60 @@
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AA_SlurrypedeBody"]/corePart/parts/li[def="MechanicalCentipedeBodySecondRing"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="AA_Slurrypede"]</xpath>
<value>
Expand Down Expand Up @@ -50,6 +51,41 @@
</value>
</Operation>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="AA_Slurrypede"]</xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
<li>
<useStatic>false</useStatic>
<ArmorRating_Sharp>0.25</ArmorRating_Sharp>
<parts>
<li>SightSensor</li>
<li>HearingSensor</li>
<li>SmellSensor</li>
</parts>
</li>
<li>
<useStatic>false</useStatic>
<ArmorRating_Blunt>0.25</ArmorRating_Blunt>
<parts>
<li>SightSensor</li>
<li>HearingSensor</li>
<li>SmellSensor</li>
</parts>
</li>
</stats>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AA_Slurrypede"]/statBases</xpath>
<value>
<PartialArmorBody>0</PartialArmorBody>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="AA_Slurrypede"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
Expand Down Expand Up @@ -81,4 +117,5 @@
</li>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,60 @@
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_ApocritonWinged"]/corePart/parts/li[def="MechanicalLeg"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,60 @@
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalNeck"]/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_AuraBody"]/corePart/parts/li[def="MechanicalShoulder"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,60 @@
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</match>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="AM_DaggerSnoutBody"]/corePart/parts/li[def="AM_TankPlateThird"]/groups</xpath>
<nomatch Class="PatchOperationAdd">
Expand Down
Loading

0 comments on commit 0b2e9e7

Please sign in to comment.