using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
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("HardDamageRemover")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HardDamageRemover")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("fc37065d-c32d-4ea3-9f40-f18ee08e19bd")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace HardDamageRemover;
[BepInPlugin("Scrumpie_HardDamageRemover", "Scrumpie's Hard Damage Remover", "0.0.1")]
[BepInProcess("ULTRAKILL.exe")]
[BepInIncompatibility("plonk-PlayableStreetcleaner-1.2.0")]
public class RemoveHardDamage : BaseUnityPlugin
{
internal static ManualLogSource Logger;
private const string modGUID = "Scrumpie_HardDamageRemover";
private const string modName = "Scrumpie's Hard Damage Remover";
private const string modVersion = "0.0.1";
private readonly Harmony harmony = new Harmony("Scrumpie_HardDamageRemover");
private void Awake()
{
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"Plugin Scrumpie_HardDamageRemover is loaded!");
harmony.PatchAll();
}
}
[HarmonyPatch(typeof(NewMovement), "Update")]
internal class InfiniteStamina
{
[HarmonyPostfix]
private static void AlwaysInfiniteStamina(NewMovement __instance)
{
__instance.ResetHardDamage();
}
}