using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("PikuSuperJump")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("HP")] [assembly: AssemblyProduct("PikuSuperJump")] [assembly: AssemblyCopyright("Copyright © HP 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("2f8aec02-9f0a-4d0a-bcc9-bc2c2eb2fd8d")] [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 PikuSuperJump; [BepInPlugin("com.RNCSRR.pikusuperjump", "Piku Super Jump", "1.0.0")] public class Plugin : BaseUnityPlugin { private Harmony _harmony; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown _harmony = new Harmony("com.RNCSRR.pikusuperjump"); _harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Piku Super Jump Mod Loaded!"); } private void OnDestroy() { Harmony harmony = _harmony; if (harmony != null) { harmony.UnpatchSelf(); } } } [HarmonyPatch(typeof(Piku))] public static class PikuPatches { public static bool InfiniteJumpEnabled = true; public static float CustomJumpPower = 12f; [HarmonyPatch("Update")] [HarmonyPostfix] public static void UpdatePostfix(Piku __instance) { //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) if (Input.GetKeyDown((KeyCode)282)) { InfiniteJumpEnabled = !InfiniteJumpEnabled; Debug.Log((object)$"[SuperJump] Infinite Jump: {InfiniteJumpEnabled}"); } if (!InfiniteJumpEnabled) { return; } bool flag = Input.GetKeyDown((KeyCode)273) || Input.GetKeyDown((KeyCode)119); if (!flag) { flag = Input.GetKeyDown((KeyCode)330) || Input.GetKeyDown((KeyCode)331); } if (flag) { ((NPC)__instance).Jump(CustomJumpPower, false, (movementEnum)0); Rigidbody2D component = ((Component)__instance).GetComponent(); if ((Object)(object)component != (Object)null) { component.velocity = new Vector2(component.velocity.x, CustomJumpPower); } } } }