mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Replaced manual sexperience patch with the Prepare method
This commit is contained in:
parent
7e30ebe68e
commit
be1e5c5d5d
2 changed files with 9 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue