Decompiled source of Max Roaches v1.0.0

plugins/MaxRoaches.dll

Decompiled 4 days ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
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("MaxRoaches")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MaxRoaches")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e9ba2d9c-3a78-4768-b824-a3207cf7cfe5")]
[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 MR;

[BepInPlugin("nachariah.whiteknuckle.maxroaches", "MaxRoaches", "1.0.0")]
public class MaxRoaches : BaseUnityPlugin
{
	[HarmonyPatch(typeof(CL_GameManager), "Start")]
	public class AddRoaches
	{
		public static void Prefix(CL_GameManager __instance)
		{
			Debug.Log((object)"[MaxRoaches] Maxing Roaches");
			CL_GameManager.AddRoaches(999);
		}
	}

	public const string pluginGuid = "nachariah.whiteknuckle.maxroaches";

	public const string pluginName = "MaxRoaches";

	public const string pluginVersion = "1.0.0";

	private void Awake()
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		//IL_001d: Expected O, but got Unknown
		((BaseUnityPlugin)this).Logger.LogInfo((object)"[MaxRoaches] Loaded");
		Harmony val = new Harmony("whiteknuckle.maxroaches");
		val.PatchAll();
	}
}