mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
25 lines
832 B
C#
25 lines
832 B
C#
using HarmonyLib;
|
|
using rjw;
|
|
using RJWSexperience.Ideology.HistoryEvents;
|
|
using Verse;
|
|
|
|
namespace RJWSexperience.Ideology.Patches
|
|
{
|
|
[HarmonyPatch("RJWSexperience.RJWUtility", "ThrowVirginHistoryEvent")]
|
|
public static class Sexperience_Patch_ThrowVirginHistoryEvent
|
|
{
|
|
public static bool Prepare() => ModsConfig.IsActive("rjw.sexperience");
|
|
|
|
public static void Postfix(Pawn exVirgin, Pawn partner, SexProps props, int degree)
|
|
{
|
|
const int femaleAfterSurgery = 1;
|
|
|
|
if (props.isRape && exVirgin == props.partner)
|
|
RsiDefOf.HistoryEvent.RSI_VirginStolen.RecordEventWithPartner(exVirgin, partner);
|
|
else if (degree != femaleAfterSurgery)
|
|
RsiDefOf.HistoryEvent.RSI_VirginTaken.RecordEventWithPartner(exVirgin, partner);
|
|
|
|
RsiDefOf.HistoryEvent.RSI_TookVirgin.RecordEventWithPartner(partner, exVirgin);
|
|
}
|
|
}
|
|
}
|