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 HitHaste.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("HitHaste")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HitHaste")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("32aaf41d-366e-48c5-9a9c-290818e70815")]
[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 HitHaste
{
[BepInPlugin("Supremo.HitHaste", "Hit Haste", "1.0.0.0")]
public class HitHasteModBase : BaseUnityPlugin
{
private const string modGUID = "Supremo.HitHaste";
private const string modName = "Hit Haste";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Supremo.HitHaste");
private static HitHasteModBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Supremo.HitHaste");
mls.LogInfo((object)"HitHaste Mod started");
harmony.PatchAll(typeof(HitHasteModBase));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace HitHaste.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("DamagePlayer")]
[HarmonyPostfix]
private static void patchUpdate(ref float ___sprintMeter, ref float ___sprintMultiplier)
{
___sprintMeter += 0.2f;
___sprintMultiplier += 2f;
}
}
}