Decompiled source of NoOvercharge v1.0.0

No Overcharge.dll

Decompiled a week ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using NoOvercharge.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("No Overcharge")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("No Overcharge")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c5581b2b-2c8c-4d02-bc96-154aeaef8cae")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoOvercharge
{
	[BepInPlugin("Lazarus.noovercharge", "No Overcharge", "1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		public const string modGUID = "Lazarus.noovercharge";

		public const string modName = "No Overcharge";

		public const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("Lazarus.noovercharge");

		public void Awake()
		{
			((BaseUnityPlugin)this).Logger.LogInfo((object)"John 11:11!");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"WAKEY WAKEY!");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"NoOvercharge mod loaded! Disabling Overcharge mechanic.");
			harmony.PatchAll(typeof(NoOverchargePatch));
		}
	}
}
namespace NoOvercharge.Patches
{
	[HarmonyPatch(typeof(PlayerController))]
	internal class NoOverchargePatch
	{
		[HarmonyPatch("Awake")]
		[HarmonyPostfix]
		private static void Patch(ref bool ___DebugDisableOvercharge)
		{
			___DebugDisableOvercharge = true;
			Debug.Log((object)"NoOvercharge: Set DebugDisableOvercharge to true");
		}
	}
}