mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Remove HistoryUtility.GetPartnerHistory
This commit is contained in:
parent
0c7a762b9e
commit
257d86a416
4 changed files with 54 additions and 70 deletions
|
@ -85,7 +85,7 @@ namespace RJWSexperience
|
|||
{
|
||||
if (pawn.IsVirgin())
|
||||
{
|
||||
SexPartnerHistory history = pawn.GetPartnerHistory();
|
||||
SexPartnerHistory history = pawn.TryGetComp<SexPartnerHistory>();
|
||||
history?.RecordFirst(partner, props);
|
||||
if (RJWUtility.RemoveVirginTrait(pawn, partner, props))
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace RJWSexperience
|
|||
foreach (Gizmo gizmo in gizmos)
|
||||
yield return gizmo;
|
||||
|
||||
SexPartnerHistory history = pawn.GetPartnerHistory();
|
||||
SexPartnerHistory history = pawn.TryGetComp<SexPartnerHistory>();
|
||||
if (history != null)
|
||||
yield return history.Gizmo;
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ namespace RJWSexperience
|
|||
if (partner != null)
|
||||
{
|
||||
SexPartnerHistory pawnshistory = pawn.TryGetComp<SexPartnerHistory>();
|
||||
pawnshistory?.RecordHistory(partner, props);
|
||||
pawnshistory?.RecordSex(partner, props);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ namespace RJWSexperience
|
|||
if (partner != null)
|
||||
{
|
||||
SexPartnerHistory pawnshistory = pawn.TryGetComp<SexPartnerHistory>();
|
||||
pawnshistory?.RecordSatisfactionHistory(partner, props, satisfaction);
|
||||
pawnshistory?.RecordSatisfaction(partner, props, satisfaction);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using RimWorld;
|
||||
using UnityEngine;
|
||||
using Verse;
|
||||
using rjw;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RJWSexperience
|
||||
{
|
||||
|
@ -56,18 +49,9 @@ namespace RJWSexperience
|
|||
|
||||
public static readonly Texture2D[] PassionBG = new Texture2D[]
|
||||
{
|
||||
|
||||
Texture2D.blackTexture, //None = 0,
|
||||
SolidColorMaterials.NewSolidColorTexture(0.800f, 0.800f, 0.800f, 1.0f), //Minor = 1,
|
||||
SolidColorMaterials.NewSolidColorTexture(1.000f, 0.875f, 0.000f, 1.0f) //Major = 2,
|
||||
};
|
||||
|
||||
public static SexPartnerHistory GetPartnerHistory(this Pawn pawn)
|
||||
{
|
||||
return pawn.TryGetComp<SexPartnerHistory>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue