Replaced manual sexperience patch with the Prepare method

This commit is contained in:
amevarashi 2023-04-23 15:38:38 +05:00
parent 7e30ebe68e
commit be1e5c5d5d
2 changed files with 9 additions and 16 deletions

View file

@ -1,11 +1,15 @@
using rjw;
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;