Decompiled source of JetpackMode v1.0.0

JetpackMod.dll

Decompiled 3 weeks 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 JetpackMod.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("JetpackMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("JetpackMod")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("09e2032c-5ea0-4d41-81a5-74240acf8b59")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace JetpackMod.Patches
{
	[HarmonyPatch(typeof(JetpackItem))]
	internal class JetpackItemPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void JetpackExplosionPatch(ref float ___jetpackAcceleration, ref float ___jetpackPower, ref float ___jetpackDeaccelleration)
		{
			___jetpackPower = 100f;
			___jetpackAcceleration = 250f;
		}
	}
}
namespace JetpackExplosionMod
{
	[BepInPlugin("Plantain.JetpackExplosionMod", "Jetpack Explosion Mod", "1.0.0.0")]
	public class JetpackExplosionBase : BaseUnityPlugin
	{
		private const string modGUID = "Plantain.JetpackExplosionMod";

		private const string modName = "Jetpack Explosion Mod";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("Plantain.JetpackExplosionMod");

		private static JetpackExplosionBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Plantain.JetpackExplosionMod");
			mls.LogInfo((object)"JetpackExplosionMod is awake :D");
			harmony.PatchAll(typeof(JetpackExplosionBase));
			harmony.PatchAll(typeof(JetpackItemPatch));
		}
	}
}