mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Update for RJW 4.6.7.2:
accounts for orgasm ticker changes orgasm ticker count accounts for animation length vs standard jobdriver length difference Accounts for neverending loop settings in RJW todo: remove unnecessary harmonypatch in sextick next RJW update
This commit is contained in:
parent
e5ce0db627
commit
6550627272
8 changed files with 161 additions and 51 deletions
25
Source/Patches/rjwPatches/HarmonyPatch_PlaySexSounds.cs
Normal file
25
Source/Patches/rjwPatches/HarmonyPatch_PlaySexSounds.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using HarmonyLib;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace Rimworld_Animations
|
||||
{
|
||||
[HarmonyPatch(typeof(JobDriver_Sex), "PlaySexSound")]
|
||||
class HarmonyPatch_PlaySexSounds
|
||||
{
|
||||
public static bool Prefix(JobDriver_Sex __instance)
|
||||
{
|
||||
if (__instance.pawn.TryGetComp<CompBodyAnimator>().isAnimating)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue