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 MaxUpgradesMod v1.0.2
plugins/MaxUpgradesMod.dll
Decompiled 5 months agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("MaxUpgradesMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("MaxUpgradesMod")] [assembly: AssemblyTitle("MaxUpgradesMod")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [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 MaxUpgradesMod { [BepInPlugin("MaxUpgradesMod", "MaxUpgradesMod", "1.0.0")] public class MaxUpgradesMod : BaseUnityPlugin { private ManualLogSource mls; private bool upgradesApplied = false; private void Awake() { mls = Logger.CreateLogSource("MaxUpgradesMod"); mls.LogInfo((object)"Plugin MaxUpgradesMod is loaded!"); } private void Update() { if (Input.GetKeyDown((KeyCode)289)) { mls.LogInfo((object)"F8 pressed! Applying max upgrades..."); ApplyMaxUpgrades(); } } private void ApplyMaxUpgrades() { try { if ((Object)(object)PunManager.instance == (Object)null) { mls.LogWarning((object)"PunManager instance not found! Make sure you're in a game."); return; } PlayerAvatar val = SemiFunc.PlayerAvatarLocal(); if ((Object)(object)val == (Object)null) { mls.LogWarning((object)"Local player not found! Make sure you're spawned in the game."); return; } string text = SemiFunc.PlayerGetSteamID(val); mls.LogInfo((object)("Applying upgrades to player: " + text)); PunManager.instance.UpgradePlayerHealth(text, 99); mls.LogInfo((object)"Applied Health upgrade"); PunManager.instance.UpgradePlayerEnergy(text, 99); mls.LogInfo((object)"Applied Stamina upgrade"); PunManager.instance.UpgradePlayerSprintSpeed(text, 99); mls.LogInfo((object)"Applied Sprint Speed upgrade"); PunManager.instance.UpgradePlayerGrabStrength(text, 99); mls.LogInfo((object)"Applied Grab Strength upgrade"); PunManager.instance.UpgradePlayerGrabRange(text, 99); mls.LogInfo((object)"Applied Grab Range upgrade"); PunManager.instance.UpgradePlayerTumbleLaunch(text, 99); mls.LogInfo((object)"Applied Tumble Launch upgrade"); PunManager.instance.UpgradePlayerExtraJump(text, 99); mls.LogInfo((object)"Applied Extra Jump upgrade"); PunManager.instance.UpgradeMapPlayerCount(text, 99); mls.LogInfo((object)"Applied Map Player Count upgrade"); PunManager.instance.UpgradePlayerTumbleWings(text, 99); mls.LogInfo((object)"Applied Tumble Wings upgrade"); PunManager.instance.UpgradePlayerCrouchRest(text, 99); mls.LogInfo((object)"Applied Crouch Rest upgrade"); PunManager.instance.UpgradePlayerThrowStrength(text, 99); mls.LogInfo((object)"Applied Throw Strength upgrade"); PunManager.instance.UpgradePlayerTumbleClimb(text, 99); mls.LogInfo((object)"Applied Tumble Climb upgrade"); PunManager.instance.UpgradeDeathHeadBattery(text, 99); mls.LogInfo((object)"Applied Death Head Battery upgrade"); mls.LogInfo((object)"All upgrades applied successfully! You now have max level (99) on all upgrades!"); upgradesApplied = true; } catch (Exception ex) { mls.LogError((object)("Error applying upgrades: " + ex.Message)); mls.LogError((object)("Stack trace: " + ex.StackTrace)); } } } public static class PluginInfo { public const string PLUGIN_GUID = "MaxUpgradesMod"; public const string PLUGIN_NAME = "MaxUpgradesMod"; public const string PLUGIN_VERSION = "1.0.0"; } }