mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
29 lines
919 B
C#
29 lines
919 B
C#
using HarmonyLib;
|
|
using System.Reflection;
|
|
using Verse;
|
|
|
|
namespace RJWSexperience.Ideology
|
|
{
|
|
[StaticConstructorOnStartup]
|
|
internal static class First
|
|
{
|
|
static First()
|
|
{
|
|
var harmony = new Harmony("RJW_Sexperience.Ideology");
|
|
harmony.PatchAll(Assembly.GetExecutingAssembly());
|
|
|
|
if (ModLister.HasActiveModWithName("RJW Sexperience"))
|
|
{
|
|
//Log.Message("[RJWSexperience.Ideology] Found RJWSexperience, patching");
|
|
harmony.Patch(AccessTools.Method("RJWSexperience.Utility:IsIncest"),
|
|
prefix: new HarmonyMethod(typeof(Sexperience_Patch_IsIncest), nameof(Sexperience_Patch_IsIncest.Prefix)),
|
|
postfix: null
|
|
);
|
|
harmony.Patch(AccessTools.Method("RJWSexperience.RJWUtility:ThrowVirginHIstoryEvent"),
|
|
prefix: null,
|
|
postfix: new HarmonyMethod(typeof(Sexperience_Patch_ThrowVirginHIstoryEvent), nameof(Sexperience_Patch_ThrowVirginHIstoryEvent.Postfix))
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|