Decompiled source of Start Alone v1.0.2

StartAlone.dll

Decompiled 2 years ago
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 MoreFruits.Patches;
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("MoreFruits")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MoreFruits")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("80e1a552-2495-4217-91ef-5e6bf46276c9")]
[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 MoreFruits
{
	[BepInPlugin("Goober.MoreFruits", "More Fruits", "1.0.0.0")]
	public class MoreFruitsBase : BaseUnityPlugin
	{
		private const string modGUID = "Goober.MoreFruits";

		private const string modName = "More Fruits";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("Goober.MoreFruits");

		private static MoreFruitsBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Goober.MoreFruits");
			mls.LogInfo((object)"More Fruits is active.");
			harmony.PatchAll(typeof(MoreFruitsBase));
			harmony.PatchAll(typeof(LobbyManagerPatch));
		}
	}
}
namespace MoreFruits.Patches
{
	[HarmonyPatch(typeof(LobbyManager))]
	internal class LobbyManagerPatch
	{
		[HarmonyPatch("CheckForTeamSizeIssues")]
		[HarmonyPrefix]
		private static bool noWormsPatch(ref bool __result)
		{
			__result = false;
			return false;
		}
	}
}