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;
using LethalSprint.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("LethalSprint")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalSprint")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("173215f9-c772-458a-a2da-73484e0e4c7c")]
[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 LethalSprint
{
[BepInPlugin("LC.CNH.LethalSprint", "Lethal Sprint", "0.1")]
public class LethalSprint : BaseUnityPlugin
{
private const string MOD_GUID = "LC.CNH.LethalSprint";
private const string MOD_NAME = "Lethal Sprint";
private const string MOD_VERSION = "0.1";
private readonly Harmony harmony = new Harmony("LC.CNH.LethalSprint");
private static LethalSprint INSTANCE;
internal ManualLogSource _logger;
private void Awake()
{
if ((Object)(object)INSTANCE == (Object)null)
{
INSTANCE = new LethalSprint();
}
_logger = Logger.CreateLogSource("LC.CNH.LethalSprint");
_logger.LogInfo((object)"Initialized Lethal Sprint");
harmony.PatchAll(typeof(LethalSprint));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace LethalSprint.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void LethalSprintPatch(ref float ___sprintMeter)
{
___sprintMeter = 1f;
}
}
}