From 447c4d61b661c53c6c600c4783bc183088a0a176 Mon Sep 17 00:00:00 2001 From: Salacian Date: Tue, 21 Feb 2023 01:25:23 +0100 Subject: [PATCH 1/2] Added a field to the AnimationDef to prevent random selection --- 1.4/Source/Defs/AnimationDef.cs | 1 + 1.4/Source/Utilities/AnimationUtility.cs | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/1.4/Source/Defs/AnimationDef.cs b/1.4/Source/Defs/AnimationDef.cs index 395ff83..e2e8d28 100644 --- a/1.4/Source/Defs/AnimationDef.cs +++ b/1.4/Source/Defs/AnimationDef.cs @@ -13,6 +13,7 @@ namespace Rimworld_Animations { public List actors; public int animationTimeTicks = 0; //do not set manually public bool sounds = false; + public bool randomlySelectable = true; public List sexTypes = null; public List interactionDefTypes = null; public List tags = new List(); diff --git a/1.4/Source/Utilities/AnimationUtility.cs b/1.4/Source/Utilities/AnimationUtility.cs index 1ae89be..e03281d 100644 --- a/1.4/Source/Utilities/AnimationUtility.cs +++ b/1.4/Source/Utilities/AnimationUtility.cs @@ -33,7 +33,12 @@ namespace Rimworld_Animations { List localParticipants = new List(participants); IEnumerable options = DefDatabase.AllDefs.Where((AnimationDef x) => { - + if (!x.randomlySelectable) + { + if (AnimationSettings.debugMode) + Log.Message(x.defName.ToStringSafe() + " not selected -- isn't randomly selectable"); + return false; + } if (x.actors.Count != localParticipants.Count) { if (AnimationSettings.debugMode) From 3fb106e8f39667e3fccfbec29473383de5a769c9 Mon Sep 17 00:00:00 2001 From: Tory <22203-Tory@users.noreply.gitgud.io> Date: Fri, 29 Mar 2024 17:23:08 +0000 Subject: [PATCH 2/2] Updated Nyaron patch --- 1.4/Patches/RacePatches/Nyaron.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/1.4/Patches/RacePatches/Nyaron.xml b/1.4/Patches/RacePatches/Nyaron.xml index be62f20..c176521 100644 --- a/1.4/Patches/RacePatches/Nyaron.xml +++ b/1.4/Patches/RacePatches/Nyaron.xml @@ -15,6 +15,15 @@ +
  • + Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Nyaron"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPartLabel="tail"] + + /Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Nyaron"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPartLabel="tail"] + + false + + +