﻿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;

        }
    }
}

1.5/Source/Patches/RJWPatches/JobDrivers/HarmonyPatch_JobDriver_Masturbate.cs