From 7f86dcd23644166b53a9a75f6873adae2f1668dd Mon Sep 17 00:00:00 2001 From: amevarashi Date: Mon, 23 May 2022 22:15:37 +0500 Subject: [PATCH] Remove RJWUtility.UpdateSatisfactionHIstory method --- RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs | 3 ++- RJWSexperience/RJWSexperience/RJWUtility.cs | 12 +----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs b/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs index 547699a..cacf2d9 100644 --- a/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs +++ b/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs @@ -64,8 +64,9 @@ namespace RJWSexperience Pawn pawn = props.pawn; UpdateLust(props, satisfaction); FillCumBuckets(props); - RJWUtility.UpdateSatisfactionHIstory(pawn, props.partner, props, satisfaction); pawn.records?.Increment(VariousDefOf.OrgasmCount); + if (props.partner != null) + pawn.TryGetComp()?.RecordSatisfaction(props.partner, props, satisfaction); } private static void FillCumBuckets(SexProps props) diff --git a/RJWSexperience/RJWSexperience/RJWUtility.cs b/RJWSexperience/RJWSexperience/RJWUtility.cs index b77b9ce..549c80f 100644 --- a/RJWSexperience/RJWSexperience/RJWUtility.cs +++ b/RJWSexperience/RJWSexperience/RJWUtility.cs @@ -159,17 +159,7 @@ namespace RJWSexperience { if (partner != null) { - SexHistoryComp pawnshistory = pawn.TryGetComp(); - pawnshistory?.RecordSex(partner, props); - } - } - - public static void UpdateSatisfactionHIstory(Pawn pawn, Pawn partner, SexProps props, float satisfaction) - { - if (partner != null) - { - SexHistoryComp pawnshistory = pawn.TryGetComp(); - pawnshistory?.RecordSatisfaction(partner, props, satisfaction); + pawn.TryGetComp()?.RecordSex(partner, props); } }