2021-12-11 19:18:21 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace RJW_patch_Autopsy
|
|
|
|
|
{
|
|
|
|
|
[StaticConstructorOnStartup]
|
2022-03-12 15:19:29 +00:00
|
|
|
|
public class AutopsyPatch
|
2021-12-11 19:18:21 +00:00
|
|
|
|
{
|
2022-03-12 15:19:29 +00:00
|
|
|
|
public static bool SizedApparelActive = false;
|
|
|
|
|
|
|
|
|
|
static AutopsyPatch()
|
2021-12-11 19:18:21 +00:00
|
|
|
|
{
|
2022-03-12 15:19:29 +00:00
|
|
|
|
//check SJW
|
|
|
|
|
if (LoadedModManager.RunningModsListForReading.Any(x => x.Name == "SizedApparel"))
|
|
|
|
|
{
|
|
|
|
|
SizedApparelActive = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (LoadedModManager.RunningModsListForReading.Any(x => x.PackageId == "OTYOTY.SizedApparel"))
|
|
|
|
|
{
|
|
|
|
|
SizedApparelActive = true;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-11 19:18:21 +00:00
|
|
|
|
var har = new Harmony("Stardust3D.RJW.patch.Autopsy");
|
|
|
|
|
har.PatchAll(Assembly.GetExecutingAssembly());
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-18 01:32:26 +00:00
|
|
|
|
}
|