Please disclose if any significant portion of your mod was created 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 EnhancedStamina v1.0.2
EnhancedStamina.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using EnhancedStamina.Patches; using GameNetcodeStuff; using HarmonyLib; 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("EnhancedStamina")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("EnhancedStamina")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c08007dd-11ba-4816-aedd-0e451654c14c")] [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 EnhancedStamina { [BepInPlugin("FakeEnhancedStamina", "Enhanced Stamina", "1.0.0.0")] public class EnhancedStamina : BaseUnityPlugin { private const string modGUID = "FakeEnhancedStamina"; private const string modName = "Enhanced Stamina"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("FakeEnhancedStamina"); private static EnhancedStamina Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("FakeEnhancedStamina"); mls.LogInfo((object)"Prepare to lose stamina"); harmony.PatchAll(typeof(EnhancedStamina)); harmony.PatchAll(typeof(PlayerControllerBPatch)); } } } namespace EnhancedStamina.Patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void NoStaminaPatch(ref float ___sprintMeter) { ___sprintMeter = 0f; } } }