This commit is contained in:
AbstractConcept 2022-11-04 08:52:17 -05:00
parent 55402b9891
commit 03e634e56c
36 changed files with 866 additions and 491 deletions

View file

@ -31,7 +31,7 @@ namespace Privacy_Please
foreach (Thing thing in GenRadial.RadialDistinctThingsAround(pawn.Position, pawn.Map, radius, true))
{
Pawn other = thing as Pawn;
ThoughtDef thoughtDef = SexInteractionUtility.GetThoughtsAboutSexAct(other, __instance, out Precept precept);
ThoughtDef thoughtDef = null; // SexInteractionUtility.GetThoughtsAboutSexAct(other, __instance, out Precept precept);
// Find candidates to invite
if (other != null && thoughtDef?.hediff == null && SexInteractionUtility.CouldInvitePasserbyForSex(other, pawn.GetAllSexParticipants()))
@ -64,7 +64,7 @@ namespace Privacy_Please
{
if (pawn.IsHashIntervalTick(90))
{
if (pawn.IsMasturbating() && pawn.HasPrivacy(8f) == false)
if (pawn.IsMasturbating() && PrivacyUtility.PawnHasPrivacy(pawn, 8f) == false)
{ pawn.jobs.EndCurrentJob(JobCondition.InterruptForced, false, false); }
else if (pawn.IsHavingSex())
@ -74,7 +74,7 @@ namespace Privacy_Please
foreach (Pawn participant in participants)
{
if (participant.HasPrivacy(8f) == false)
if (PrivacyUtility.PawnHasPrivacy(participant, 8f) == false)
{ havePrivacy = false; }
}