Decompiled source of LazyJester v0.1.1

LazyJester.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.Logging;
using HarmonyLib;
using LazyJester.Patches;
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("LazyJester")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LazyJester")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3252c2ba-851a-40f7-8afa-c56fd65dd898")]
[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 LazyJester
{
	[BepInPlugin("qr.LazyJester", "Lazy Jester", "0.1")]
	public class LazyJesterBase : BaseUnityPlugin
	{
		public const string modGUID = "qr.LazyJester";

		public const string modName = "Lazy Jester";

		public const string modVersion = "0.1";

		private readonly Harmony harmony = new Harmony("qr.LazyJester");

		private static LazyJesterBase Instance;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			ManualLogSource val = Logger.CreateLogSource("qr.LazyJester");
			val.LogMessage((object)"qr.LazyJester has loaded succesfully.");
			harmony.PatchAll(typeof(LazyJesterBase));
			harmony.PatchAll(typeof(JesterAIPatch));
		}
	}
}
namespace LazyJester.Patches
{
	[HarmonyPatch(typeof(JesterAI))]
	internal class JesterAIPatch
	{
		[HarmonyPatch("SetJesterInitialValues")]
		[HarmonyPostfix]
		private static void SetJesterInitialValuesPatch(ref float ___beginCrankingTimer)
		{
			___beginCrankingTimer = 800f;
		}
	}
}