Decompiled source of 2xClimb v1.0.0

2x Climb Speed.dll

Decompiled 11 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("2x Climb Speed")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("2x Climb Speed")]
[assembly: AssemblyTitle("2x Climb Speed")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace TwoxClimb;

[BepInPlugin("void.2xclimb", "2X Climb Mod", "1.0.0")]
public class HarmonyLibs1 : BaseUnityPlugin
{
	private const string guid = "void.2xclimb";

	private const string name = "2X Climb Mod";

	private const string version = "1.0.0";

	private readonly Harmony harmony = new Harmony("void.2xclimb");

	private static HarmonyLibs1 instance;

	internal ManualLogSource mls;

	private void Awake()
	{
		if ((Object)(object)instance == (Object)null)
		{
			instance = this;
		}
		mls.LogInfo((object)"2X CLIMB MOD WORKING yay");
		harmony.PatchAll(typeof(HarmonyLibs1));
		harmony.PatchAll(typeof(PlayerControllerB));
	}
}
[HarmonyPatch(typeof(PlayerControllerB))]
internal class TwoxClimb1
{
	[HarmonyPatch("Update")]
	[HarmonyPostfix]
	private static void run(ref float __climbspeed)
	{
		__climbspeed = 8f;
	}
}