Remove RJWUtility.UpdatePartnerHistory

This commit is contained in:
amevarashi 2022-06-04 13:02:23 +05:00
parent 39d3b44142
commit 1013113718
2 changed files with 6 additions and 12 deletions

View File

@ -164,10 +164,13 @@ namespace RJWSexperience
public static void Postfix(SexProps props)
{
RJWUtility.UpdateSextypeRecords(props);
RJWUtility.UpdatePartnerHistory(props.pawn, props.partner, props);
RJWUtility.UpdatePartnerHistory(props.partner, props.pawn, props);
}
if (props.partner == null)
return;
props.pawn.TryGetComp<SexHistoryComp>()?.RecordSex(props.partner, props);
props.partner.TryGetComp<SexHistoryComp>()?.RecordSex(props.pawn, props);
}
}
[HarmonyPatch(typeof(JobDriver_SexBaseInitiator), "Start")]

View File

@ -4,7 +4,6 @@ using rjw.Modules.Interactions.Enums;
using rjw.Modules.Interactions.Helpers;
using rjw.Modules.Interactions.Objects;
using System.Collections.Generic;
using System.Linq;
using Verse;
using Verse.AI;
@ -156,14 +155,6 @@ namespace RJWSexperience
}
}
public static void UpdatePartnerHistory(Pawn pawn, Pawn partner, SexProps props)
{
if (partner != null)
{
pawn.TryGetComp<SexHistoryComp>()?.RecordSex(partner, props);
}
}
public static void IncreaseSameRecords(Pawn pawn, Pawn partner, RecordDef record)
{
pawn.records?.AddTo(record, 1);