Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Jump to the Moon v1.1.0
BepInEx/plugins/LC Jump to the Moon.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using LC_Jump_to_the_Moon.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("LC Jump to the Moon")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LC Jump to the Moon")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c60e6806-a416-4728-81de-0911ec7fa82a")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace LC_Jump_to_the_Moon { [BepInPlugin("joebuscus.JumptotheMoon", "Jump to the Moon", "0.0.0.1")] public class JumptotheMoonBase : BaseUnityPlugin { private const string modGUID = "joebuscus.JumptotheMoon"; private const string modName = "Jump to the Moon"; private const string modVersion = "0.0.0.1"; private readonly Harmony harmony = new Harmony("joebuscus.JumptotheMoon"); private static JumptotheMoonBase Instance; internal ManualLogSource mls; public static ConfigEntry<float> ConfigJumpHeight; public static ConfigEntry<bool> ConfigFallDmg; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } ConfigJumpHeight = ((BaseUnityPlugin)this).Config.Bind<float>("General", "Jump Height", 100f, "Sets Jump Height."); ConfigFallDmg = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "Fall Damage", false, "Toggle Fall Damage."); mls = Logger.CreateLogSource("joebuscus.JumptotheMoon"); mls.LogInfo((object)"JUMPTOTHEMOON has awaken"); harmony.PatchAll(typeof(JumptotheMoonBase)); harmony.PatchAll(typeof(PlayerControllerBPatches)); } } } namespace LC_Jump_to_the_Moon.Patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatches { [HarmonyPatch("Start")] [HarmonyPostfix] private static void JumpHigh(ref float ___jumpForce) { ___jumpForce = JumptotheMoonBase.ConfigJumpHeight.Value; } [HarmonyPatch("Update")] [HarmonyPostfix] private static void FallDamge(ref bool ___takingFallDamage) { ___takingFallDamage = JumptotheMoonBase.ConfigFallDmg.Value; } } }