rimworld-animations-patch/Patches/ApparelCompProperties.xml

45 lines
1.3 KiB
XML
Raw Permalink Normal View History

2022-09-10 01:22:08 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[thingClass="Apparel"]/comps</xpath>
<match Class="PatchOperationAdd">
<xpath>Defs/ThingDef[thingClass="Apparel"]/comps</xpath>
<value>
<li Class="Rimworld_Animations_Patch.CompProperties_ApparelVisibility">
<compClass>Rimworld_Animations_Patch.CompApparelVisibility</compClass>
</li>
</value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass="Apparel"]</xpath>
<value>
<comps>
<li Class="Rimworld_Animations_Patch.CompProperties_ApparelVisibility">
<compClass>Rimworld_Animations_Patch.CompApparelVisibility</compClass>
</li>
</comps>
</value>
</nomatch>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass="Apparel"]/apparel/bodyPartGroups[li="Torso"]</xpath>
<value>
<li>ChestBPG</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass="Apparel"]/apparel/bodyPartGroups[li="Legs"]</xpath>
<value>
<li>GenitalsBPG</li>
</value>
</li>
</operations>
</Operation>
</Patch>