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.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ValheimMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ValheimMod")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e366d693-d251-4a75-bf37-5ebfb06a3ea5")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace JumpMod;
[BepInPlugin("northernreaches.JumpMod", "Jump Mod", "1.0.0")]
[BepInProcess("valheim.exe")]
public class JumpMod : BaseUnityPlugin
{
[HarmonyPatch(typeof(Character), "Jump")]
private class Jump_Patch
{
private static void Prefix(ref float ___m_jumpForce)
{
Debug.Log((object)$"Jump force: {___m_jumpForce}");
___m_jumpForce = 15f;
Debug.Log((object)$"Modified jump force: {___m_jumpForce}");
}
}
private readonly Harmony harmony = new Harmony("northernreaches.JumpMod");
private void Awake()
{
harmony.PatchAll();
}
}