2022-01-19 16:02:17 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<!-- It is not necessary to list every bodypart, only those you want to reveal because they are covered (E.g., crotchless pants that cover "Legs" would only need an entry for "Genitals/FeaturelessCrotch") More won't break anything, but you can save yourself some work. -->
<!-- The code works this way: -->
<!-- - The CanDraw() method of AlienRaces returns a false, my code then checks if CanDrawRevealing() might be true -->
<!-- - It makes a list of all clothes the character is wearing that would cover the bodyAddon, using the bodypartgroup (Eg. Torso, Legs) as defined in the bodyAddon Def entry <hiddenUnderApparelFor> -->
<!-- - If every clothing item on that list has a revealingPath entry matching both the <path> defined for the bodyAddon and our pawn's bodytpe, the bodyAddon gets drawn -->
<!-- - This should work for any type of bodyaddon, e.g. tails too. -->
2022-08-04 19:10:49 +00:00
2022-01-19 16:02:17 +00:00
<Patch >
<Operation Class= "PatchOperationFindMod" >
<mods >
2022-08-04 19:10:49 +00:00
<li > Yuran race</li>
2022-01-19 16:02:17 +00:00
</mods>
<match Class= "PatchOperationSequence" >
<success > Normal</success>
<operations >
<li Class= "PatchOperationAddModExtension" >
2022-08-04 19:10:49 +00:00
<!-- Yuran baeg - un -->
<xpath > Defs/ThingDef[defName="YR_AP_WhiteOutCloth"]</xpath>
2022-01-19 16:02:17 +00:00
<value >
<li Class= "RevealingApparel.ApparelRevealingExtension" >
<revealingBodyPartEntries >
<li >
<revealingPath > Genitals/FeaturelessCrotch</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Testicles/FeaturelessTesticles</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Pubes/Pubes</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
2022-08-04 19:10:49 +00:00
</li>
<li >
<revealingPath > Breasts/FeaturelessLeft</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessRight</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
</revealingBodyPartEntries>
</li>
</value>
</li>
<li Class= "PatchOperationAddModExtension" >
<!-- Yuran charm of the earth -->
<xpath > Defs/ThingDef[defName="YR_AP_Sharp"]</xpath>
<value >
<li Class= "RevealingApparel.ApparelRevealingExtension" >
<revealingBodyPartEntries >
<li >
<revealingPath > Genitals/FeaturelessCrotch</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Testicles/FeaturelessTesticles</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Pubes/Pubes</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessLeft</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessRight</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
2022-01-19 16:02:17 +00:00
</revealingBodyPartEntries>
</li>
</value>
</li>
<li Class= "PatchOperationAddModExtension" >
2022-08-04 19:10:49 +00:00
<!-- Yuran charm of the forest -->
<xpath > Defs/ThingDef[defName="YR_AP_Blunt"]</xpath>
2022-01-19 16:02:17 +00:00
<value >
<li Class= "RevealingApparel.ApparelRevealingExtension" >
<revealingBodyPartEntries >
<li >
<revealingPath > Genitals/FeaturelessCrotch</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Testicles/FeaturelessTesticles</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Pubes/Pubes</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessLeft</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessRight</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
</revealingBodyPartEntries>
</li>
</value>
</li>
<li Class= "PatchOperationAddModExtension" >
2022-08-04 19:10:49 +00:00
<!-- Yuran charm of water -->
<xpath > Defs/ThingDef[defName="YR_AP_Heat"]</xpath>
2022-01-19 16:02:17 +00:00
<value >
<li Class= "RevealingApparel.ApparelRevealingExtension" >
<revealingBodyPartEntries >
<li >
<revealingPath > Genitals/FeaturelessCrotch</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Testicles/FeaturelessTesticles</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Pubes/Pubes</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessLeft</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessRight</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
</revealingBodyPartEntries>
</li>
</value>
</li>
<li Class= "PatchOperationAddModExtension" >
2022-08-04 19:10:49 +00:00
<!-- Yuran heug - un -->
<xpath > Defs/ThingDef[defName="YR_AP_BlackSunOutCloth"]</xpath>
2022-01-19 16:02:17 +00:00
<value >
<li Class= "RevealingApparel.ApparelRevealingExtension" >
<revealingBodyPartEntries >
2022-08-04 19:10:49 +00:00
<li >
<revealingPath > Genitals/FeaturelessCrotch</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Testicles/FeaturelessTesticles</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Pubes/Pubes</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
2022-01-19 16:02:17 +00:00
<li >
<revealingPath > Breasts/FeaturelessLeft</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessRight</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
</revealingBodyPartEntries>
</li>
</value>
</li>
<li Class= "PatchOperationAddModExtension" >
2022-08-04 19:10:49 +00:00
<!-- Yuran unmu -->
<xpath > Defs/ThingDef[defName="YR_AP_WhiteSeeCape"]</xpath>
2022-01-19 16:02:17 +00:00
<value >
<li Class= "RevealingApparel.ApparelRevealingExtension" >
<revealingBodyPartEntries >
2022-08-04 19:10:49 +00:00
<li >
<revealingPath > Genitals/FeaturelessCrotch</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Testicles/FeaturelessTesticles</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
<li >
<revealingPath > Genitals/Pubes/Pubes</revealingPath>
<revealingBodyTypes >
<li > Thin</li>
</revealingBodyTypes>
</li>
2022-01-19 16:02:17 +00:00
<li >
<revealingPath > Breasts/FeaturelessLeft</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
<li >
<revealingPath > Breasts/FeaturelessRight</revealingPath>
<revealingBodyTypes >
2022-08-04 19:10:49 +00:00
<li > Thin</li>
2022-01-19 16:02:17 +00:00
</revealingBodyTypes>
</li>
</revealingBodyPartEntries>
</li>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>