24 lines
666 B
C#
24 lines
666 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_SexBaseRecieverRaped), "MakeNewToils")]
|
|
public class HarmonyPatch_JobDriver_SexBaseReceiverRaped
|
|
{
|
|
public static void Postfix(JobDriver_SexBaseRecieverRaped __instance, ref IEnumerable<Toil> __result)
|
|
{
|
|
//added for sudden end of jobdriver
|
|
__result.Last().AddFinishAction(delegate {
|
|
AnimationUtility.StopGroupAnimation(__instance.pawn);
|
|
});
|
|
}
|
|
}
|
|
}
|