Decompiled source of UnlimitedRun v1.0.0

ModTest.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 GameNetcodeStuff;
using HarmonyLib;
using ModTest.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("ModTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ModTest")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("196f6707-c2fd-47d2-aa4b-d66f0e18f334")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ModTest
{
	[BepInPlugin("Poseidon.LCTestModZodiacGSK", "Mod testLC", "1.0.0.0")]
	public class ModTestLethal : BaseUnityPlugin
	{
		private const string modGUID = "Poseidon.LCTestModZodiacGSK";

		private const string modName = "Mod testLC";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("Poseidon.LCTestModZodiacGSK");

		private static ModTestLethal Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Poseidon.LCTestModZodiacGSK");
			mls.LogInfo((object)"Test mod enabled");
			harmony.PatchAll(typeof(ModTestLethal));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace ModTest.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPostfix]
		[HarmonyPatch("Update")]
		private static void InfiniteRunPatch(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}

		[HarmonyPostfix]
		[HarmonyPatch("Start")]
		private static void SuperJumpPatch(ref float ___jumpForce)
		{
			___jumpForce = 30f;
		}
	}
}