rimnude-unofficial/Extra Patches/1.3 Offset Patch/Patches/Offset Patch Aliens.xml

167 lines
8.5 KiB
XML
Raw Normal View History

2022-01-15 07:19:54 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
2022-06-07 08:16:53 +00:00
<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>
2022-01-15 07:19:54 +00:00
<match Class="PatchOperationSequence"><!--found at least one race that is using rimnude addons-->
<operations>
2022-06-07 08:16:53 +00:00
<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/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>
2022-01-15 07:19:54 +00:00
<match Class="PatchOperationSequence"><!--at least one does-->
<operations>
2022-06-07 08:16:53 +00:00
<li Class="PatchOperationAdd"><!--south-->
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/CatVagina="Genitals/Pubes/Pubes4"]/offsets/south[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
2022-06-07 08:16:53 +00:00
<layerOffset>-0.289</layerOffset>
</value>
2022-01-15 07:19:54 +00:00
</li>
2022-06-07 08:16:53 +00:00
<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>
<!--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>
2022-01-15 07:19:54 +00:00
<li Class="PatchOperationAdd"><!--south-->
2022-06-07 08:16:53 +00:00
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]/offsets/south[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
2022-06-07 08:16:53 +00:00
<layerOffset>-0.289</layerOffset>
2022-01-15 07:19:54 +00:00
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
2022-06-07 08:16:53 +00:00
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]/offsets/north[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
<layerOffset>-0.291</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
2022-06-07 08:16:53 +00:00
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Breasts]/offsets/east[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
2022-06-07 08:16:53 +00:00
<layerOffset>-0.289</layerOffset>
2022-01-15 07:19:54 +00:00
</value>
</li>
2022-06-07 08:16:53 +00:00
</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>
2022-01-15 07:19:54 +00:00
<li Class="PatchOperationAdd"><!--south-->
2022-06-07 08:16:53 +00:00
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]/offsets/south[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
<li Class="PatchOperationAdd"><!--north-->
2022-06-07 08:16:53 +00:00
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]/offsets/north[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
2022-06-07 08:16:53 +00:00
<layerOffset>-0.291</layerOffset>
2022-01-15 07:19:54 +00:00
</value>
</li>
<li Class="PatchOperationAdd"><!--east-->
2022-06-07 08:16:53 +00:00
<xpath>Defs/AlienRace.ThingDef_AlienRace/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[path="Genitals/Testicles/FeaturelessTesticles"]/offsets/east[not(layerOffset)]</xpath>
2022-01-15 07:19:54 +00:00
<value>
<layerOffset>-0.289</layerOffset>
</value>
</li>
2022-06-07 08:16:53 +00:00
</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>
2022-01-15 07:19:54 +00:00
</li>
2022-06-07 08:16:53 +00:00
<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>
2022-01-15 07:19:54 +00:00
</li>
2022-06-07 08:16:53 +00:00
<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>
2022-01-15 07:19:54 +00:00
</li>
</operations>
</match>
</li>
</operations>
</match>
</Operation>
</Patch>