Decompiled source of RtDGardening v0.1.4

RtDGardening.dll

Decompiled 2 months ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using Jotunn.Configs;
using Jotunn.Entities;
using Jotunn.Managers;
using Jotunn.Utils;
using Microsoft.CodeAnalysis;
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("RtDGardening")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RtDGardening")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("67648636-3c3f-4a60-b082-a0ac7b2e8a88")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
[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 rtDGardening
{
	[BepInPlugin("Soloredis.RtDGardening", "RtDGardening", "0.1.4")]
	[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class RtDGardening : BaseUnityPlugin
	{
		public const string PluginGUID = "Soloredis.RtDGardening";

		public const string PluginName = "RtDGardening";

		public const string PluginVersion = "0.1.4";

		public static bool isModded = true;

		private CustomLocalization Localization;

		public AssetBundle MyAssets;

		public ConfigEntry<bool> LoggingEnable;

		public PieceConfig PieceBush1A;

		public PieceConfig PieceBush1B;

		public PieceConfig PieceBush2A;

		public PieceConfig PieceBush2B;

		public PieceConfig PieceBush3A;

		public PieceConfig PieceBush3B;

		public PieceConfig PieceBush4A;

		public PieceConfig PieceBush4B;

		public PieceConfig PieceBush5A;

		public PieceConfig PieceBush5B;

		public PieceConfig PieceBush6A;

		public PieceConfig PieceBush6B;

		public PieceConfig PieceBush7A;

		public PieceConfig PieceBush7B;

		public PieceConfig PieceBush8A;

		public PieceConfig PieceBush8B;

		public PieceConfig PieceBush9A;

		public PieceConfig PieceBush9B;

		public PieceConfig PieceBush10A;

		public PieceConfig PieceBush10B;

		public PieceConfig PieceBush11A;

		public PieceConfig PieceBush11B;

		public PieceConfig PieceBush12A;

		public PieceConfig PieceBush12B;

		public PieceConfig PieceBush13A;

		public PieceConfig PieceBush13B;

		private void Awake()
		{
			LoadBundle();
			CreateConfigs();
			Localizations();
			PrefabManager.OnPrefabsRegistered += AddCultivatorRecipes;
			if (LoggingEnable.Value)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)"Logging is enabled in the config.");
			}
		}

		private void LoadBundle()
		{
			try
			{
				MyAssets = AssetUtils.LoadAssetBundleFromResources("rtdgardens", Assembly.GetExecutingAssembly());
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundles: {arg}");
			}
		}

		private void Localizations()
		{
			Localization = LocalizationManager.Instance.GetLocalization();
			CustomLocalization localization = Localization;
			string text = "English";
			localization.AddTranslation(ref text, new Dictionary<string, string>
			{
				{ "AshLandsBush1P_RtD", "Diseased Plant" },
				{ "AshLandsBush2P_RtD", "Diseased Plant" },
				{ "AshLandsBush3P_RtD", "Cactus" },
				{ "AshLandsBush4P_RtD", "Cactus" },
				{ "AshLandsBush5P_RtD", "Diseased Plant" },
				{ "AshLandsBush6P_RtD", "Diseased Plant" },
				{ "AshLandsBush7P_RtD", "Diseased Plant" },
				{ "AshLandsBush8P_RtD", "Diseased Plant" },
				{ "AshLandsBush9P_RtD", "Diseased Plant" },
				{ "AshLandsBush10P_RtD", "Diseased Plant" },
				{ "AshLandsBush11P_RtD", "Diseased Plant" },
				{ "AshLandsBush12P_RtD", "Diseased Plant" },
				{ "AshLandsBush13P_RtD", "Diseased Plant" },
				{ "AshLandsBush14P_RtD", "Diseased Plant" },
				{ "AshLandsBush15P_RtD", "Diseased Plant" },
				{ "AshLandsBush16P_RtD", "Diseased Plant" },
				{ "AshLandsBush17P_RtD", "Cactus" },
				{ "AshLandsBush18P_RtD", "Cactus" },
				{ "AshLandsBush19P_RtD", "Cactus" },
				{ "AshLandsBush20P_RtD", "Cactus" },
				{ "AshLandsBush21P_RtD", "Cactus" },
				{ "AshLandsBush22P_RtD", "Cactus" },
				{ "AshLandsBush23P_RtD", "Cactus" },
				{ "AshLandsBush24P_RtD", "Cactus" },
				{ "AshLandsBush25P_RtD", "Cactus" },
				{ "AshLandsBush26P_RtD", "Cactus" },
				{ "BlackForestBush1P_RtD", "Flower" },
				{ "BlackForestBush2P_RtD", "Flower" },
				{ "BlackForestBush3P_RtD", "Bush" },
				{ "BlackForestBush4P_RtD", "Bush" },
				{ "BlackForestBush5P_RtD", "Bush" },
				{ "BlackForestBush6P_RtD", "Burdock" },
				{ "BlackForestBush7P_RtD", "Burdock" },
				{ "BlackForestBush8P_RtD", "Burdock" },
				{ "BlackForestBush9P_RtD", "EverGreen Bush" },
				{ "BlackForestBush10P_RtD", "EverGreen Bush" },
				{ "BlackForestBush11P_RtD", "EverGreen Bush" },
				{ "BlackForestBush12P_RtD", "EverGreen Bush" },
				{ "DeepNorthBush1P_RtD", "Wild Flower" },
				{ "DeepNorthBush2P_RtD", "Wild Flower" },
				{ "DeepNorthBush3P_RtD", "Wild Flower" },
				{ "DeepNorthBush4P_RtD", "Wild Flower" },
				{ "DeepNorthBush5P_RtD", "Wild Flower" },
				{ "DeepNorthBush6P_RtD", "Wild Flower" },
				{ "DeepNorthBush7P_RtD", "Wild Flower" },
				{ "DeepNorthBush8P_RtD", "Wild Flower" },
				{ "DeepNorthBush9P_RtD", "Wild Flower" },
				{ "DeepNorthBush10P_RtD", "Wild Flower" },
				{ "MeadowsBush1P_RtD", "Wild Flower" },
				{ "MeadowsBush2P_RtD", "Wild Flower" },
				{ "MeadowsBush3P_RtD", "Wild Flower" },
				{ "MeadowsBush4P_RtD", "Wild Flower" },
				{ "MeadowsBush5P_RtD", "Wild Flower" },
				{ "MeadowsBush01P_RtD", "Plant" },
				{ "MeadowsBush02P_RtD", "Plant" },
				{ "MeadowsBush03P_RtD", "Plant" },
				{ "MeadowsBush04P_RtD", "Plant" },
				{ "MeadowsBush05P_RtD", "Plant" },
				{ "MeadowsBush06P_RtD", "Plant" },
				{ "SmallBushP_RtD", "Bush" },
				{ "MistLandsBush1P_RtD", "Strange Plant" },
				{ "MistLandsBush2P_RtD", "Strange Plant" },
				{ "MistLandsBush3P_RtD", "Strange Plant" },
				{ "MistLandsBush4P_RtD", "Strange Plant" },
				{ "MistLandsBush5P_RtD", "Strange Plant" },
				{ "MistLandsBush6P_RtD", "Wild Flower" },
				{ "MistLandsBush7P_RtD", "Plant" },
				{ "EverGreen1P_RtD", "EverGreen" },
				{ "EverGreen2P_RtD", "EverGreen" },
				{ "EverGreen3P_RtD", "EverGreen" },
				{ "EverGreen4P_RtD", "EverGreen" },
				{ "MountainBush1P_RtD", "Wild Flower" },
				{ "MountainBush2P_RtD", "Wild Flower" },
				{ "MountainBush3P_RtD", "Wild Flower" },
				{ "PlainsBush1P_RtD", "CloudBerry Bush" },
				{ "PlainsBush2P_RtD", "CloudBerry Bush" },
				{ "PlainsBush3P_RtD", "CloudBerry Bush" },
				{ "PlainsBush4P_RtD", "Bamboo" },
				{ "PlainsBush5P_RtD", "Bamboo" },
				{ "PlainsBush6P_RtD", "Bamboo" },
				{ "PlainsBush7P_RtD", "Bamboo" },
				{ "PlainsBush8P_RtD", "Bamboo" },
				{ "DeadIvy1P_RtD", "Dead Ivy" },
				{ "DeadIvy2P_RtD", "Dead Ivy" },
				{ "SwampBush1P_RtD", "Rotting Plant" },
				{ "SwampBush2P_RtD", "Rotting Plant" },
				{ "SwampBush3P_RtD", "Wild Flower" },
				{ "SwampBush4P_RtD", "Plant" },
				{ "SwampBush5P_RtD", "Wild Flower" },
				{ "SwampBush6P_RtD", "Wild Flower" },
				{ "SwampBush7P_RtD", "Wild Flower" },
				{ "SwampBush8P_RtD", "Plant" },
				{ "SwampBush9P_RtD", "Plant" },
				{ "SwampBush10P_RtD", "Plant" },
				{ "SwampBush11P_RtD", "Plant" },
				{ "SwampBush12P_RtD", "Dead Bush" },
				{ "SwampBush13P_RtD", "Dead Bush" },
				{ "SwampBush14P_RtD", "Dead Bush" },
				{ "BlackShroom1P_RtD", "Mushroom" },
				{ "BlackShroom2P_RtD", "Mushroom" },
				{ "BlackShroom3P_RtD", "Mushroom" },
				{ "BlackShroom4P_RtD", "Mushroom" },
				{ "BlueShroom1P_RtD", "Mushroom" },
				{ "BlueShroom2P_RtD", "Mushroom" },
				{ "BlueShroom3P_RtD", "Mushroom" },
				{ "BlueShroom4P_RtD", "Mushroom" },
				{ "GreenShroom1P_RtD", "Mushroom" },
				{ "GreenShroom2P_RtD", "Mushroom" },
				{ "GreenShroom3P_RtD", "Mushroom" },
				{ "GreenShroom4P_RtD", "Mushroom" },
				{ "MeadowsShroom1P_RtD", "Mushroom" },
				{ "MeadowsShroom2P_RtD", "Mushroom" },
				{ "MeadowsShroom3P_RtD", "Mushroom" },
				{ "MeadowsShroom4P_RtD", "Mushroom" },
				{ "MountainShroom1P_RtD", "Mushroom" },
				{ "MountainShroom2P_RtD", "Mushroom" },
				{ "MountainShroom3P_RtD", "Mushroom" },
				{ "MountainShroom4P_RtD", "Mushroom" },
				{ "RedShroom1P_RtD", "Mushroom" },
				{ "RedShroom2P_RtD", "Mushroom" },
				{ "RedShroom3P_RtD", "Mushroom" },
				{ "RedShroom4P_RtD", "Mushroom" },
				{ "YellowShroom1P_RtD", "Mushroom" },
				{ "YellowShroom2P_RtD", "Mushroom" },
				{ "YellowShroom3P_RtD", "Mushroom" },
				{ "YellowShroom4P_RtD", "Mushroom" },
				{ "CloudberryBush_RtD", "Cloudberry Bush" },
				{ "GlowingMushroom_RtD", "Glowing Mushroom" },
				{ "Pickable_Dandelion_RtD", "Dandelion" },
				{ "Pickable_Mushroom_RtD", "Mushroom" },
				{ "Pickable_Mushroom_yellow_RtD", "Yellow Mushroom" },
				{ "Pickable_Thistle_RtD", "Thistle" },
				{ "BlueberryBush_RtD", "Blueberry Bush" },
				{ "Bush01_heath_RtD", "Heath Bush" },
				{ "Bush01_RtD", "Bush" },
				{ "Bush02_en_RtD", "Bush" },
				{ "FirTree_small_dead_RtD", "Dead Fir" },
				{ "RaspberryBush_RtD", "Raspberry Bush" },
				{ "shrub_2_heath_RtD", "Heath Shrub" },
				{ "shrub_2_RtD", "Shrub" },
				{ "Pickable_Flint_RtD", "Pickable Flint" },
				{ "Pickable_Stone_RtD", "Pickable Stone" },
				{ "RedFirSmallPlant_RtD", "Red Fir" }
			});
		}

		public void CreateConfigs()
		{
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Expected O, but got Unknown
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Expected O, but got Unknown
			try
			{
				((BaseUnityPlugin)this).Config.SaveOnConfigSet = true;
				LoggingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Logging", "Enable", false, new ConfigDescription("Enables logging.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = false
				} }));
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
		}

		private void AddCultivatorRecipes()
		{
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0063: Expected O, but got Unknown
			//IL_014a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0153: Expected O, but got Unknown
			//IL_0246: Unknown result type (might be due to invalid IL or missing references)
			//IL_024f: Expected O, but got Unknown
			//IL_0344: Unknown result type (might be due to invalid IL or missing references)
			//IL_034d: Expected O, but got Unknown
			//IL_0442: Unknown result type (might be due to invalid IL or missing references)
			//IL_044b: Expected O, but got Unknown
			//IL_0540: Unknown result type (might be due to invalid IL or missing references)
			//IL_0549: Expected O, but got Unknown
			//IL_063e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0647: Expected O, but got Unknown
			//IL_073c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0745: Expected O, but got Unknown
			//IL_083a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0843: Expected O, but got Unknown
			//IL_0938: Unknown result type (might be due to invalid IL or missing references)
			//IL_0941: Expected O, but got Unknown
			//IL_0a36: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a3f: Expected O, but got Unknown
			//IL_0b34: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b3d: Expected O, but got Unknown
			//IL_0c32: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c3b: Expected O, but got Unknown
			//IL_0d30: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d39: Expected O, but got Unknown
			//IL_0e2e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e37: Expected O, but got Unknown
			//IL_0f2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f35: Expected O, but got Unknown
			//IL_102a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1033: Expected O, but got Unknown
			//IL_1128: Unknown result type (might be due to invalid IL or missing references)
			//IL_1131: Expected O, but got Unknown
			//IL_1226: Unknown result type (might be due to invalid IL or missing references)
			//IL_122f: Expected O, but got Unknown
			//IL_1324: Unknown result type (might be due to invalid IL or missing references)
			//IL_132d: Expected O, but got Unknown
			//IL_1422: Unknown result type (might be due to invalid IL or missing references)
			//IL_142b: Expected O, but got Unknown
			//IL_1520: Unknown result type (might be due to invalid IL or missing references)
			//IL_1529: Expected O, but got Unknown
			//IL_161e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1627: Expected O, but got Unknown
			//IL_171c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1725: Expected O, but got Unknown
			//IL_181a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1823: Expected O, but got Unknown
			//IL_1918: Unknown result type (might be due to invalid IL or missing references)
			//IL_1921: Expected O, but got Unknown
			//IL_1a16: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a1f: Expected O, but got Unknown
			//IL_1b14: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b1d: Expected O, but got Unknown
			//IL_1c12: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c1b: Expected O, but got Unknown
			//IL_1d10: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d19: Expected O, but got Unknown
			//IL_1e0e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1e17: Expected O, but got Unknown
			//IL_1f0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f15: Expected O, but got Unknown
			//IL_200a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2013: Expected O, but got Unknown
			//IL_2108: Unknown result type (might be due to invalid IL or missing references)
			//IL_2111: Expected O, but got Unknown
			//IL_2206: Unknown result type (might be due to invalid IL or missing references)
			//IL_220f: Expected O, but got Unknown
			//IL_2304: Unknown result type (might be due to invalid IL or missing references)
			//IL_230d: Expected O, but got Unknown
			//IL_2402: Unknown result type (might be due to invalid IL or missing references)
			//IL_240b: Expected O, but got Unknown
			//IL_2500: Unknown result type (might be due to invalid IL or missing references)
			//IL_2509: Expected O, but got Unknown
			//IL_25fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_2607: Expected O, but got Unknown
			//IL_26fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_2705: Expected O, but got Unknown
			//IL_27fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_2803: Expected O, but got Unknown
			//IL_28f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_2901: Expected O, but got Unknown
			//IL_29f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_29ff: Expected O, but got Unknown
			//IL_2af4: Unknown result type (might be due to invalid IL or missing references)
			//IL_2afd: Expected O, but got Unknown
			//IL_2bf2: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bfb: Expected O, but got Unknown
			//IL_2cf0: Unknown result type (might be due to invalid IL or missing references)
			//IL_2cf9: Expected O, but got Unknown
			//IL_2dee: Unknown result type (might be due to invalid IL or missing references)
			//IL_2df7: Expected O, but got Unknown
			//IL_2eec: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ef5: Expected O, but got Unknown
			//IL_2fea: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ff3: Expected O, but got Unknown
			//IL_30e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_30f1: Expected O, but got Unknown
			//IL_31e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_31ef: Expected O, but got Unknown
			//IL_32e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_32ed: Expected O, but got Unknown
			//IL_33e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_33eb: Expected O, but got Unknown
			//IL_34e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_34e9: Expected O, but got Unknown
			//IL_35de: Unknown result type (might be due to invalid IL or missing references)
			//IL_35e7: Expected O, but got Unknown
			//IL_36dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_36e5: Expected O, but got Unknown
			//IL_37da: Unknown result type (might be due to invalid IL or missing references)
			//IL_37e3: Expected O, but got Unknown
			//IL_38d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_38e1: Expected O, but got Unknown
			//IL_39d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_39df: Expected O, but got Unknown
			//IL_3ad4: Unknown result type (might be due to invalid IL or missing references)
			//IL_3add: Expected O, but got Unknown
			//IL_3bd2: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bdb: Expected O, but got Unknown
			//IL_3cd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cd9: Expected O, but got Unknown
			//IL_3dce: Unknown result type (might be due to invalid IL or missing references)
			//IL_3dd7: Expected O, but got Unknown
			//IL_3ecc: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ed5: Expected O, but got Unknown
			//IL_3fca: Unknown result type (might be due to invalid IL or missing references)
			//IL_3fd3: Expected O, but got Unknown
			//IL_40c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_40d1: Expected O, but got Unknown
			//IL_41c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_41cf: Expected O, but got Unknown
			//IL_42c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_42cd: Expected O, but got Unknown
			//IL_43c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_43cb: Expected O, but got Unknown
			//IL_44c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_44c9: Expected O, but got Unknown
			//IL_45be: Unknown result type (might be due to invalid IL or missing references)
			//IL_45c7: Expected O, but got Unknown
			//IL_46bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_46c5: Expected O, but got Unknown
			//IL_47ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_47c3: Expected O, but got Unknown
			//IL_48b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_48c1: Expected O, but got Unknown
			//IL_49b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_49bf: Expected O, but got Unknown
			//IL_4ab4: Unknown result type (might be due to invalid IL or missing references)
			//IL_4abd: Expected O, but got Unknown
			//IL_4bb2: Unknown result type (might be due to invalid IL or missing references)
			//IL_4bbb: Expected O, but got Unknown
			//IL_4cb0: Unknown result type (might be due to invalid IL or missing references)
			//IL_4cb9: Expected O, but got Unknown
			//IL_4dae: Unknown result type (might be due to invalid IL or missing references)
			//IL_4db7: Expected O, but got Unknown
			//IL_4eac: Unknown result type (might be due to invalid IL or missing references)
			//IL_4eb5: Expected O, but got Unknown
			//IL_4faa: Unknown result type (might be due to invalid IL or missing references)
			//IL_4fb3: Expected O, but got Unknown
			//IL_50a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_50b1: Expected O, but got Unknown
			//IL_51a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_51af: Expected O, but got Unknown
			//IL_52a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_52ad: Expected O, but got Unknown
			//IL_53a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_53ab: Expected O, but got Unknown
			//IL_54a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_54a9: Expected O, but got Unknown
			//IL_559e: Unknown result type (might be due to invalid IL or missing references)
			//IL_55a7: Expected O, but got Unknown
			//IL_569c: Unknown result type (might be due to invalid IL or missing references)
			//IL_56a5: Expected O, but got Unknown
			//IL_579a: Unknown result type (might be due to invalid IL or missing references)
			//IL_57a3: Expected O, but got Unknown
			//IL_5898: Unknown result type (might be due to invalid IL or missing references)
			//IL_58a1: Expected O, but got Unknown
			//IL_5996: Unknown result type (might be due to invalid IL or missing references)
			//IL_599f: Expected O, but got Unknown
			//IL_5a94: Unknown result type (might be due to invalid IL or missing references)
			//IL_5a9d: Expected O, but got Unknown
			//IL_5b92: Unknown result type (might be due to invalid IL or missing references)
			//IL_5b9b: Expected O, but got Unknown
			//IL_5c90: Unknown result type (might be due to invalid IL or missing references)
			//IL_5c99: Expected O, but got Unknown
			//IL_5d8e: Unknown result type (might be due to invalid IL or missing references)
			//IL_5d97: Expected O, but got Unknown
			//IL_5e8c: Unknown result type (might be due to invalid IL or missing references)
			//IL_5e95: Expected O, but got Unknown
			//IL_5f8a: Unknown result type (might be due to invalid IL or missing references)
			//IL_5f93: Expected O, but got Unknown
			//IL_6088: Unknown result type (might be due to invalid IL or missing references)
			//IL_6091: Expected O, but got Unknown
			//IL_6186: Unknown result type (might be due to invalid IL or missing references)
			//IL_618f: Expected O, but got Unknown
			//IL_6284: Unknown result type (might be due to invalid IL or missing references)
			//IL_628d: Expected O, but got Unknown
			//IL_6382: Unknown result type (might be due to invalid IL or missing references)
			//IL_638b: Expected O, but got Unknown
			//IL_6480: Unknown result type (might be due to invalid IL or missing references)
			//IL_6489: Expected O, but got Unknown
			//IL_657e: Unknown result type (might be due to invalid IL or missing references)
			//IL_6587: Expected O, but got Unknown
			//IL_667c: Unknown result type (might be due to invalid IL or missing references)
			//IL_6685: Expected O, but got Unknown
			//IL_677a: Unknown result type (might be due to invalid IL or missing references)
			//IL_6783: Expected O, but got Unknown
			//IL_6878: Unknown result type (might be due to invalid IL or missing references)
			//IL_6881: Expected O, but got Unknown
			//IL_6976: Unknown result type (might be due to invalid IL or missing references)
			//IL_697f: Expected O, but got Unknown
			//IL_6a74: Unknown result type (might be due to invalid IL or missing references)
			//IL_6a7d: Expected O, but got Unknown
			//IL_6b72: Unknown result type (might be due to invalid IL or missing references)
			//IL_6b7b: Expected O, but got Unknown
			//IL_6c70: Unknown result type (might be due to invalid IL or missing references)
			//IL_6c79: Expected O, but got Unknown
			//IL_6d6e: Unknown result type (might be due to invalid IL or missing references)
			//IL_6d77: Expected O, but got Unknown
			//IL_6e6c: Unknown result type (might be due to invalid IL or missing references)
			//IL_6e75: Expected O, but got Unknown
			//IL_6f6a: Unknown result type (might be due to invalid IL or missing references)
			//IL_6f73: Expected O, but got Unknown
			//IL_7068: Unknown result type (might be due to invalid IL or missing references)
			//IL_7071: Expected O, but got Unknown
			//IL_7166: Unknown result type (might be due to invalid IL or missing references)
			//IL_716f: Expected O, but got Unknown
			//IL_7264: Unknown result type (might be due to invalid IL or missing references)
			//IL_726d: Expected O, but got Unknown
			//IL_7362: Unknown result type (might be due to invalid IL or missing references)
			//IL_736b: Expected O, but got Unknown
			//IL_7460: Unknown result type (might be due to invalid IL or missing references)
			//IL_7469: Expected O, but got Unknown
			//IL_755e: Unknown result type (might be due to invalid IL or missing references)
			//IL_7567: Expected O, but got Unknown
			//IL_765c: Unknown result type (might be due to invalid IL or missing references)
			//IL_7665: Expected O, but got Unknown
			//IL_775a: Unknown result type (might be due to invalid IL or missing references)
			//IL_7763: Expected O, but got Unknown
			//IL_7858: Unknown result type (might be due to invalid IL or missing references)
			//IL_7861: Expected O, but got Unknown
			//IL_7956: Unknown result type (might be due to invalid IL or missing references)
			//IL_795f: Expected O, but got Unknown
			//IL_7a54: Unknown result type (might be due to invalid IL or missing references)
			//IL_7a5d: Expected O, but got Unknown
			//IL_7b52: Unknown result type (might be due to invalid IL or missing references)
			//IL_7b5b: Expected O, but got Unknown
			//IL_7c50: Unknown result type (might be due to invalid IL or missing references)
			//IL_7c59: Expected O, but got Unknown
			try
			{
				GameObject val = MyAssets.LoadAsset<GameObject>("AshLandsBush1P_RtD");
				if ((Object)(object)val != (Object)null)
				{
					GameObject prefab = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val2 = ((!Object.op_Implicit((Object)(object)prefab)) ? PieceBush1B : PieceBush1A);
					CustomPiece val3 = new CustomPiece(val, true, val2);
					PieceManager.Instance.AddPiece(val3);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val4 = MyAssets.LoadAsset<GameObject>("AshLandsBush2P_RtD");
				if ((Object)(object)val4 != (Object)null)
				{
					GameObject prefab2 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val5 = ((!Object.op_Implicit((Object)(object)prefab2)) ? PieceBush1B : PieceBush1A);
					CustomPiece val6 = new CustomPiece(val4, true, val5);
					PieceManager.Instance.AddPiece(val6);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val4)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val4)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val7 = MyAssets.LoadAsset<GameObject>("AshLandsBush3P_RtD");
				if ((Object)(object)val7 != (Object)null)
				{
					GameObject prefab3 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val8 = ((!Object.op_Implicit((Object)(object)prefab3)) ? PieceBush6B : PieceBush6A);
					CustomPiece val9 = new CustomPiece(val7, true, val8);
					PieceManager.Instance.AddPiece(val9);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val7)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val7)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val10 = MyAssets.LoadAsset<GameObject>("AshLandsBush4P_RtD");
				if ((Object)(object)val10 != (Object)null)
				{
					GameObject prefab4 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val11 = ((!Object.op_Implicit((Object)(object)prefab4)) ? PieceBush6B : PieceBush6A);
					CustomPiece val12 = new CustomPiece(val10, true, val11);
					PieceManager.Instance.AddPiece(val12);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val10)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val10)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val13 = MyAssets.LoadAsset<GameObject>("AshLandsBush5P_RtD");
				if ((Object)(object)val13 != (Object)null)
				{
					GameObject prefab5 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val14 = ((!Object.op_Implicit((Object)(object)prefab5)) ? PieceBush1B : PieceBush1A);
					CustomPiece val15 = new CustomPiece(val13, true, val14);
					PieceManager.Instance.AddPiece(val15);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val13)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val13)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val16 = MyAssets.LoadAsset<GameObject>("AshLandsBush6P_RtD");
				if ((Object)(object)val16 != (Object)null)
				{
					GameObject prefab6 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val17 = ((!Object.op_Implicit((Object)(object)prefab6)) ? PieceBush1B : PieceBush1A);
					CustomPiece val18 = new CustomPiece(val16, true, val17);
					PieceManager.Instance.AddPiece(val18);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val16)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val16)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val19 = MyAssets.LoadAsset<GameObject>("AshLandsBush7P_RtD");
				if ((Object)(object)val19 != (Object)null)
				{
					GameObject prefab7 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val20 = ((!Object.op_Implicit((Object)(object)prefab7)) ? PieceBush1B : PieceBush1A);
					CustomPiece val21 = new CustomPiece(val19, true, val20);
					PieceManager.Instance.AddPiece(val21);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val19)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val19)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val22 = MyAssets.LoadAsset<GameObject>("AshLandsBush8P_RtD");
				if ((Object)(object)val22 != (Object)null)
				{
					GameObject prefab8 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val23 = ((!Object.op_Implicit((Object)(object)prefab8)) ? PieceBush1B : PieceBush1A);
					CustomPiece val24 = new CustomPiece(val22, true, val23);
					PieceManager.Instance.AddPiece(val24);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val22)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val22)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val25 = MyAssets.LoadAsset<GameObject>("AshLandsBush9P_RtD");
				if ((Object)(object)val25 != (Object)null)
				{
					GameObject prefab9 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val26 = ((!Object.op_Implicit((Object)(object)prefab9)) ? PieceBush1B : PieceBush1A);
					CustomPiece val27 = new CustomPiece(val25, true, val26);
					PieceManager.Instance.AddPiece(val27);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val25)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val25)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val28 = MyAssets.LoadAsset<GameObject>("AshLandsBush10P_RtD");
				if ((Object)(object)val28 != (Object)null)
				{
					GameObject prefab10 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val29 = ((!Object.op_Implicit((Object)(object)prefab10)) ? PieceBush1B : PieceBush1A);
					CustomPiece val30 = new CustomPiece(val28, true, val29);
					PieceManager.Instance.AddPiece(val30);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val28)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val28)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val31 = MyAssets.LoadAsset<GameObject>("AshLandsBush11P_RtD");
				if ((Object)(object)val31 != (Object)null)
				{
					GameObject prefab11 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val32 = ((!Object.op_Implicit((Object)(object)prefab11)) ? PieceBush1B : PieceBush1A);
					CustomPiece val33 = new CustomPiece(val31, true, val32);
					PieceManager.Instance.AddPiece(val33);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val31)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val31)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val34 = MyAssets.LoadAsset<GameObject>("AshLandsBush12P_RtD");
				if ((Object)(object)val34 != (Object)null)
				{
					GameObject prefab12 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val35 = ((!Object.op_Implicit((Object)(object)prefab12)) ? PieceBush1B : PieceBush1A);
					CustomPiece val36 = new CustomPiece(val34, true, val35);
					PieceManager.Instance.AddPiece(val36);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val34)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val34)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val37 = MyAssets.LoadAsset<GameObject>("AshLandsBush13P_RtD");
				if ((Object)(object)val37 != (Object)null)
				{
					GameObject prefab13 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val38 = ((!Object.op_Implicit((Object)(object)prefab13)) ? PieceBush1B : PieceBush1A);
					CustomPiece val39 = new CustomPiece(val37, true, val38);
					PieceManager.Instance.AddPiece(val39);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val37)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val37)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val40 = MyAssets.LoadAsset<GameObject>("AshLandsBush14P_RtD");
				if ((Object)(object)val40 != (Object)null)
				{
					GameObject prefab14 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val41 = ((!Object.op_Implicit((Object)(object)prefab14)) ? PieceBush1B : PieceBush1A);
					CustomPiece val42 = new CustomPiece(val40, true, val41);
					PieceManager.Instance.AddPiece(val42);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val40)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val40)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val43 = MyAssets.LoadAsset<GameObject>("AshLandsBush15P_RtD");
				if ((Object)(object)val43 != (Object)null)
				{
					GameObject prefab15 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val44 = ((!Object.op_Implicit((Object)(object)prefab15)) ? PieceBush1B : PieceBush1A);
					CustomPiece val45 = new CustomPiece(val43, true, val44);
					PieceManager.Instance.AddPiece(val45);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val43)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val43)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val46 = MyAssets.LoadAsset<GameObject>("AshLandsBush16P_RtD");
				if ((Object)(object)val46 != (Object)null)
				{
					GameObject prefab16 = Cache.GetPrefab<GameObject>("PlantSeedAshLands_RtD");
					PieceConfig val47 = ((!Object.op_Implicit((Object)(object)prefab16)) ? PieceBush1B : PieceBush1A);
					CustomPiece val48 = new CustomPiece(val46, true, val47);
					PieceManager.Instance.AddPiece(val48);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val46)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val46)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val49 = MyAssets.LoadAsset<GameObject>("AshLandsBush17P_RtD");
				if ((Object)(object)val49 != (Object)null)
				{
					GameObject prefab17 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val50 = ((!Object.op_Implicit((Object)(object)prefab17)) ? PieceBush6B : PieceBush6A);
					CustomPiece val51 = new CustomPiece(val49, true, val50);
					PieceManager.Instance.AddPiece(val51);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val49)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val49)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val52 = MyAssets.LoadAsset<GameObject>("AshLandsBush18P_RtD");
				if ((Object)(object)val52 != (Object)null)
				{
					GameObject prefab18 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val53 = ((!Object.op_Implicit((Object)(object)prefab18)) ? PieceBush6B : PieceBush6A);
					CustomPiece val54 = new CustomPiece(val52, true, val53);
					PieceManager.Instance.AddPiece(val54);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val52)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val52)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val55 = MyAssets.LoadAsset<GameObject>("AshLandsBush19P_RtD");
				if ((Object)(object)val55 != (Object)null)
				{
					GameObject prefab19 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val56 = ((!Object.op_Implicit((Object)(object)prefab19)) ? PieceBush6B : PieceBush6A);
					CustomPiece val57 = new CustomPiece(val55, true, val56);
					PieceManager.Instance.AddPiece(val57);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val55)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val55)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val58 = MyAssets.LoadAsset<GameObject>("AshLandsBush20P_RtD");
				if ((Object)(object)val58 != (Object)null)
				{
					GameObject prefab20 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val59 = ((!Object.op_Implicit((Object)(object)prefab20)) ? PieceBush6B : PieceBush6A);
					CustomPiece val60 = new CustomPiece(val58, true, val59);
					PieceManager.Instance.AddPiece(val60);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val58)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val58)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val61 = MyAssets.LoadAsset<GameObject>("AshLandsBush21P_RtD");
				if ((Object)(object)val61 != (Object)null)
				{
					GameObject prefab21 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val62 = ((!Object.op_Implicit((Object)(object)prefab21)) ? PieceBush6B : PieceBush6A);
					CustomPiece val63 = new CustomPiece(val61, true, val62);
					PieceManager.Instance.AddPiece(val63);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val61)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val61)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val64 = MyAssets.LoadAsset<GameObject>("AshLandsBush22P_RtD");
				if ((Object)(object)val64 != (Object)null)
				{
					GameObject prefab22 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val65 = ((!Object.op_Implicit((Object)(object)prefab22)) ? PieceBush6B : PieceBush6A);
					CustomPiece val66 = new CustomPiece(val64, true, val65);
					PieceManager.Instance.AddPiece(val66);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val64)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val64)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val67 = MyAssets.LoadAsset<GameObject>("AshLandsBush23P_RtD");
				if ((Object)(object)val67 != (Object)null)
				{
					GameObject prefab23 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val68 = ((!Object.op_Implicit((Object)(object)prefab23)) ? PieceBush6B : PieceBush6A);
					CustomPiece val69 = new CustomPiece(val67, true, val68);
					PieceManager.Instance.AddPiece(val69);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val67)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val67)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val70 = MyAssets.LoadAsset<GameObject>("AshLandsBush24P_RtD");
				if ((Object)(object)val70 != (Object)null)
				{
					GameObject prefab24 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val71 = ((!Object.op_Implicit((Object)(object)prefab24)) ? PieceBush6B : PieceBush6A);
					CustomPiece val72 = new CustomPiece(val70, true, val71);
					PieceManager.Instance.AddPiece(val72);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val70)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val70)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val73 = MyAssets.LoadAsset<GameObject>("AshLandsBush25P_RtD");
				if ((Object)(object)val73 != (Object)null)
				{
					GameObject prefab25 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val74 = ((!Object.op_Implicit((Object)(object)prefab25)) ? PieceBush6B : PieceBush6A);
					CustomPiece val75 = new CustomPiece(val73, true, val74);
					PieceManager.Instance.AddPiece(val75);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val73)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val73)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val76 = MyAssets.LoadAsset<GameObject>("AshLandsBush26P_RtD");
				if ((Object)(object)val76 != (Object)null)
				{
					GameObject prefab26 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val77 = ((!Object.op_Implicit((Object)(object)prefab26)) ? PieceBush6B : PieceBush6A);
					CustomPiece val78 = new CustomPiece(val76, true, val77);
					PieceManager.Instance.AddPiece(val78);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val76)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val76)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val79 = MyAssets.LoadAsset<GameObject>("BlackForestBush1P_RtD");
				if ((Object)(object)val79 != (Object)null)
				{
					GameObject prefab27 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val80 = ((!Object.op_Implicit((Object)(object)prefab27)) ? PieceBush2B : PieceBush2A);
					CustomPiece val81 = new CustomPiece(val79, true, val80);
					PieceManager.Instance.AddPiece(val81);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val79)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val79)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val82 = MyAssets.LoadAsset<GameObject>("BlackForestBush2P_RtD");
				if ((Object)(object)val82 != (Object)null)
				{
					GameObject prefab28 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val83 = ((!Object.op_Implicit((Object)(object)prefab28)) ? PieceBush2B : PieceBush2A);
					CustomPiece val84 = new CustomPiece(val82, true, val83);
					PieceManager.Instance.AddPiece(val84);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val82)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val82)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val85 = MyAssets.LoadAsset<GameObject>("BlackForestBush3P_RtD");
				if ((Object)(object)val85 != (Object)null)
				{
					GameObject prefab29 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val86 = ((!Object.op_Implicit((Object)(object)prefab29)) ? PieceBush2B : PieceBush2A);
					CustomPiece val87 = new CustomPiece(val85, true, val86);
					PieceManager.Instance.AddPiece(val87);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val85)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val85)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val88 = MyAssets.LoadAsset<GameObject>("BlackForestBush4P_RtD");
				if ((Object)(object)val88 != (Object)null)
				{
					GameObject prefab30 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val89 = ((!Object.op_Implicit((Object)(object)prefab30)) ? PieceBush2B : PieceBush2A);
					CustomPiece val90 = new CustomPiece(val88, true, val89);
					PieceManager.Instance.AddPiece(val90);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val88)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val88)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val91 = MyAssets.LoadAsset<GameObject>("BlackForestBush5P_RtD");
				if ((Object)(object)val91 != (Object)null)
				{
					GameObject prefab31 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val92 = ((!Object.op_Implicit((Object)(object)prefab31)) ? PieceBush2B : PieceBush2A);
					CustomPiece val93 = new CustomPiece(val91, true, val92);
					PieceManager.Instance.AddPiece(val93);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val91)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val91)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val94 = MyAssets.LoadAsset<GameObject>("BlackForestBush6P_RtD");
				if ((Object)(object)val94 != (Object)null)
				{
					GameObject prefab32 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val95 = ((!Object.op_Implicit((Object)(object)prefab32)) ? PieceBush2B : PieceBush2A);
					CustomPiece val96 = new CustomPiece(val94, true, val95);
					PieceManager.Instance.AddPiece(val96);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val94)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val94)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val97 = MyAssets.LoadAsset<GameObject>("BlackForestBush7P_RtD");
				if ((Object)(object)val97 != (Object)null)
				{
					GameObject prefab33 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val98 = ((!Object.op_Implicit((Object)(object)prefab33)) ? PieceBush2B : PieceBush2A);
					CustomPiece val99 = new CustomPiece(val97, true, val98);
					PieceManager.Instance.AddPiece(val99);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val97)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val97)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val100 = MyAssets.LoadAsset<GameObject>("BlackForestBush8P_RtD");
				if ((Object)(object)val100 != (Object)null)
				{
					GameObject prefab34 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val101 = ((!Object.op_Implicit((Object)(object)prefab34)) ? PieceBush2B : PieceBush2A);
					CustomPiece val102 = new CustomPiece(val100, true, val101);
					PieceManager.Instance.AddPiece(val102);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val100)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val100)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val103 = MyAssets.LoadAsset<GameObject>("BlackForestBush9P_RtD");
				if ((Object)(object)val103 != (Object)null)
				{
					GameObject prefab35 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val104 = ((!Object.op_Implicit((Object)(object)prefab35)) ? PieceBush2B : PieceBush2A);
					CustomPiece val105 = new CustomPiece(val103, true, val104);
					PieceManager.Instance.AddPiece(val105);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val103)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val103)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val106 = MyAssets.LoadAsset<GameObject>("BlackForestBush10P_RtD");
				if ((Object)(object)val106 != (Object)null)
				{
					GameObject prefab36 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val107 = ((!Object.op_Implicit((Object)(object)prefab36)) ? PieceBush2B : PieceBush2A);
					CustomPiece val108 = new CustomPiece(val106, true, val107);
					PieceManager.Instance.AddPiece(val108);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val106)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val106)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val109 = MyAssets.LoadAsset<GameObject>("BlackForestBush11P_RtD");
				if ((Object)(object)val109 != (Object)null)
				{
					GameObject prefab37 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val110 = ((!Object.op_Implicit((Object)(object)prefab37)) ? PieceBush2B : PieceBush2A);
					CustomPiece val111 = new CustomPiece(val109, true, val110);
					PieceManager.Instance.AddPiece(val111);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val109)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val109)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val112 = MyAssets.LoadAsset<GameObject>("BlackForestBush12P_RtD");
				if ((Object)(object)val112 != (Object)null)
				{
					GameObject prefab38 = Cache.GetPrefab<GameObject>("PlantSeedBlackForest_RtD");
					PieceConfig val113 = ((!Object.op_Implicit((Object)(object)prefab38)) ? PieceBush2B : PieceBush2A);
					CustomPiece val114 = new CustomPiece(val112, true, val113);
					PieceManager.Instance.AddPiece(val114);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val112)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val112)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val115 = MyAssets.LoadAsset<GameObject>("DeepNorthBush1P_RtD");
				if ((Object)(object)val115 != (Object)null)
				{
					GameObject prefab39 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val116 = ((!Object.op_Implicit((Object)(object)prefab39)) ? PieceBush3B : PieceBush3A);
					CustomPiece val117 = new CustomPiece(val115, true, val116);
					PieceManager.Instance.AddPiece(val117);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val115)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val115)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val118 = MyAssets.LoadAsset<GameObject>("DeepNorthBush2P_RtD");
				if ((Object)(object)val118 != (Object)null)
				{
					GameObject prefab40 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val119 = ((!Object.op_Implicit((Object)(object)prefab40)) ? PieceBush3B : PieceBush3A);
					CustomPiece val120 = new CustomPiece(val118, true, val119);
					PieceManager.Instance.AddPiece(val120);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val118)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val118)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val121 = MyAssets.LoadAsset<GameObject>("DeepNorthBush3P_RtD");
				if ((Object)(object)val121 != (Object)null)
				{
					GameObject prefab41 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val122 = ((!Object.op_Implicit((Object)(object)prefab41)) ? PieceBush3B : PieceBush3A);
					CustomPiece val123 = new CustomPiece(val121, true, val122);
					PieceManager.Instance.AddPiece(val123);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val121)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val121)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val124 = MyAssets.LoadAsset<GameObject>("DeepNorthBush4P_RtD");
				if ((Object)(object)val124 != (Object)null)
				{
					GameObject prefab42 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val125 = ((!Object.op_Implicit((Object)(object)prefab42)) ? PieceBush3B : PieceBush3A);
					CustomPiece val126 = new CustomPiece(val124, true, val125);
					PieceManager.Instance.AddPiece(val126);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val124)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val124)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val127 = MyAssets.LoadAsset<GameObject>("DeepNorthBush5P_RtD");
				if ((Object)(object)val127 != (Object)null)
				{
					GameObject prefab43 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val128 = ((!Object.op_Implicit((Object)(object)prefab43)) ? PieceBush3B : PieceBush3A);
					CustomPiece val129 = new CustomPiece(val127, true, val128);
					PieceManager.Instance.AddPiece(val129);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val127)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val127)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val130 = MyAssets.LoadAsset<GameObject>("DeepNorthBush6P_RtD");
				if ((Object)(object)val130 != (Object)null)
				{
					GameObject prefab44 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val131 = ((!Object.op_Implicit((Object)(object)prefab44)) ? PieceBush3B : PieceBush3A);
					CustomPiece val132 = new CustomPiece(val130, true, val131);
					PieceManager.Instance.AddPiece(val132);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val130)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val130)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val133 = MyAssets.LoadAsset<GameObject>("DeepNorthBush7P_RtD");
				if ((Object)(object)val133 != (Object)null)
				{
					GameObject prefab45 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val134 = ((!Object.op_Implicit((Object)(object)prefab45)) ? PieceBush3B : PieceBush3A);
					CustomPiece val135 = new CustomPiece(val133, true, val134);
					PieceManager.Instance.AddPiece(val135);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val133)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val133)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val136 = MyAssets.LoadAsset<GameObject>("DeepNorthBush8P_RtD");
				if ((Object)(object)val136 != (Object)null)
				{
					GameObject prefab46 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val137 = ((!Object.op_Implicit((Object)(object)prefab46)) ? PieceBush3B : PieceBush3A);
					CustomPiece val138 = new CustomPiece(val136, true, val137);
					PieceManager.Instance.AddPiece(val138);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val136)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val136)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val139 = MyAssets.LoadAsset<GameObject>("DeepNorthBush9P_RtD");
				if ((Object)(object)val139 != (Object)null)
				{
					GameObject prefab47 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val140 = ((!Object.op_Implicit((Object)(object)prefab47)) ? PieceBush3B : PieceBush3A);
					CustomPiece val141 = new CustomPiece(val139, true, val140);
					PieceManager.Instance.AddPiece(val141);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val139)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val139)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val142 = MyAssets.LoadAsset<GameObject>("DeepNorthBush10P_RtD");
				if ((Object)(object)val142 != (Object)null)
				{
					GameObject prefab48 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val143 = ((!Object.op_Implicit((Object)(object)prefab48)) ? PieceBush3B : PieceBush3A);
					CustomPiece val144 = new CustomPiece(val142, true, val143);
					PieceManager.Instance.AddPiece(val144);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val142)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val142)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val145 = MyAssets.LoadAsset<GameObject>("MeadowsBush01P_RtD");
				if ((Object)(object)val145 != (Object)null)
				{
					GameObject prefab49 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val146 = ((!Object.op_Implicit((Object)(object)prefab49)) ? PieceBush3B : PieceBush3A);
					CustomPiece val147 = new CustomPiece(val145, true, val146);
					PieceManager.Instance.AddPiece(val147);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val145)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val145)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val148 = MyAssets.LoadAsset<GameObject>("MeadowsBush1P_RtD");
				if ((Object)(object)val148 != (Object)null)
				{
					GameObject prefab50 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val149 = ((!Object.op_Implicit((Object)(object)prefab50)) ? PieceBush3B : PieceBush3A);
					CustomPiece val150 = new CustomPiece(val148, true, val149);
					PieceManager.Instance.AddPiece(val150);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val148)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val148)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val151 = MyAssets.LoadAsset<GameObject>("MeadowsBush02P_RtD");
				if ((Object)(object)val151 != (Object)null)
				{
					GameObject prefab51 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val152 = ((!Object.op_Implicit((Object)(object)prefab51)) ? PieceBush3B : PieceBush3A);
					CustomPiece val153 = new CustomPiece(val151, true, val152);
					PieceManager.Instance.AddPiece(val153);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val151)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val151)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val154 = MyAssets.LoadAsset<GameObject>("MeadowsBush2P_RtD");
				if ((Object)(object)val154 != (Object)null)
				{
					GameObject prefab52 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val155 = ((!Object.op_Implicit((Object)(object)prefab52)) ? PieceBush3B : PieceBush3A);
					CustomPiece val156 = new CustomPiece(val154, true, val155);
					PieceManager.Instance.AddPiece(val156);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val154)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val154)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val157 = MyAssets.LoadAsset<GameObject>("MeadowsBush03P_RtD");
				if ((Object)(object)val157 != (Object)null)
				{
					GameObject prefab53 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val158 = ((!Object.op_Implicit((Object)(object)prefab53)) ? PieceBush3B : PieceBush3A);
					CustomPiece val159 = new CustomPiece(val157, true, val158);
					PieceManager.Instance.AddPiece(val159);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val157)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val157)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val160 = MyAssets.LoadAsset<GameObject>("MeadowsBush3P_RtD");
				if ((Object)(object)val160 != (Object)null)
				{
					GameObject prefab54 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val161 = ((!Object.op_Implicit((Object)(object)prefab54)) ? PieceBush3B : PieceBush3A);
					CustomPiece val162 = new CustomPiece(val160, true, val161);
					PieceManager.Instance.AddPiece(val162);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val160)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val160)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val163 = MyAssets.LoadAsset<GameObject>("MeadowsBush04P_RtD");
				if ((Object)(object)val163 != (Object)null)
				{
					GameObject prefab55 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val164 = ((!Object.op_Implicit((Object)(object)prefab55)) ? PieceBush3B : PieceBush3A);
					CustomPiece val165 = new CustomPiece(val163, true, val164);
					PieceManager.Instance.AddPiece(val165);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val163)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val163)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val166 = MyAssets.LoadAsset<GameObject>("MeadowsBush4P_RtD");
				if ((Object)(object)val166 != (Object)null)
				{
					GameObject prefab56 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val167 = ((!Object.op_Implicit((Object)(object)prefab56)) ? PieceBush3B : PieceBush3A);
					CustomPiece val168 = new CustomPiece(val166, true, val167);
					PieceManager.Instance.AddPiece(val168);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val166)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val166)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val169 = MyAssets.LoadAsset<GameObject>("MeadowsBush05P_RtD");
				if ((Object)(object)val169 != (Object)null)
				{
					GameObject prefab57 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val170 = ((!Object.op_Implicit((Object)(object)prefab57)) ? PieceBush3B : PieceBush3A);
					CustomPiece val171 = new CustomPiece(val169, true, val170);
					PieceManager.Instance.AddPiece(val171);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val169)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val169)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val172 = MyAssets.LoadAsset<GameObject>("MeadowsBush5P_RtD");
				if ((Object)(object)val172 != (Object)null)
				{
					GameObject prefab58 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val173 = ((!Object.op_Implicit((Object)(object)prefab58)) ? PieceBush3B : PieceBush3A);
					CustomPiece val174 = new CustomPiece(val172, true, val173);
					PieceManager.Instance.AddPiece(val174);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val172)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val172)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val175 = MyAssets.LoadAsset<GameObject>("MeadowsBush06P_RtD");
				if ((Object)(object)val175 != (Object)null)
				{
					GameObject prefab59 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val176 = ((!Object.op_Implicit((Object)(object)prefab59)) ? PieceBush3B : PieceBush3A);
					CustomPiece val177 = new CustomPiece(val175, true, val176);
					PieceManager.Instance.AddPiece(val177);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val175)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val175)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val178 = MyAssets.LoadAsset<GameObject>("SmallBushP_RtD");
				if ((Object)(object)val178 != (Object)null)
				{
					GameObject prefab60 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val179 = ((!Object.op_Implicit((Object)(object)prefab60)) ? PieceBush3B : PieceBush3A);
					CustomPiece val180 = new CustomPiece(val178, true, val179);
					PieceManager.Instance.AddPiece(val180);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val178)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val178)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val181 = MyAssets.LoadAsset<GameObject>("MistLandsBush1P_RtD");
				if ((Object)(object)val181 != (Object)null)
				{
					GameObject prefab61 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val182 = ((!Object.op_Implicit((Object)(object)prefab61)) ? PieceBush4B : PieceBush4A);
					CustomPiece val183 = new CustomPiece(val181, true, val182);
					PieceManager.Instance.AddPiece(val183);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val181)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val181)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val184 = MyAssets.LoadAsset<GameObject>("MistLandsBush2P_RtD");
				if ((Object)(object)val184 != (Object)null)
				{
					GameObject prefab62 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val185 = ((!Object.op_Implicit((Object)(object)prefab62)) ? PieceBush4B : PieceBush4A);
					CustomPiece val186 = new CustomPiece(val184, true, val185);
					PieceManager.Instance.AddPiece(val186);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val184)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val184)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val187 = MyAssets.LoadAsset<GameObject>("MistLandsBush3P_RtD");
				if ((Object)(object)val187 != (Object)null)
				{
					GameObject prefab63 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val188 = ((!Object.op_Implicit((Object)(object)prefab63)) ? PieceBush4B : PieceBush4A);
					CustomPiece val189 = new CustomPiece(val187, true, val188);
					PieceManager.Instance.AddPiece(val189);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val187)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val187)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val190 = MyAssets.LoadAsset<GameObject>("MistLandsBush4P_RtD");
				if ((Object)(object)val190 != (Object)null)
				{
					GameObject prefab64 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val191 = ((!Object.op_Implicit((Object)(object)prefab64)) ? PieceBush4B : PieceBush4A);
					CustomPiece val192 = new CustomPiece(val190, true, val191);
					PieceManager.Instance.AddPiece(val192);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val190)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val190)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val193 = MyAssets.LoadAsset<GameObject>("MistLandsBush5P_RtD");
				if ((Object)(object)val193 != (Object)null)
				{
					GameObject prefab65 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val194 = ((!Object.op_Implicit((Object)(object)prefab65)) ? PieceBush4B : PieceBush4A);
					CustomPiece val195 = new CustomPiece(val193, true, val194);
					PieceManager.Instance.AddPiece(val195);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val193)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val193)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val196 = MyAssets.LoadAsset<GameObject>("MistLandsBush6P_RtD");
				if ((Object)(object)val196 != (Object)null)
				{
					GameObject prefab66 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val197 = ((!Object.op_Implicit((Object)(object)prefab66)) ? PieceBush4B : PieceBush4A);
					CustomPiece val198 = new CustomPiece(val196, true, val197);
					PieceManager.Instance.AddPiece(val198);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val196)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val196)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val199 = MyAssets.LoadAsset<GameObject>("MistLandsBush7P_RtD");
				if ((Object)(object)val199 != (Object)null)
				{
					GameObject prefab67 = Cache.GetPrefab<GameObject>("PlantSeedMistlands_RtD");
					PieceConfig val200 = ((!Object.op_Implicit((Object)(object)prefab67)) ? PieceBush4B : PieceBush4A);
					CustomPiece val201 = new CustomPiece(val199, true, val200);
					PieceManager.Instance.AddPiece(val201);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val199)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val199)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val202 = MyAssets.LoadAsset<GameObject>("EverGreen1P_RtD");
				if ((Object)(object)val202 != (Object)null)
				{
					GameObject prefab68 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val203 = ((!Object.op_Implicit((Object)(object)prefab68)) ? PieceBush5B : PieceBush5A);
					CustomPiece val204 = new CustomPiece(val202, true, val203);
					PieceManager.Instance.AddPiece(val204);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val202)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val202)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val205 = MyAssets.LoadAsset<GameObject>("EverGreen2P_RtD");
				if ((Object)(object)val205 != (Object)null)
				{
					GameObject prefab69 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val206 = ((!Object.op_Implicit((Object)(object)prefab69)) ? PieceBush5B : PieceBush5A);
					CustomPiece val207 = new CustomPiece(val205, true, val206);
					PieceManager.Instance.AddPiece(val207);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val205)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val205)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val208 = MyAssets.LoadAsset<GameObject>("EverGreen3P_RtD");
				if ((Object)(object)val208 != (Object)null)
				{
					GameObject prefab70 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val209 = ((!Object.op_Implicit((Object)(object)prefab70)) ? PieceBush5B : PieceBush5A);
					CustomPiece val210 = new CustomPiece(val208, true, val209);
					PieceManager.Instance.AddPiece(val210);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val208)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val208)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val211 = MyAssets.LoadAsset<GameObject>("EverGreen4P_RtD");
				if ((Object)(object)val211 != (Object)null)
				{
					GameObject prefab71 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val212 = ((!Object.op_Implicit((Object)(object)prefab71)) ? PieceBush5B : PieceBush5A);
					CustomPiece val213 = new CustomPiece(val211, true, val212);
					PieceManager.Instance.AddPiece(val213);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val211)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val211)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val214 = MyAssets.LoadAsset<GameObject>("MountainBush1P_RtD");
				if ((Object)(object)val214 != (Object)null)
				{
					GameObject prefab72 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val215 = ((!Object.op_Implicit((Object)(object)prefab72)) ? PieceBush5B : PieceBush5A);
					CustomPiece val216 = new CustomPiece(val214, true, val215);
					PieceManager.Instance.AddPiece(val216);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val214)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val214)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val217 = MyAssets.LoadAsset<GameObject>("MountainBush2P_RtD");
				if ((Object)(object)val217 != (Object)null)
				{
					GameObject prefab73 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val218 = ((!Object.op_Implicit((Object)(object)prefab73)) ? PieceBush5B : PieceBush5A);
					CustomPiece val219 = new CustomPiece(val217, true, val218);
					PieceManager.Instance.AddPiece(val219);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val217)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val217)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val220 = MyAssets.LoadAsset<GameObject>("MountainBush3P_RtD");
				if ((Object)(object)val220 != (Object)null)
				{
					GameObject prefab74 = Cache.GetPrefab<GameObject>("PlantSeedMountain_RtD");
					PieceConfig val221 = ((!Object.op_Implicit((Object)(object)prefab74)) ? PieceBush5B : PieceBush5A);
					CustomPiece val222 = new CustomPiece(val220, true, val221);
					PieceManager.Instance.AddPiece(val222);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val220)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val220)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val223 = MyAssets.LoadAsset<GameObject>("PlainsBush1P_RtD");
				if ((Object)(object)val223 != (Object)null)
				{
					GameObject prefab75 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val224 = ((!Object.op_Implicit((Object)(object)prefab75)) ? PieceBush6B : PieceBush6A);
					CustomPiece val225 = new CustomPiece(val223, true, val224);
					PieceManager.Instance.AddPiece(val225);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val223)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val223)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val226 = MyAssets.LoadAsset<GameObject>("PlainsBush2P_RtD");
				if ((Object)(object)val226 != (Object)null)
				{
					GameObject prefab76 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val227 = ((!Object.op_Implicit((Object)(object)prefab76)) ? PieceBush6B : PieceBush6A);
					CustomPiece val228 = new CustomPiece(val226, true, val227);
					PieceManager.Instance.AddPiece(val228);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val226)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val226)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val229 = MyAssets.LoadAsset<GameObject>("PlainsBush3P_RtD");
				if ((Object)(object)val229 != (Object)null)
				{
					GameObject prefab77 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val230 = ((!Object.op_Implicit((Object)(object)prefab77)) ? PieceBush6B : PieceBush6A);
					CustomPiece val231 = new CustomPiece(val229, true, val230);
					PieceManager.Instance.AddPiece(val231);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val229)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val229)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val232 = MyAssets.LoadAsset<GameObject>("PlainsBush4P_RtD");
				if ((Object)(object)val232 != (Object)null)
				{
					GameObject prefab78 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val233 = ((!Object.op_Implicit((Object)(object)prefab78)) ? PieceBush6B : PieceBush6A);
					CustomPiece val234 = new CustomPiece(val232, true, val233);
					PieceManager.Instance.AddPiece(val234);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val232)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val232)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val235 = MyAssets.LoadAsset<GameObject>("PlainsBush5P_RtD");
				if ((Object)(object)val235 != (Object)null)
				{
					GameObject prefab79 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val236 = ((!Object.op_Implicit((Object)(object)prefab79)) ? PieceBush6B : PieceBush6A);
					CustomPiece val237 = new CustomPiece(val235, true, val236);
					PieceManager.Instance.AddPiece(val237);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val235)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val235)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val238 = MyAssets.LoadAsset<GameObject>("PlainsBush6P_RtD");
				if ((Object)(object)val238 != (Object)null)
				{
					GameObject prefab80 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val239 = ((!Object.op_Implicit((Object)(object)prefab80)) ? PieceBush6B : PieceBush6A);
					CustomPiece val240 = new CustomPiece(val238, true, val239);
					PieceManager.Instance.AddPiece(val240);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val238)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val238)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val241 = MyAssets.LoadAsset<GameObject>("PlainsBush7P_RtD");
				if ((Object)(object)val241 != (Object)null)
				{
					GameObject prefab81 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val242 = ((!Object.op_Implicit((Object)(object)prefab81)) ? PieceBush6B : PieceBush6A);
					CustomPiece val243 = new CustomPiece(val241, true, val242);
					PieceManager.Instance.AddPiece(val243);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val241)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val241)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val244 = MyAssets.LoadAsset<GameObject>("PlainsBush8P_RtD");
				if ((Object)(object)val244 != (Object)null)
				{
					GameObject prefab82 = Cache.GetPrefab<GameObject>("PlantSeedPlains_RtD");
					PieceConfig val245 = ((!Object.op_Implicit((Object)(object)prefab82)) ? PieceBush6B : PieceBush6A);
					CustomPiece val246 = new CustomPiece(val244, true, val245);
					PieceManager.Instance.AddPiece(val246);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val244)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val244)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val247 = MyAssets.LoadAsset<GameObject>("DeadIvy1P_RtD");
				if ((Object)(object)val247 != (Object)null)
				{
					GameObject prefab83 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val248 = ((!Object.op_Implicit((Object)(object)prefab83)) ? PieceBush7B : PieceBush7A);
					CustomPiece val249 = new CustomPiece(val247, true, val248);
					PieceManager.Instance.AddPiece(val249);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val247)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val247)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val250 = MyAssets.LoadAsset<GameObject>("DeadIvy2P_RtD");
				if ((Object)(object)val250 != (Object)null)
				{
					GameObject prefab84 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val251 = ((!Object.op_Implicit((Object)(object)prefab84)) ? PieceBush7B : PieceBush7A);
					CustomPiece val252 = new CustomPiece(val250, true, val251);
					PieceManager.Instance.AddPiece(val252);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val250)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val250)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val253 = MyAssets.LoadAsset<GameObject>("SwampBush1P_RtD");
				if ((Object)(object)val253 != (Object)null)
				{
					GameObject prefab85 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val254 = ((!Object.op_Implicit((Object)(object)prefab85)) ? PieceBush7B : PieceBush7A);
					CustomPiece val255 = new CustomPiece(val253, true, val254);
					PieceManager.Instance.AddPiece(val255);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val253)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val253)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val256 = MyAssets.LoadAsset<GameObject>("SwampBush2P_RtD");
				if ((Object)(object)val256 != (Object)null)
				{
					GameObject prefab86 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val257 = ((!Object.op_Implicit((Object)(object)prefab86)) ? PieceBush7B : PieceBush7A);
					CustomPiece val258 = new CustomPiece(val256, true, val257);
					PieceManager.Instance.AddPiece(val258);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val256)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val256)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val259 = MyAssets.LoadAsset<GameObject>("SwampBush3P_RtD");
				if ((Object)(object)val259 != (Object)null)
				{
					GameObject prefab87 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val260 = ((!Object.op_Implicit((Object)(object)prefab87)) ? PieceBush7B : PieceBush7A);
					CustomPiece val261 = new CustomPiece(val259, true, val260);
					PieceManager.Instance.AddPiece(val261);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val259)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val259)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val262 = MyAssets.LoadAsset<GameObject>("SwampBush4P_RtD");
				if ((Object)(object)val262 != (Object)null)
				{
					GameObject prefab88 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val263 = ((!Object.op_Implicit((Object)(object)prefab88)) ? PieceBush7B : PieceBush7A);
					CustomPiece val264 = new CustomPiece(val262, true, val263);
					PieceManager.Instance.AddPiece(val264);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val262)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val262)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val265 = MyAssets.LoadAsset<GameObject>("SwampBush5P_RtD");
				if ((Object)(object)val265 != (Object)null)
				{
					GameObject prefab89 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val266 = ((!Object.op_Implicit((Object)(object)prefab89)) ? PieceBush7B : PieceBush7A);
					CustomPiece val267 = new CustomPiece(val265, true, val266);
					PieceManager.Instance.AddPiece(val267);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val265)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val265)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val268 = MyAssets.LoadAsset<GameObject>("SwampBush6P_RtD");
				if ((Object)(object)val268 != (Object)null)
				{
					GameObject prefab90 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val269 = ((!Object.op_Implicit((Object)(object)prefab90)) ? PieceBush7B : PieceBush7A);
					CustomPiece val270 = new CustomPiece(val268, true, val269);
					PieceManager.Instance.AddPiece(val270);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val268)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val268)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val271 = MyAssets.LoadAsset<GameObject>("SwampBush7P_RtD");
				if ((Object)(object)val271 != (Object)null)
				{
					GameObject prefab91 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val272 = ((!Object.op_Implicit((Object)(object)prefab91)) ? PieceBush7B : PieceBush7A);
					CustomPiece val273 = new CustomPiece(val271, true, val272);
					PieceManager.Instance.AddPiece(val273);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val271)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val271)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val274 = MyAssets.LoadAsset<GameObject>("SwampBush8P_RtD");
				if ((Object)(object)val274 != (Object)null)
				{
					GameObject prefab92 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val275 = ((!Object.op_Implicit((Object)(object)prefab92)) ? PieceBush7B : PieceBush7A);
					CustomPiece val276 = new CustomPiece(val274, true, val275);
					PieceManager.Instance.AddPiece(val276);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val274)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val274)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val277 = MyAssets.LoadAsset<GameObject>("SwampBush9P_RtD");
				if ((Object)(object)val277 != (Object)null)
				{
					GameObject prefab93 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val278 = ((!Object.op_Implicit((Object)(object)prefab93)) ? PieceBush7B : PieceBush7A);
					CustomPiece val279 = new CustomPiece(val277, true, val278);
					PieceManager.Instance.AddPiece(val279);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val277)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val277)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val280 = MyAssets.LoadAsset<GameObject>("SwampBush10P_RtD");
				if ((Object)(object)val280 != (Object)null)
				{
					GameObject prefab94 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val281 = ((!Object.op_Implicit((Object)(object)prefab94)) ? PieceBush7B : PieceBush7A);
					CustomPiece val282 = new CustomPiece(val280, true, val281);
					PieceManager.Instance.AddPiece(val282);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val280)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val280)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val283 = MyAssets.LoadAsset<GameObject>("SwampBush11P_RtD");
				if ((Object)(object)val283 != (Object)null)
				{
					GameObject prefab95 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val284 = ((!Object.op_Implicit((Object)(object)prefab95)) ? PieceBush7B : PieceBush7A);
					CustomPiece val285 = new CustomPiece(val283, true, val284);
					PieceManager.Instance.AddPiece(val285);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val283)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val283)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val286 = MyAssets.LoadAsset<GameObject>("SwampBush12P_RtD");
				if ((Object)(object)val286 != (Object)null)
				{
					GameObject prefab96 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val287 = ((!Object.op_Implicit((Object)(object)prefab96)) ? PieceBush7B : PieceBush7A);
					CustomPiece val288 = new CustomPiece(val286, true, val287);
					PieceManager.Instance.AddPiece(val288);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val286)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val286)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val289 = MyAssets.LoadAsset<GameObject>("SwampBush13P_RtD");
				if ((Object)(object)val289 != (Object)null)
				{
					GameObject prefab97 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val290 = ((!Object.op_Implicit((Object)(object)prefab97)) ? PieceBush7B : PieceBush7A);
					CustomPiece val291 = new CustomPiece(val289, true, val290);
					PieceManager.Instance.AddPiece(val291);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val289)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val289)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val292 = MyAssets.LoadAsset<GameObject>("SwampBush14P_RtD");
				if ((Object)(object)val292 != (Object)null)
				{
					GameObject prefab98 = Cache.GetPrefab<GameObject>("PlantSeedSwamp_RtD");
					PieceConfig val293 = ((!Object.op_Implicit((Object)(object)prefab98)) ? PieceBush7B : PieceBush7A);
					CustomPiece val294 = new CustomPiece(val292, true, val293);
					PieceManager.Instance.AddPiece(val294);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val292)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val292)?.ToString() + " to the Hammer Piecetable"));
				}
				GameObject val295 = MyAssets.LoadAsset<GameObject>("MeadowsShroom1P_RtD");
				if ((Object)(object)val295 != (Object)null)
				{
					GameObject prefab99 = Cache.GetPrefab<GameObject>("PlantSeedMeadows_RtD");
					PieceConfig val296 = ((!Object.op_Implicit((Object)(object)prefab99)) ? PieceBush8B : PieceBush8A);
					CustomPiece val297 = new CustomPiece(val295, true, val296);
					PieceManager.Instance.AddPiece(val297);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin