Decompiled source of ThisPrisonToHoldHim v1.0.0

ThisPrisonToHoldHim.dll

Decompiled 6 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ThisPrisonToHoldHim")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ThisPrisonToHoldHim")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("d79c2126-5c2b-475f-8f43-b0add4890925")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ThisPrisonToHoldHim
{
	[BepInPlugin("thebluenebula.ThisPrisonToHoldHim", "ThisPrisonToHoldHim", "1.0.0")]
	public class ThisPrisonToHoldHimPlugin : BaseUnityPlugin
	{
		[HarmonyPatch(typeof(FleshPrison), "Start")]
		public static class FleshPrison_Start
		{
			[HarmonyPostfix]
			public static void Postfix(FleshPrison __instance)
			{
				//IL_000c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0016: Expected O, but got Unknown
				if (__instance.altVersion)
				{
					__instance.onFirstHeal = new UltrakillEvent();
				}
			}
		}

		private const string MyGUID = "thebluenebula.ThisPrisonToHoldHim";

		private const string PluginName = "ThisPrisonToHoldHim";

		private const string VersionString = "1.0.0";

		public static ConfigEntry<float> FloatExample;

		public static ConfigEntry<int> IntExample;

		public static ConfigEntry<KeyboardShortcut> KeyboardShortcutExample;

		private static readonly Harmony Harmony = new Harmony("thebluenebula.ThisPrisonToHoldHim");

		public static ManualLogSource Log = new ManualLogSource("ThisPrisonToHoldHim");

		private void Awake()
		{
			((BaseUnityPlugin)this).Logger.LogInfo((object)"PluginName: ThisPrisonToHoldHim, VersionString: 1.0.0 is loading...");
			Harmony.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"PluginName: ThisPrisonToHoldHim, VersionString: 1.0.0 is loaded!");
			Log = ((BaseUnityPlugin)this).Logger;
		}
	}
}
namespace ThisPrisonToHoldHim.MonoBehaviours
{
	internal class ThisPrisonToHoldHimComponent : MonoBehaviour
	{
		public void Awake()
		{
		}

		public void Start()
		{
		}

		public void Update()
		{
		}

		public void LateUpdate()
		{
		}
	}
}