- 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

@ -183,7 +183,7 @@ namespace Rimworld_Animations_Patch
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_Cutebold", new Vector3(1.2f, 1f, 1f) },
@ -194,7 +194,7 @@ namespace Rimworld_Animations_Patch
{
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); }
if (bodypart?.defName == "tail" || bodypart?.defName == "Tail")