RJW_More_/1.4/Source/RJW_More_Genes/HarmonyInit.cs

28 lines
635 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
using HarmonyLib;
using rjw;
namespace RJW_More_Genes
{
[StaticConstructorOnStartup]
internal static class HarmonyInit
{
static HarmonyInit()
{
Harmony harmony = new Harmony("RJW_More_Genes");
harmony.PatchAll();
if (ModsConfig.BiotechActive)
{
harmony.Patch(typeof(SexUtility).GetMethod("ProcessSex"), new HarmonyMethod(typeof(PatchProcessSex), "Postfix", null));
}
}
}
}