rimnude-unofficial/Extra Patches/1.3 Offset Patch/Patches/Offset Patch Aliens.xml
2022-09-26 13:58:53 -07:00

194 lines
No EOL
9.8 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationConditional"><!--looks for a race that is using a rimnude addon with outdated offset node-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/FeaturelessCrotch"][layerOffset]</xpath>
<match Class="PatchOperationSequence"><!--found at least one race that is using rimnude addons-->
<operations>
<li Class="PatchOperationReplace"><!--Race patch was not made for 1.3. Fixes all x,y offsets and removes outdated layerOffset-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[
hediffGraphics/Penis or
hediffGraphics/Vagina or
hediffGraphics/CatVagina="Genitals/Pubes/Pubes4" or
hediffGraphics/Breasts or
hediffGraphics/UdderBreasts or
hediffGraphics/RJW_pregnancy]/layerOffset</xpath>
<value>
<defaultOffset>Tail</defaultOffset>
</value>
</li>
<!--<li Class="PatchOperationRemove">removes outdated layeroffset node
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li/layerOffset</xpath>
</li>-->
<!--==================Z Layer offsets==================-->
<!--penises-->
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Penis][path="Genitals/FeaturelessCrotch"]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Penis][path="Genitals/FeaturelessCrotch"]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Penis][path="Genitals/FeaturelessCrotch"]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<!--vaginas-->
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Vagina]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Vagina]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Vagina]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<!--pubes-->
<li Class="PatchOperationConditional"><!--checks if the races uses pubes addon-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/CatVagina="Genitals/Pubes/Pubes4"]</xpath>
<match Class="PatchOperationSequence"><!--at least one does-->
<operations>
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/CatVagina="Genitals/Pubes/Pubes4"]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/CatVagina="Genitals/Pubes/Pubes4"]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/CatVagina="Genitals/Pubes/Pubes4"]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
</operations>
</match>
</li>
<!--Udders-->
<li Class="PatchOperationConditional"><!--checks if the races uses Udders addon-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/UdderBreasts]</xpath>
<match Class="PatchOperationSequence"><!--at least one does-->
<operations>
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/UdderBreasts]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/UdderBreasts]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/UdderBreasts]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
</operations>
</match>
</li>
<!--breasts-->
<li Class="PatchOperationConditional"><!--checks if the races uses breasts addon-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]</xpath>
<match Class="PatchOperationSequence"><!--at least one does-->
<operations>
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
</operations>
</match>
</li>
<!--balls-->
<li Class="PatchOperationConditional"><!--checks if the races uses balls addon-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]</xpath>
<match Class="PatchOperationSequence"><!--at least one does-->
<operations>
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
</operations>
</match>
</li>
<!--bellies-->
<li Class="PatchOperationConditional"><!--checks if the races uses bellies addon-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/RJW_pregnancy]</xpath>
<match Class="PatchOperationSequence"><!--at least one does-->
<operations>
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/RJW_pregnancy]/offsets/south[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/RJW_pregnancy]/offsets/north[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/RJW_pregnancy]/offsets/east[not(layerOffset)]</xpath>
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
</operations>
</match>
</li>
</operations>
</match>
</Operation>
</Patch>