using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
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("Lethal Person")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lethal Person")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("0e122c11-bde9-4fdd-be01-b436611cbb2f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Lethal_Person
{
[BepInPlugin("DexEviL.LethalPersonMod", "DexEvil's Lethal Person Mod", "1.0.0.0")]
public class ModBase
{
private const string modGUID = "DexEviL.LethalPersonMod";
private const string modName = "DexEvil's Lethal Person Mod";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("DexEviL.LethalPersonMod");
private static ModBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if (Instance == null)
{
Instance = this;
}
mls = Logger.CreateLogSource("DexEviL.LethalPersonMod");
mls.LogInfo((object)"-----------------Lethal Person Mod by DexEviL has awaken");
harmony.PatchAll(typeof(ModBase));
}
}
}
namespace Lethal_Person.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void infiteSprintPatch(ref float _sprintMeter)
{
_sprintMeter = 15f;
}
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void enchantedJumpForcePatch(ref float _jumpForce)
{
_jumpForce = 20f;
}
}
}