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

20 lines
401 B
C#
Raw Normal View History

2022-10-05 20:50:02 +00:00
using HarmonyLib;
using rjw;
namespace Rimworld_Animations
{
[HarmonyPatch(typeof(JobDriver_Sex), "PlaySexSound")]
class HarmonyPatch_PlaySexSounds
{
public static bool Prefix(JobDriver_Sex __instance)
{
2023-12-03 06:48:42 +00:00
if (CompBodyAnimator.IsAnimating(__instance.pawn))
2022-10-05 20:50:02 +00:00
{
return false;
}
return true;
}
}
}