using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using DinkysJumpMod.Patch;
using GameNetcodeStuff;
using HarmonyLib;
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("DinkysSuperJumpMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DinkysFlyMod")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("498f3868-5798-4057-8b7c-b2b0479c8c90")]
[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 DinkysJumpMod
{
[BepInPlugin("Dink.DinkysJumpMod", "Dinkys Jump Mod", "1.0.0")]
public class DinkysJumpMod : BaseUnityPlugin
{
private const string modGUID = "Dink.DinkysJumpMod";
private const string modName = "Dinkys Jump Mod";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Dink.DinkysJumpMod");
private static DinkysJumpMod Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Dink.DinkysJumpMod");
mls.LogInfo((object)"The mod is awake");
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace DinkysJumpMod.Patch
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void ModifyJumpForce(PlayerControllerB __instance)
{
__instance.jumpForce = 50f;
}
[HarmonyPatch(typeof(PlayerControllerB))]
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void ModifyFallDamage(PlayerControllerB __instance)
{
__instance.takingFallDamage = false;
}
}
}