mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
26 lines
543 B
C#
26 lines
543 B
C#
|
using HarmonyLib;
|
|||
|
using rjw;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Verse;
|
|||
|
|
|||
|
namespace Rimworld_Animations
|
|||
|
{
|
|||
|
[HarmonyPatch(typeof(JobDriver_Sex), "PlaySexSound")]
|
|||
|
class HarmonyPatch_PlaySexSounds
|
|||
|
{
|
|||
|
public static bool Prefix(JobDriver_Sex __instance)
|
|||
|
{
|
|||
|
if (__instance.pawn.TryGetComp<CompBodyAnimator>().isAnimating)
|
|||
|
{
|
|||
|
return false;
|
|||
|
}
|
|||
|
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|