Fixed: Pawns raping despite Rape-Abhorrent precept

This commit is contained in:
amevarashi 2023-11-06 16:28:08 +05:00
parent 472933e192
commit 71df71a0eb
2 changed files with 47 additions and 0 deletions

View file

@ -2,6 +2,7 @@
using Verse;
using System.Linq;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace RJWSexperience.Ideology.HistoryEvents
{
@ -27,6 +28,7 @@ namespace RJWSexperience.Ideology.HistoryEvents
//Log.Message($"[RSI] Recorded event {historyEvent.def.ToStringWithPartner(pawn, partner)}");
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static HistoryEvent CreateEvent(this HistoryEventDef def, Pawn pawn)
{
return new HistoryEvent(def, pawn.Named(HistoryEventArgsNames.Doer));