Decompiled source of LCMarathoner v1.0.0

LCMarathoner.dll

Decompiled a year 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 GameNetcodeStuff;
using HarmonyLib;
using LCMarathoner.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("LCMarathoner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LCMarathoner")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3ef45798-69e6-4fe3-826d-7ab231378fd0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LCMarathoner
{
	[BepInPlugin("FreakyFriday.LCMarathoner", "LC Marathoner Mod", "1.0.0")]
	public class MarathonerBase : BaseUnityPlugin
	{
		private const string modGUID = "FreakyFriday.LCMarathoner";

		private const string modName = "LC Marathoner Mod";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("FreakyFriday.LCMarathoner");

		private static MarathonerBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("FreakyFriday.LCMarathoner");
			mls.LogInfo((object)"Marathoner has awaken :)");
			harmony.PatchAll(typeof(MarathonerBase));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace LCMarathoner.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void infiniteSprintPatch(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}
	}
}