diff --git a/1.2/Assemblies/Rimworld-Animations.dll b/1.2/Assemblies/Rimworld-Animations.dll index 8096e9d..55af9b2 100644 Binary files a/1.2/Assemblies/Rimworld-Animations.dll and b/1.2/Assemblies/Rimworld-Animations.dll differ diff --git a/Patches/CompatibilityPatch_FacialAnimation.xml b/Patches/CompatibilityPatch_FacialAnimation.xml index edc59b2..125d79f 100644 --- a/Patches/CompatibilityPatch_FacialAnimation.xml +++ b/Patches/CompatibilityPatch_FacialAnimation.xml @@ -1,3 +1,87 @@ + + + + +
  • [NL] Facial Animation - WIP
  • +
    + + Always + +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="Lovin" or defName="Lovin2"]/targetJobs + Always + +
  • RJW_Masturbate
  • +
  • GettinBred
  • +
  • Bestiality
  • +
  • BestialityForFemale
  • +
  • ViolateCorpse
  • +
  • Quickie
  • +
  • GettingQuickie
  • +
  • GettinRaped
  • +
  • JoinInBed
  • +
  • GettinLoved
  • +
  • GettinLicked
  • +
  • GettinSucked
  • +
  • WhoreIsServingVisitors
  • +
  • JoinInBedAnimation
  • +
  • GettinLovedAnimation
  • + + +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="WaitCombat" or defName="Wait_Combat_Rare"]/targetJobs + Always + +
  • RapeComfortPawn
  • +
  • RandomRape
  • +
  • RapeEnemy
  • + + +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="StandAndBeSociallyActive"]/targetJobs + Always + +
  • WhoreInvitingVisitors
  • + + +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="Wear" or defName="Wear2" or defName="Wear3"]/targetJobs + Always + +
  • CleanSelf
  • +
  • StruggleInBondageGear
  • + + +
  • + +
  • Rimworld-Animations
  • + + + Always + +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="Lovin" or defName="Lovin2"]/animationFrames/li[1]/headOffset + Always +
  • +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="Lovin"]/animationFrames/li[2]/headOffset + Always +
  • +
  • + /Defs/FacialAnimation.FaceAnimationDef[defName="Lovin"]/animationFrames/li[3]/headOffset + Always +
  • +
    +
    + +
    +
    +
    +
    + + \ No newline at end of file diff --git a/Source/AnimationUtility.cs b/Source/AnimationUtility.cs index 29940d3..38c2de3 100644 --- a/Source/AnimationUtility.cs +++ b/Source/AnimationUtility.cs @@ -242,7 +242,7 @@ namespace Rimworld_Animations { if (optionsWithSexTypeAndInitiator.Any()) { if (AnimationSettings.debugMode) Log.Message("Selecting animation for rjwSexType " + sexType.ToStringSafe() + " and initiators..."); - return optionsWithSexType.RandomElement(); + return optionsWithSexTypeAndInitiator.RandomElement(); } if (optionsWithSexType.Any()) { diff --git a/Source/Patches/HarmonyPatch_FacialAnimation.cs b/Source/Patches/HarmonyPatch_FacialAnimation.cs index 20c6e15..9c01ccb 100644 --- a/Source/Patches/HarmonyPatch_FacialAnimation.cs +++ b/Source/Patches/HarmonyPatch_FacialAnimation.cs @@ -20,13 +20,6 @@ namespace Rimworld_Animations { if (LoadedModManager.RunningModsListForReading.Any(x => x.Name == "[NL] Facial Animation - WIP")) { (new Harmony("rjw")).Patch(AccessTools.Method(AccessTools.TypeByName("FacialAnimation.DrawFaceGraphicsComp"), "DrawGraphics"), prefix: new HarmonyMethod(AccessTools.Method(typeof(Patch_FacialAnimation), "Prefix"))); - - - (new Harmony("rjw")).Patch(AccessTools.Method(AccessTools.TypeByName("FacialAnimation.FaceAnimationDef"), "IsSame", new Type[] { typeof(JobDef) }), - prefix: new HarmonyMethod(AccessTools.Method(typeof(Patch_FacialAnimation), "Prefix_IsSameA"))); - - (new Harmony("rjw")).Patch(AccessTools.Method(AccessTools.TypeByName("FacialAnimation.FaceAnimationDef"), "IsSame", new Type[] { typeof(string) }), - prefix: new HarmonyMethod(AccessTools.Method(typeof(Patch_FacialAnimation), "Prefix_IsSameB"))); } }))(); } @@ -48,7 +41,7 @@ namespace Rimworld_Animations { return true; } - + /* public static List rjwLovinDefNames = new List{ "Lovin", "Quickie", @@ -78,7 +71,6 @@ namespace Rimworld_Animations { "RapeEnemy" }; - public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) { if(___jobDef != null && ___jobDef == "Lovin" && job?.defName != null && rjwLovinDefNames.Contains(job?.defName)) { @@ -107,5 +99,6 @@ namespace Rimworld_Animations { return true; } + */ } -} +} \ No newline at end of file