- Fixed a bug that was causing body parts to render over clothes
This commit is contained in:
AbstractConcept 2023-02-07 23:53:27 -06:00
parent 001121649b
commit cce0053fd6
10 changed files with 6 additions and 26 deletions

View file

@ -1,3 +1,6 @@
Change log v 2.0.4
- Fixed a bug that was causing body parts to render over clothes
Change log v 2.0.3 Change log v 2.0.3
- Fixed a bug that was causing alien addons to not render when pawns were wearing apparel - Fixed a bug that was causing alien addons to not render when pawns were wearing apparel

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest> <Manifest>
<version>2.0.3</version> <version>2.0.4</version>
<downloadUri>https://gitgud.io/AbstractConcept/rimworld-animations-patch</downloadUri> <downloadUri>https://gitgud.io/AbstractConcept/rimworld-animations-patch</downloadUri>
</Manifest> </Manifest>

View file

@ -18,14 +18,6 @@
</match> </match>
</li> </li>
<!-- Hiding these bodyparts is now handled by code -->
<li Class="PatchOperationConditional">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="Anus"]/hiddenUnderApparelFor</xpath>
<match Class="PatchOperationRemove">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="Anus"]/hiddenUnderApparelFor</xpath>
</match>
</li>
</operations> </operations>
</match> </match>
</Operation> </Operation>

View file

@ -7,21 +7,6 @@
<match Class="PatchOperationSequence"> <match Class="PatchOperationSequence">
<operations> <operations>
<!-- Hiding these bodyparts is now handled by code -->
<li Class="PatchOperationConditional">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="Genitals"]/hiddenUnderApparelFor</xpath>
<match Class="PatchOperationRemove">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="Genitals"]/hiddenUnderApparelFor</xpath>
</match>
</li>
<li Class="PatchOperationConditional">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="Chest"]/hiddenUnderApparelFor</xpath>
<match Class="PatchOperationRemove">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="Chest"]/hiddenUnderApparelFor</xpath>
</match>
</li>
<!-- Changes the layering of belly graphics so they are rendered first --> <!-- Changes the layering of belly graphics so they are rendered first -->
<li Class="PatchOperationConditional"> <li Class="PatchOperationConditional">
<xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/RJW_pregnancy]/offsets/south/layerOffset</xpath> <xpath>Defs/ThingDef/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/RJW_pregnancy]/offsets/south/layerOffset</xpath>

View file

@ -183,7 +183,7 @@ namespace Rimworld_Animations_Patch
return 1f; return 1f;
} }
private static Dictionary<string, Vector3> raceSpecifocChildMultipliers = new Dictionary<string, Vector3>() private static Dictionary<string, Vector3> raceSpecificChildMultipliers = new Dictionary<string, Vector3>()
{ {
{ "Alien_Orassan", new Vector3(1.4f, 1.4f, 1.4f) }, { "Alien_Orassan", new Vector3(1.4f, 1.4f, 1.4f) },
{ "Alien_Cutebold", new Vector3(1.2f, 1f, 1f) }, { "Alien_Cutebold", new Vector3(1.2f, 1f, 1f) },
@ -194,7 +194,7 @@ namespace Rimworld_Animations_Patch
{ {
Vector2 multiplierVector = new Vector2(); Vector2 multiplierVector = new Vector2();
if (GetBodySize(pawn) == 1f || raceSpecifocChildMultipliers.TryGetValue(pawn.def.defName, out Vector3 raceVector) == false) if (GetBodySize(pawn) == 1f || raceSpecificChildMultipliers.TryGetValue(pawn.def.defName, out Vector3 raceVector) == false)
{ raceVector = new Vector3(1f, 1f, 1f); } { raceVector = new Vector3(1f, 1f, 1f); }
if (bodypart?.defName == "tail" || bodypart?.defName == "Tail") if (bodypart?.defName == "tail" || bodypart?.defName == "Tail")