mirror of
https://gitgud.io/AbstractConcept/privacy-please.git
synced 2024-08-15 00:03:18 +00:00
Updates and bug fixes
This commit is contained in:
parent
299934584e
commit
2256f28cf8
15 changed files with 74 additions and 64 deletions
|
@ -62,12 +62,20 @@ namespace Privacy_Please
|
|||
public static class HarmonyPatch_JobDriver_Sex_SexTick
|
||||
{
|
||||
// When pawns are having sex, intermittently check their surrounds for privacy
|
||||
public static void Postfix(ref JobDriver_Sex __instance, Pawn pawn)
|
||||
public static void Postfix(ref JobDriver_Sex __instance)
|
||||
{
|
||||
Pawn pawn = __instance.pawn;
|
||||
Pawn partner = pawn.GetSexPartner();
|
||||
|
||||
if (pawn.IsHashIntervalTick(90))
|
||||
{
|
||||
if (pawn.IsMasturbating() || pawn.IsHavingSex())
|
||||
{ PrivacyUtility.PrivacyCheckForPawn(pawn, 8f); }
|
||||
{
|
||||
PrivacyUtility.PrivacyCheckForPawn(pawn, 8f);
|
||||
|
||||
if (partner != null)
|
||||
{ PrivacyUtility.PrivacyCheckForPawn(partner, 8f); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue