Skip to content

Commit

Permalink
xpatch update
Browse files Browse the repository at this point in the history
  • Loading branch information
XeoNovaDan committed Jan 22, 2018
1 parent 4f5b8ed commit 6d70c93
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>Visible Pants</name>
<name>[XND] Visible Pants</name>
<author>XeoNovaDan</author>
<url>https://ludeon.com/forums/index.php?topic=32474</url>
<targetVersion>0.18.0</targetVersion>
Expand Down
50 changes: 27 additions & 23 deletions Patches/ThingDefs_Misc/Apparel_Various.xml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel/wornGraphicPath</xpath>
</li>
<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel/wornGraphicPath</xpath>
<value>
<wornGraphicPath>Pants/Pants</wornGraphicPath>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel/wornGraphicPath</xpath>
<success>Invert</success>
<li Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel/wornGraphicPath</xpath>
</li>
<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel/wornGraphicPath</xpath>
<value>
<wornGraphicPath>Pants/Pants</wornGraphicPath>
</value>
</li>
</operations>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel</xpath>
<value>
<wornGraphicPath>Pants/Pants</wornGraphicPath>
</value>
<li Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel/wornGraphicPath</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_Pants"]/apparel</xpath>
<value>
<wornGraphicPath>Pants/Pants</wornGraphicPath>
</value>
</li>
</operations>
</li>
</operations>
</Operation>
Expand Down

0 comments on commit 6d70c93

Please sign in to comment.