Decompiled source of WLRD DOMINATION v1.0.3

WRLD.DOMINATION.dll

Decompiled 2 weeks ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[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("murderminemurder, murderminer")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("WRLD.DOMINATION")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyInformationalVersion("1.0.3")]
[assembly: AssemblyProduct("WRLD.DOMINATION")]
[assembly: AssemblyTitle("WRLD.DOMINATION")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.3.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 retardcrusher
{
	[BepInPlugin("murderminemurderer.WRLD.DOMINATION", "WRLD.DOMINATION", "1.0.3")]
	[BepInProcess("MageArena.exe")]
	public class euthanizetheretarded : BaseUnityPlugin
	{
		public static ManualLogSource Logger;

		public static bool debug = false;

		public const string guid = "murderminemurderer.WRLD.DOMINATION";

		public static string modsync = "client";

		internal void Awake()
		{
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			Logger = ((BaseUnityPlugin)this).Logger;
			Logger.LogInfo((object)"WRLD.DOMINATION loaded");
			new Harmony("murderminemurderer.WRLD.DOMINATION").PatchAll();
		}
	}
	[HarmonyPatch]
	public class psyops
	{
		[HarmonyPatch(typeof(BootstrapManager), "GetLobbiesList")]
		[HarmonyTranspiler]
		private static IEnumerable<CodeInstruction> killemall1983(IEnumerable<CodeInstruction> instructions)
		{
			List<CodeInstruction> list = new List<CodeInstruction>(instructions);
			bool flag = false;
			for (int i = 0; i < list.Count; i++)
			{
				if ((list[i].opcode == OpCodes.Ldc_I4_0 || list[i].opcode == OpCodes.Ldc_I4_2) && list[i + 1] != null && list[i + 1].opcode == OpCodes.Call && list[i + 2] != null && list[i + 2].opcode == OpCodes.Ldc_I4_S && list[i - 1] != null && list[i - 1].opcode == OpCodes.Callvirt)
				{
					list[i].opcode = OpCodes.Ldc_I4_3;
					flag = true;
					break;
				}
			}
			if (!flag && list.Count >= 8 && list[8].opcode != OpCodes.Ldc_I4_3)
			{
				euthanizetheretarded.Logger.LogWarning((object)"not found find me find me find me find me find me find me find me");
			}
			return list.AsEnumerable();
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "WRLD.DOMINATION";

		public const string PLUGIN_NAME = "WRLD.DOMINATION";

		public const string PLUGIN_VERSION = "1.0.3";
	}
}