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 IncreaseShipCap v1.1.1
IncreaseShipCap.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using HarmonyLib; [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 = "")] [assembly: AssemblyCompany("IncreaseShipCap")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("A Lethal Company mod that increases the item cap on the ship.")] [assembly: AssemblyFileVersion("1.1.0.0")] [assembly: AssemblyInformationalVersion("1.1.0")] [assembly: AssemblyProduct("IncreaseShipCap")] [assembly: AssemblyTitle("IncreaseShipCap")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.1.0.0")] [module: UnverifiableCode] namespace IncreaseShipCap; [BepInPlugin("IncreaseShipCap", "IncreaseShipCap", "1.1.0")] public class IncreaseShipCapPlugin : BaseUnityPlugin { private static Harmony _harmony; public static ConfigEntry<int> configMaxItemCount; private void Awake() { //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Expected O, but got Unknown configMaxItemCount = ((BaseUnityPlugin)this).Config.Bind<int>("General", "MaxItemCount", 200, "Number of max items on the ship."); _harmony = new Harmony("IncreaseShipCap"); _harmony.PatchAll(typeof(Patches)); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin IncreaseShipCap is loaded!"); ((BaseUnityPlugin)this).Logger.LogInfo((object)$"Ship Item Cap set to {configMaxItemCount.Value}"); } } public class Patches { [HarmonyPatch(typeof(StartOfRound), "Awake")] private static void Postfix(ref int ___maxShipItemCapacity) { ___maxShipItemCapacity = IncreaseShipCapPlugin.configMaxItemCount.Value - 1; } } public static class PluginInfo { public const string PLUGIN_GUID = "IncreaseShipCap"; public const string PLUGIN_NAME = "IncreaseShipCap"; public const string PLUGIN_VERSION = "1.1.0"; }