20 lines
401 B
C#
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;
|
|
}
|
|
}
|
|
}
|