2024-04-16 22:10:46 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using rjw;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2024-04-23 20:53:13 +00:00
|
|
|
|
using UnityEngine;
|
2024-04-16 22:10:46 +00:00
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace Rimworld_Animations
|
|
|
|
|
{
|
2024-04-23 20:53:13 +00:00
|
|
|
|
|
|
|
|
|
[HarmonyPatch(typeof(JobDriver_Sex), "setup_ticks")]
|
2024-04-16 22:10:46 +00:00
|
|
|
|
public class HarmonyPatch_JobDriver_Sex
|
|
|
|
|
{
|
2024-04-23 20:53:13 +00:00
|
|
|
|
public static void Postfix(JobDriver_Sex __instance)
|
2024-04-16 22:10:46 +00:00
|
|
|
|
{
|
2024-04-23 20:53:13 +00:00
|
|
|
|
if (!RJWAnimationSettings.hearts)
|
|
|
|
|
{
|
|
|
|
|
__instance.ticks_between_hearts = int.MaxValue;
|
|
|
|
|
}
|
2024-04-16 22:10:46 +00:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|