Decompiled source of BaselineHandsRemover2 v0.0.2

Mods/hands_remover.dll

Decompiled 2 weeks ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BoneLib.Notifications;
using MelonLoader;
using hand_remover;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Removes the Baseline hands.")]
[assembly: AssemblyDescription("Removes the Baseline hands.")]
[assembly: AssemblyCompany("JoobLorp")]
[assembly: AssemblyProduct("Baseline Hand Remover")]
[assembly: AssemblyCopyright("Developed by jajooagain")]
[assembly: AssemblyTrademark("JoobLorp")]
[assembly: AssemblyFileVersion("0.0.1")]
[assembly: MelonInfo(typeof(Main), "Baseline Hand Remover", "0.0.1", "jajooagain", "Linkless")]
[assembly: MelonColor(ConsoleColor.White)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = "")]
[assembly: AssemblyVersion("0.0.1.0")]
namespace hand_remover;

internal class Main : MelonMod
{
	internal const string Name = "Baseline Hand Remover";

	internal const string Description = "Removes the Baseline hands.";

	internal const string Author = "jajooagain";

	internal const string Company = "JoobLorp";

	internal const string Version = "0.0.1";

	internal const string DownloadLink = "Linkless";

	public override void OnEarlyInitializeMelon()
	{
		((MelonBase)this).OnEarlyInitializeMelon();
		MelonLogger.Msg("Initializing Baseline Hand Remover");
	}

	public override void OnInitializeMelon()
	{
		((MelonBase)this).OnInitializeMelon();
	}

	public override void OnLateInitializeMelon()
	{
		((MelonBase)this).OnLateInitializeMelon();
	}

	public override void OnUpdate()
	{
		((MelonBase)this).OnUpdate();
	}

	public override void OnFixedUpdate()
	{
		((MelonBase)this).OnFixedUpdate();
	}

	public override void OnLateUpdate()
	{
		((MelonBase)this).OnLateUpdate();
	}

	public override void OnSceneWasLoaded(int levelIndex, string sceneName)
	{
		//IL_0042: Unknown result type (might be due to invalid IL or missing references)
		//IL_0047: Unknown result type (might be due to invalid IL or missing references)
		//IL_004d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0057: Unknown result type (might be due to invalid IL or missing references)
		//IL_0062: Unknown result type (might be due to invalid IL or missing references)
		//IL_006a: Expected O, but got Unknown
		//IL_0097: Unknown result type (might be due to invalid IL or missing references)
		//IL_009c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0083: Unknown result type (might be due to invalid IL or missing references)
		//IL_0088: Unknown result type (might be due to invalid IL or missing references)
		MelonLogger.Msg("Loading scene");
		if (sceneName.ToLower() == "scene_baseline")
		{
			MelonLogger.Msg("Hands removed. Enjoy your baseline!");
			Random random = new Random();
			bool flag = random.Next(0, 10) != 0;
			Notification val = new Notification
			{
				Title = NotificationText.op_Implicit("Baseline Hands Remover"),
				PopupLength = 15f,
				ShowTitleOnPopup = true
			};
			if (random.Next(0, 10) != 0)
			{
				val.Message = NotificationText.op_Implicit("HANDS successfully removed. Enjoy baseline!");
			}
			else
			{
				val.Message = NotificationText.op_Implicit("I'm sorry.");
			}
			Notifier.Send(val);
		}
	}
}