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()); } } }