Decompiled source of InstantClimb v1.0.0

InstantClimb.dll

Decompiled 10 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 SuperJump.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("SuperJump")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SuperJump")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c9c8d3c0-a806-428e-9a14-8ca36fcec959")]
[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 SuperJump
{
	[BepInPlugin("rlnoir.InstantClimb", "InstantClimb", "1.0.0")]
	public class SuperJump : BaseUnityPlugin
	{
		private const string modGUID = "rlnoir.InstantClimb";

		private const string modName = "InstantClimb";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("rlnoir.InstantClimb");

		private static SuperJump instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)instance == (Object)null)
			{
				instance = this;
			}
			mls = Logger.CreateLogSource("rlnoir.InstantClimb");
			mls.LogInfo((object)"InstantClimb is working");
			harmony.PatchAll(typeof(SuperJump));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace SuperJump.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void SuperJumpPatch(ref float ___climbSpeed)
		{
			___climbSpeed = 1000f;
		}
	}
}