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