2022-02-25 14:15:48 +00:00
|
|
|
|
using RimWorld;
|
2021-09-24 15:14:02 +00:00
|
|
|
|
using rjw;
|
2022-07-03 15:49:53 +00:00
|
|
|
|
using RJWSexperience.Ideology.HistoryEvents;
|
2021-09-24 15:14:02 +00:00
|
|
|
|
using Verse;
|
|
|
|
|
|
2022-06-20 04:51:35 +00:00
|
|
|
|
namespace RJWSexperience.Ideology.Patches
|
2021-09-24 15:14:02 +00:00
|
|
|
|
{
|
2022-02-25 14:15:48 +00:00
|
|
|
|
public static class Sexperience_Patch_ThrowVirginHIstoryEvent
|
|
|
|
|
{
|
|
|
|
|
public static void Postfix(Pawn pawn, Pawn partner, SexProps props, int degree)
|
|
|
|
|
{
|
|
|
|
|
string tag = "";
|
|
|
|
|
if (props.isRape)
|
|
|
|
|
{
|
2022-07-03 15:49:53 +00:00
|
|
|
|
if (pawn == props.pawn && props.isRapist) tag += Tag.Rape;
|
|
|
|
|
else tag += Tag.BeenRaped;
|
2022-02-25 14:15:48 +00:00
|
|
|
|
}
|
|
|
|
|
if (!pawn.relations.DirectRelationExists(PawnRelationDefOf.Spouse, partner))
|
|
|
|
|
{
|
2022-07-03 15:49:53 +00:00
|
|
|
|
tag += Tag.NotSpouse;
|
2022-02-25 14:15:48 +00:00
|
|
|
|
}
|
2021-09-24 15:14:02 +00:00
|
|
|
|
|
2022-02-25 14:15:48 +00:00
|
|
|
|
if (pawn.gender == Gender.Male)
|
|
|
|
|
{
|
2022-07-03 15:49:53 +00:00
|
|
|
|
if (degree > 1) Find.HistoryEventsManager.RecordEvent(VariousDefOf.Virgin_TakenM.CreateTaggedEvent(pawn, tag + Tag.Gender(pawn), partner));
|
|
|
|
|
Find.HistoryEventsManager.RecordEvent(VariousDefOf.Virgin_TookM.CreateTaggedEvent(partner, tag + Tag.Gender(pawn), pawn));
|
2022-02-25 14:15:48 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2022-07-03 15:49:53 +00:00
|
|
|
|
if (degree > 1) Find.HistoryEventsManager.RecordEvent(VariousDefOf.Virgin_TakenF.CreateTaggedEvent(pawn, tag + Tag.Gender(pawn), partner));
|
|
|
|
|
Find.HistoryEventsManager.RecordEvent(VariousDefOf.Virgin_TookF.CreateTaggedEvent(partner, tag + Tag.Gender(pawn), pawn));
|
2022-02-25 14:15:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-24 15:14:02 +00:00
|
|
|
|
}
|