rjw-patch-autopsy/Source/RJW_patch_Autopsy/Patches/Harmony.cs

29 lines
768 B
C#

using HarmonyLib;
using System.Reflection;
using Verse;
namespace RJW_patch_Autopsy
{
[StaticConstructorOnStartup]
public class AutopsyPatch
{
public static bool SizedApparelActive = false;
static AutopsyPatch()
{
//check SJW
if (LoadedModManager.RunningModsListForReading.Any(x => x.Name == "SizedApparel"))
{
SizedApparelActive = true;
}
if (LoadedModManager.RunningModsListForReading.Any(x => x.PackageId == "OTYOTY.SizedApparel"))
{
SizedApparelActive = true;
}
var har = new Harmony("Stardust3D.RJW.patch.Autopsy");
har.PatchAll(Assembly.GetExecutingAssembly());
}
}
}