Decompiled source of ScytheMistlandsMushrooms v1.0.1

ScytheMistlandsMushrooms.dll

Decompiled 13 hours 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("KeyboardLayoutFix")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("KeyboardLayoutFix")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e4c1e059-c9ae-4244-ad0f-0a74b0728930")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ScytheMistlandsMushrooms;

[BepInPlugin("com.LFB.scythemistlandsmushrooms", "ScytheMistlandsMushrooms", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(Plant), "Grow")]
	public class Patch_Grow
	{
		private static void Prefix(Plant __instance)
		{
			GameObject val = __instance.m_grownPrefabs[0];
			if ((Object)(object)val.GetComponent<CapsuleCollider>() == (Object)null)
			{
				val.AddComponent<CapsuleCollider>();
			}
		}
	}

	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000c: Expected O, but got Unknown
		Harmony val = new Harmony("com.LFB.scythemistlandsmushrooms");
		val.PatchAll();
	}
}