Decompiled source of Unlimited Honk v1.0.1

UnlimitedHonk.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BepInEx;
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("UnlimitedHonk")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UnlimitedHonk")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9f62f25c-c42a-4091-a350-3b67277954e5")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace UnlimitedHonk
{
	[BepInPlugin("Distance.UnlimitedHonk", "Unlimited Honk", "1.0.1")]
	public sealed class Mod : BaseUnityPlugin
	{
		private const string modGUID = "Distance.UnlimitedHonk";

		private const string modName = "Unlimited Honk";

		private const string modVersion = "1.0.1";

		private static readonly Harmony harmony = new Harmony("Distance.UnlimitedHonk");

		public static ManualLogSource Log = new ManualLogSource("Unlimited Honk");

		public static Mod Instance;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			Log = Logger.CreateLogSource("Distance.UnlimitedHonk");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"YOU HAVE ENTERED UNLIMITED HONK ZONE");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Loading...");
			harmony.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded!");
		}
	}
}
namespace UnlimitedHonk.Patches
{
	[HarmonyPatch(typeof(HornGadget), "GadgetUpdateLocal")]
	internal class HornGadget__GadgetUpdateLocal
	{
		[HarmonyPrefix]
		internal static void UnlockHornPrefix(HornGadget __instance)
		{
			__instance.delayBetweenHorn_ = 1E-05f;
			__instance.maxButtonDownTime_ = 10000f;
			__instance.maxBubbleTime_ = 10000f;
			__instance.minBubbleTime_ = 0.5f;
		}
	}
}