Move last events to overrides

This commit is contained in:
amevarashi 2022-07-09 13:13:33 +05:00
parent 20c7b303c0
commit 70a90ec2e7
3 changed files with 23 additions and 9 deletions

View File

@ -102,13 +102,7 @@ namespace RJWSexperience.Ideology.Patches
else if (xxx.is_human(partner) && rape)
{
VariousDefOf.RSI_Raped.RecordEventWithPartner(human, partner);
if (partner.IsSlave)
VariousDefOf.RSI_WasRapedSlave.RecordEventWithPartner(partner, human);
else if (partner.IsPrisoner)
VariousDefOf.RSI_WasRapedPrisoner.RecordEventWithPartner(partner, human);
else
VariousDefOf.RSI_WasRaped.RecordEventWithPartner(partner, human);
VariousDefOf.RSI_WasRaped.RecordEventWithPartner(partner, human);
}
}

View File

@ -19,8 +19,6 @@ namespace RJWSexperience.Ideology
[MayRequireIdeology] public static readonly HistoryEventDef RSI_SexWithAnimal;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_Raped;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_WasRaped;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_WasRapedSlave;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_WasRapedPrisoner;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_NonIncestuosMarriage;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_NonIncestuosSex;
[MayRequireIdeology] public static readonly HistoryEventDef RSI_SexWithCorpse;

View File

@ -48,6 +48,28 @@
<HistoryEventDef>
<defName>RSI_WasRaped</defName>
<label>was raped</label>
<modExtensions>
<li Class="RJWSexperience.Ideology.HistoryEvents.DefExtension_PartnerDependentOverrides">
<overrideRules>
<li>
<filter>
<doer>
<isSlave>true</isSlave>
</doer>
</filter>
<historyEventDef>RSI_WasRapedSlave</historyEventDef>
</li>
<li>
<filter>
<doer>
<isPrisoner>true</isPrisoner>
</doer>
</filter>
<historyEventDef>RSI_WasRapedPrisoner</historyEventDef>
</li>
</overrideRules>
</li>
</modExtensions>
</HistoryEventDef>
<HistoryEventDef>