rimworld-animations/1.4/Source/Patches/RJWPatches/HarmonyPatch_PlaySexSounds.cs

20 lines
401 B
C#

using HarmonyLib;
using rjw;
namespace Rimworld_Animations
{
[HarmonyPatch(typeof(JobDriver_Sex), "PlaySexSound")]
class HarmonyPatch_PlaySexSounds
{
public static bool Prefix(JobDriver_Sex __instance)
{
if (CompBodyAnimator.IsAnimating(__instance.pawn))
{
return false;
}
return true;
}
}
}