Decompiled source of InstaKillShovel v1.0.0

InstaKillShovel.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 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.InstaKillShovel", "InstaKillShovel", "1.0.0")]
	public class SuperJump : BaseUnityPlugin
	{
		private const string modGUID = "rlnoir.InstaKillShovel";

		private const string modName = "InstaKillShovel";

		private const string modVersion = "1.0.0";

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

		private static SuperJump instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)instance == (Object)null)
			{
				instance = this;
			}
			mls = Logger.CreateLogSource("rlnoir.InstaKillShovel");
			mls.LogInfo((object)"InstaKillShovel is working");
			harmony.PatchAll(typeof(SuperJump));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace SuperJump.Patches
{
	[HarmonyPatch(typeof(Shovel))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("HitShovel")]
		[HarmonyPostfix]
		private static void SuperJumpPatch(ref int ___shovelHitForce)
		{
			___shovelHitForce = 999;
		}
	}
}