Due to update 2.4.3, some mods may no longer function. FixedConfig may be necessary.
Decompiled source of DoubleJump v1.0.0
MFM.dll
Decompiled 2 weeks agousing System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("MFM")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MFM")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("7533495d-3849-43e3-9e7d-686c9ab9e155")] [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 MFM; [BepInPlugin("com.yourname.jumpmod", "Jump Mod", "1.0.0")] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Expected O, but got Unknown ((BaseUnityPlugin)this).Logger.LogInfo((object)"JumpMod загружен"); Harmony val = new Harmony("com.yourname.jumpmod"); val.PatchAll(); } } [HarmonyPatch(typeof(SlimeController), "OldUpdate")] public class Patch { private static Dictionary<int, bool> doubleJumpUsed = new Dictionary<int, bool>(); [HarmonyPrefix] private static void Prefix(SlimeController __instance) { int playerId = __instance.GetPlayerId(); Player player = PlayerHandler.Get().GetPlayer(playerId); if (__instance.playerPhysics.IsGrounded()) { doubleJumpUsed[playerId] = false; } if (player.jumpButton_PressedThisFrame() && !__instance.playerPhysics.IsGrounded()) { if (!doubleJumpUsed.ContainsKey(playerId)) { doubleJumpUsed[playerId] = false; } if (!doubleJumpUsed[playerId]) { __instance.playerPhysics.Jump(); doubleJumpUsed[playerId] = true; } } } } [HarmonyPatch(typeof(AbilitySpawner), "Awake")] public class AbilityPatch { [HarmonyPostfix] private static void SpawnAb(AbilitySpawner __instance) { FieldInfo field = typeof(AbilitySpawner).GetField("MaxSpawns", BindingFlags.Instance | BindingFlags.NonPublic); field.SetValue(__instance, 5); } }