From 81fd210b9a48a0c59c8a4400da80193d685af055 Mon Sep 17 00:00:00 2001 From: Platinum Date: Thu, 4 Jun 2020 14:31:34 -0700 Subject: [PATCH] reverted to original method of finding animation --- Defs/AnimationDefs/Animations_Vanilla2.xml | 142 --------------------- Rimworld-Animations.csproj | 1 - Source/AnimationUtility.cs | 4 +- Source/Comps/CompBodyAnimator.cs | 4 +- 4 files changed, 4 insertions(+), 147 deletions(-) delete mode 100644 Defs/AnimationDefs/Animations_Vanilla2.xml diff --git a/Defs/AnimationDefs/Animations_Vanilla2.xml b/Defs/AnimationDefs/Animations_Vanilla2.xml deleted file mode 100644 index ae7dc9b..0000000 --- a/Defs/AnimationDefs/Animations_Vanilla2.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - diff --git a/Rimworld-Animations.csproj b/Rimworld-Animations.csproj index f14d4bf..a63d0aa 100644 --- a/Rimworld-Animations.csproj +++ b/Rimworld-Animations.csproj @@ -114,7 +114,6 @@ - diff --git a/Source/AnimationUtility.cs b/Source/AnimationUtility.cs index 44edde4..fe8a68b 100644 --- a/Source/AnimationUtility.cs +++ b/Source/AnimationUtility.cs @@ -81,10 +81,10 @@ namespace Rimworld_Animations { //TESTING ANIMATIONS ONLY REMEMBER TO COMMENT OUT BEFORE PUSH /* - if (x.defName != "Missionary") + if (x.defName != "Doggystyle") return false; - */ + if (x.actors[i].isFucking && !rjw.xxx.can_fuck(localParticipants[i])) { Log.Message(x.defName.ToStringSafe() + " not selected -- " + localParticipants[i].def.defName.ToStringSafe() + " " + localParticipants[i].Name.ToStringSafe() + " can't fuck"); diff --git a/Source/Comps/CompBodyAnimator.cs b/Source/Comps/CompBodyAnimator.cs index b9bfc0f..1683c66 100644 --- a/Source/Comps/CompBodyAnimator.cs +++ b/Source/Comps/CompBodyAnimator.cs @@ -104,6 +104,8 @@ namespace Rimworld_Animations { } public void StartAnimation(AnimationDef anim, int actor, bool mirror = false, bool shiver = false, bool fastAnimForQuickie = false) { + isAnimating = true; + AlienRaceOffset raceOffset = anim?.actors[actor]?.raceOffsets?.Find(x => x.defName == pawn.def.defName); if (raceOffset != null) { @@ -154,8 +156,6 @@ namespace Rimworld_Animations { //tick once for initialization tickAnim(); - isAnimating = true; - } public override void CompTick() {