using HarmonyLib; using rjw; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse.AI; namespace Rimworld_Animations { [HarmonyPatch(typeof(JobDriver_SexBaseRecieverRaped), "MakeNewToils")] public class HarmonyPatch_JobDriver_SexBaseReceiverRaped { public static void Postfix(JobDriver_SexBaseRecieverRaped __instance, ref IEnumerable __result) { //added for sudden end of jobdriver __result.Last().AddFinishAction(delegate { AnimationUtility.StopGroupAnimation(__instance.pawn); }); } } }