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 InfiniteStaminaInShop v1.0.0
InfiniteStaminaInShop.dll
Decompiled a year agousing System; 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; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("InfiniteStaminaInShop")] [assembly: AssemblyDescription("A mod for the game R.E.P.O. that enables infinite stamina while players are in the Shop.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("FluxTeam")] [assembly: AssemblyProduct("InfiniteStaminaInShop Mod for Unity Game R.E.P.O.")] [assembly: AssemblyCopyright("Copyright © FluxTeam 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("f5e2a9b6-5d64-4d38-a628-7e345dfc9ae3")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace InfiniteStaminaInShop { [BepInPlugin("FluxTeam.InfiniteStaminaInShop", "Infinite Stamina In Shop", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string ModGUID = "FluxTeam.InfiniteStaminaInShop"; public const string ModName = "Infinite Stamina In Shop"; public const string ModVersion = "1.0.0"; private static Harmony _harmony; internal static ManualLogSource LoggerInstance { get; private set; } private void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown LoggerInstance = ((BaseUnityPlugin)this).Logger; _harmony = new Harmony("FluxTeam.InfiniteStaminaInShop"); _harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Infinite Stamina In Shop v1.0.0 loaded successfully."); } } [HarmonyPatch(typeof(PlayerController))] public static class PlayerStaminaInShopPatch { [HarmonyPatch("Update")] [HarmonyPostfix] public static void RefillStaminaIfInShop(PlayerController __instance) { if ((Object)(object)RunManager.instance != (Object)null && (Object)(object)RunManager.instance.levelCurrent == (Object)(object)RunManager.instance.levelShop) { __instance.EnergyCurrent = __instance.EnergyStart; } } } }