24 lines
645 B
C#
24 lines
645 B
C#
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_SexBaseRecieverLoved), "MakeSexToil")]
|
|
public class HarmonyPatch_JobDriver_SexBaseReceiverLoved
|
|
{
|
|
public static void Postfix(JobDriver_SexBaseRecieverLoved __instance, ref Toil __result)
|
|
{
|
|
//added for sudden end of jobdriver
|
|
__result.AddFinishAction(delegate {
|
|
AnimationUtility.StopGroupAnimation(__instance.pawn);
|
|
});
|
|
}
|
|
}
|
|
}
|