using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using TMPro; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("MoreGnomes")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("MoreGnomes")] [assembly: AssemblyTitle("MoreGnomes")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 MoreGnomes { [BepInPlugin("gnomerul.MoreGnomes", "More Gnomes", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string PluginGuid = "gnomerul.MoreGnomes"; public const string PluginName = "More Gnomes"; public const string PluginVersion = "1.0.0"; public const int MaxLobbySize = 99; internal static ManualLogSource Log; private void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Log = ((BaseUnityPlugin)this).Logger; new Harmony("gnomerul.MoreGnomes").PatchAll(); Log.LogInfo((object)"More Gnomes v1.0.0 loaded."); } } [HarmonyPatch(typeof(Bootstrap), "Start")] internal static class BootstrapStartPatch { private static void Postfix() { Bootstrap.c_maxPlayers = 99; Plugin.Log.LogInfo((object)$"Raised max players to {Bootstrap.c_maxPlayers}. Happy gnoming!"); } } [HarmonyPatch(typeof(MenuController), "Start")] internal static class MenuControllerStartPatch { private static void Postfix(TMP_InputField ___playerCountInput) { if ((Object)(object)___playerCountInput != (Object)null) { ___playerCountInput.characterLimit = 2; } } } }