Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of EldenRingStamina v1.0.0
EldenRingStamina.dll
Decompiled a year agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; 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("ValheimMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ValheimMod")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e826fb22-fe6a-4c7c-9aaf-3d66ae7c173a")] [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 EldenRingStamina; [BepInPlugin("animegif.eldenring_stamina", "Elden Ring Stamina", "1.0.0")] [BepInProcess("valheim.exe")] public class EldenRingStamina : BaseUnityPlugin { [HarmonyPatch(typeof(Player), "UseStamina")] public static class EldenRing_UseStamina_Patch { private static void Prefix(ref Player __instance, ref float v) { if (!__instance.IsSensed() && !__instance.IsTargeted()) { v = 0f; } } } private readonly Harmony harmony = new Harmony("animegif.eldenring_stamina"); private void Awake() { harmony.PatchAll(); } }