mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2026-06-18 19:35:58 +00:00
22 lines
585 B
C#
22 lines
585 B
C#
using HarmonyLib;
|
|
using rjw;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Rimworld_Animations
|
|
{
|
|
[HarmonyPatch(typeof(JobDriver_Masturbate), "SetupDurationTicks")]
|
|
public class HarmonyPatch_JobDriver_Masturbate
|
|
{
|
|
public static void Postfix(JobDriver_Masturbate __instance)
|
|
{
|
|
//prevent early stoppage of masturbate jobdriver during animation
|
|
__instance.duration = 10000000;
|
|
__instance.ticks_left = __instance.duration;
|
|
|
|
}
|
|
}
|
|
}
|