2022-03-07 04:57:23 +00:00
|
|
|
|
extern alias BaseSexperience;
|
|
|
|
|
using BaseSexperience::RJWSexperience.ExtensionMethods;
|
|
|
|
|
using BaseSexperience::RJWSexperience;
|
|
|
|
|
using HarmonyLib;
|
2021-08-21 16:29:59 +00:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace RJWSexperience.Ideology
|
|
|
|
|
{
|
2022-02-25 14:15:48 +00:00
|
|
|
|
[StaticConstructorOnStartup]
|
|
|
|
|
internal static class First
|
|
|
|
|
{
|
|
|
|
|
static First()
|
|
|
|
|
{
|
|
|
|
|
var harmony = new Harmony("RJW_Sexperience.Ideology");
|
|
|
|
|
harmony.PatchAll(Assembly.GetExecutingAssembly());
|
2021-08-21 16:29:59 +00:00
|
|
|
|
|
2022-02-25 14:15:48 +00:00
|
|
|
|
if (ModLister.HasActiveModWithName("RJW Sexperience"))
|
|
|
|
|
{
|
2022-03-07 04:57:23 +00:00
|
|
|
|
harmony.Patch(AccessTools.Method(typeof(PawnExtensions), nameof(PawnExtensions.IsIncest)),
|
2022-02-25 14:15:48 +00:00
|
|
|
|
prefix: new HarmonyMethod(typeof(Sexperience_Patch_IsIncest), nameof(Sexperience_Patch_IsIncest.Prefix)),
|
|
|
|
|
postfix: null
|
|
|
|
|
);
|
2022-03-07 04:57:23 +00:00
|
|
|
|
harmony.Patch(AccessTools.Method(typeof(RJWUtility), nameof(RJWUtility.ThrowVirginHIstoryEvent)),
|
2022-02-25 14:15:48 +00:00
|
|
|
|
prefix: null,
|
|
|
|
|
postfix: new HarmonyMethod(typeof(Sexperience_Patch_ThrowVirginHIstoryEvent), nameof(Sexperience_Patch_ThrowVirginHIstoryEvent.Postfix))
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-21 16:29:59 +00:00
|
|
|
|
}
|