mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Remove RJWUtility.UpdatePartnerHistory
This commit is contained in:
parent
39d3b44142
commit
1013113718
2 changed files with 6 additions and 12 deletions
|
@ -164,10 +164,13 @@ namespace RJWSexperience
|
||||||
public static void Postfix(SexProps props)
|
public static void Postfix(SexProps props)
|
||||||
{
|
{
|
||||||
RJWUtility.UpdateSextypeRecords(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")]
|
[HarmonyPatch(typeof(JobDriver_SexBaseInitiator), "Start")]
|
||||||
|
|
|
@ -4,7 +4,6 @@ using rjw.Modules.Interactions.Enums;
|
||||||
using rjw.Modules.Interactions.Helpers;
|
using rjw.Modules.Interactions.Helpers;
|
||||||
using rjw.Modules.Interactions.Objects;
|
using rjw.Modules.Interactions.Objects;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using Verse;
|
using Verse;
|
||||||
using Verse.AI;
|
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)
|
public static void IncreaseSameRecords(Pawn pawn, Pawn partner, RecordDef record)
|
||||||
{
|
{
|
||||||
pawn.records?.AddTo(record, 1);
|
pawn.records?.AddTo(record, 1);
|
||||||
|
|
Loading…
Reference in a new issue