Decompiled source of BoostLocker v0.0.2

BoostLocker.dll

Decompiled 2 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using Microsoft.CodeAnalysis;
using Reptile;
using UnityEngine;
using UnityEngine.SceneManagement;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("BoostLocker")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Locked boost for Bomb Rush Cyberfunk")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("BoostLocker")]
[assembly: AssemblyTitle("BoostLocker")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace woodzboostblast
{
	[BepInPlugin("info.mariobluegloves.boostlockerp", "Boost Locker", "0.0.1")]
	[BepInProcess("Bomb Rush Cyberfunk.exe")]
	public class BoostBlastPlugin : BaseUnityPlugin
	{
		private const double S = 13.5;

		private bool sceneLoaded = false;

		private void Awake()
		{
			SceneManager.sceneLoaded += OnSceneLoaded;
		}

		private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
		{
			sceneLoaded = true;
		}

		private void Update()
		{
			if (!sceneLoaded)
			{
				return;
			}
			GameObject val = GameObject.Find("Player_HUMAN0");
			if ((Object)(object)val != (Object)null)
			{
				Player component = val.GetComponent<Player>();
				if ((Object)(object)component != (Object)null)
				{
					((Ability)component.boostAbility).locked = true;
					((Ability)component.airDashAbility).locked = true;
				}
			}
		}
	}
	[BepInPlugin("info.mariobluegloves.boostlocker", "Boost Locker", "0.0.1")]
	[BepInProcess("Bomb Rush Cyberfunk.exe")]
	public class BoostBlastWoodz : BaseUnityPlugin
	{
		private void Awake()
		{
			((BaseUnityPlugin)this).Logger.LogInfo((object)"boost machine broke");
		}
	}
}