old changes

This commit is contained in:
Stardust3D 2022-03-12 16:19:29 +01:00
parent 3207f7e7a1
commit 3512bdea66
8 changed files with 26 additions and 11 deletions

View file

@ -5,10 +5,23 @@ using Verse;
namespace RJW_patch_Autopsy
{
[StaticConstructorOnStartup]
internal static class First
public class AutopsyPatch
{
static First()
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());
}