RJW-Sexperience/RJWSexperience/IdeologyAddon/Harmony.cs

26 lines
668 B
C#
Raw Normal View History

using HarmonyLib;
2022-06-20 04:51:35 +00:00
using RJWSexperience.Ideology.Patches;
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-07-08 17:48:57 +00:00
harmony.Patch(AccessTools.Method("RJWSexperience.RJWUtility:ThrowVirginHistoryEvent"),
2022-02-25 14:15:48 +00:00
prefix: null,
2022-07-08 17:48:57 +00:00
postfix: new HarmonyMethod(typeof(Sexperience_Patch_ThrowVirginHistoryEvent), nameof(Sexperience_Patch_ThrowVirginHistoryEvent.Postfix))
2022-02-25 14:15:48 +00:00
);
}
}
}
2021-08-21 16:29:59 +00:00
}