mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2026-06-18 19:35:58 +00:00
19 lines
401 B
C#
19 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;
|
|
}
|
|
}
|
|
}
|