Decompiled source of RtDBiomes v2.1.8

RtDBiomes.dll

Decompiled 2 days ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using Jotunn;
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("RtDBiomes")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RtDBiomes")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("edb9b051-c1fa-4735-b61e-2823ffd842e5")]
[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 RtDBiomes
{
	[BepInPlugin("Soloredis.RtDBiomes", "RtDBiomes", "2.1.8")]
	[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	internal class RtDBiomes : BaseUnityPlugin
	{
		public const string PluginGUID = "Soloredis.RtDBiomes";

		public const string PluginName = "RtDBiomes";

		public const string PluginVersion = "2.1.8";

		public AssetBundle MyAssets;

		internal static ManualLogSource Log;

		public static bool isModded = true;

		private CustomLocalization Localization;

		public ConfigEntry<bool> MeadowsEnableVeg;

		public ConfigEntry<bool> MeadowsEnableClut;

		public ConfigEntry<bool> BlackForestEnableVeg;

		public ConfigEntry<bool> BlackForestEnableClut;

		public ConfigEntry<bool> SwampEnableVeg;

		public ConfigEntry<bool> SwampEnableClut;

		public ConfigEntry<bool> MountainEnableVeg;

		public ConfigEntry<bool> PlainsEnableVeg;

		public ConfigEntry<bool> PlainsEnableClut;

		public ConfigEntry<bool> MistlandsEnableVeg;

		public ConfigEntry<bool> MistlandsEnableClut;

		public ConfigEntry<bool> AshLandsEnableVeg;

		public ConfigEntry<bool> AshLandsEnableClut;

		public ConfigEntry<bool> DeepNorthEnableVeg;

		public ConfigEntry<bool> DeepNorthEnableClut;

		public ConfigEntry<bool> MagicMeadowsEnable;

		public ConfigEntry<bool> MagicBlackForestEnable;

		public ConfigEntry<bool> MagicSwampEnable;

		public ConfigEntry<bool> MagicMountainEnable;

		public ConfigEntry<bool> MagicPlainsEnable;

		public ConfigEntry<bool> MagicMistlandsEnable;

		public ConfigEntry<bool> MagicAshLandsEnable;

		public ConfigEntry<bool> MagicDeepNorthEnable;

		public ConfigEntry<bool> PlantEverythingEnable;

		public ConfigEntry<bool> VanillaEverythingEnable;

		public ConfigEntry<bool> VanillaMeadowsEnable;

		public ConfigEntry<bool> VanillaBlackForestEnable;

		public ConfigEntry<bool> VanillaSwampEnable;

		public ConfigEntry<bool> VanillaMountainEnable;

		public ConfigEntry<bool> VanillaPlainsEnable;

		public ConfigEntry<bool> VanillaMistlandsEnable;

		public ConfigEntry<bool> VanillaAshLandsEnable;

		public ConfigEntry<bool> HammerTrapsEnable;

		public string[] statsEffectList = new string[8] { "SE_Meadows_RtD", "SE_BlackForest_RtD", "SE_Swamp_RtD", "SE_Mountain_RtD", "SE_Plains_RtD", "SE_Mistlands_RtD", "SE_AshLands_RtD", "SE_DeepNorth_RtD" };

		private void Awake()
		{
			Log = ((BaseUnityPlugin)this).Logger;
			LoadBundle();
			CreateConfigs();
			LocalizationEnglish();
			AddSmelter();
			AddPrefabs();
			AddStatusEffects();
			TranslationJsons();
			if (MeadowsEnableVeg.Value)
			{
				AdjustMeadowsVeg();
			}
			if (MeadowsEnableClut.Value)
			{
				ZoneManager.OnVanillaClutterAvailable += AdjustMeadowsClut;
			}
			if (BlackForestEnableVeg.Value)
			{
				AdjustBlackForestVeg();
			}
			if (BlackForestEnableClut.Value)
			{
				ZoneManager.OnVanillaClutterAvailable += AdjustBlackForestClut;
			}
			if (SwampEnableVeg.Value)
			{
				AdjustSwampVeg();
			}
			if (SwampEnableClut.Value)
			{
				ZoneManager.OnVanillaClutterAvailable += AdjustSwampClut;
			}
			if (MountainEnableVeg.Value)
			{
				AdjustMountainVeg();
			}
			if (PlainsEnableVeg.Value)
			{
				AdjustPlainsVeg();
			}
			if (PlainsEnableClut.Value)
			{
				ZoneManager.OnVanillaClutterAvailable += AdjustPlainsClut;
			}
			if (MistlandsEnableVeg.Value)
			{
				AdjustMistlandsVeg();
			}
			if (MistlandsEnableClut.Value)
			{
				AdjustMistlandsClut();
			}
			if (AshLandsEnableVeg.Value)
			{
				AdjustAshLandsVeg();
			}
			if (AshLandsEnableClut.Value)
			{
				AdjustAshLandsClut();
			}
			if (DeepNorthEnableVeg.Value)
			{
				AdjustDeepNorthVeg();
			}
			if (DeepNorthEnableClut.Value)
			{
				AdjustDeepNorthClut();
			}
			if (MagicMeadowsEnable.Value)
			{
				MagicMeadows();
			}
			if (MagicBlackForestEnable.Value)
			{
				MagicBlackForest();
			}
			if (MagicSwampEnable.Value)
			{
				MagicSwamps();
			}
			if (MagicMountainEnable.Value)
			{
				MagicMountains();
			}
			if (MagicPlainsEnable.Value)
			{
				MagicPlains();
			}
			if (MagicMistlandsEnable.Value)
			{
				MagicMistlands();
			}
			if (MagicAshLandsEnable.Value)
			{
				MagicAshLands();
			}
			if (MagicDeepNorthEnable.Value)
			{
				MagicDeepNorth();
			}
			if (PlantEverythingEnable.Value)
			{
				PlantEverything();
			}
			if (VanillaEverythingEnable.Value)
			{
				VanillaEverything();
			}
			if (HammerTrapsEnable.Value)
			{
				AddHammerTraps();
			}
			if (VanillaMeadowsEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaMeadows;
			}
			if (VanillaBlackForestEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaBlackForest;
			}
			if (VanillaSwampEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaSwamp;
			}
			if (VanillaMountainEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaMountain;
			}
			if (VanillaPlainsEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaPlains;
			}
			if (VanillaMistlandsEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaMistlands;
			}
			if (VanillaAshLandsEnable.Value)
			{
				ZoneManager.OnVanillaLocationsAvailable += VanillaAshLands;
			}
		}

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

		private void TranslationJsons()
		{
			try
			{
				Localization = LocalizationManager.Instance.GetLocalization();
				string[] files = Directory.GetFiles(Path.Combine(Paths.ConfigPath, "Soloredis/RtDBiomes/Translations"), "*.json", SearchOption.AllDirectories);
				foreach (string text in files)
				{
					Localization.AddJsonFile(Path.GetFileNameWithoutExtension(text), AssetUtils.LoadText(text));
				}
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding translations from json files: {arg}");
			}
		}

		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_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Expected O, but got Unknown
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0054: Expected O, but got Unknown
			//IL_0079: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0086: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Expected O, but got Unknown
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_009e: Expected O, but got Unknown
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00de: Expected O, but got Unknown
			//IL_00de: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Expected O, but got Unknown
			//IL_010d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0112: Unknown result type (might be due to invalid IL or missing references)
			//IL_011a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0128: Expected O, but got Unknown
			//IL_0128: Unknown result type (might be due to invalid IL or missing references)
			//IL_0132: Expected O, but got Unknown
			//IL_0157: Unknown result type (might be due to invalid IL or missing references)
			//IL_015c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0164: Unknown result type (might be due to invalid IL or missing references)
			//IL_0172: Expected O, but got Unknown
			//IL_0172: Unknown result type (might be due to invalid IL or missing references)
			//IL_017c: Expected O, but got Unknown
			//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bc: Expected O, but got Unknown
			//IL_01bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c6: Expected O, but got Unknown
			//IL_01eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0206: Expected O, but got Unknown
			//IL_0206: Unknown result type (might be due to invalid IL or missing references)
			//IL_0210: Expected O, but got Unknown
			//IL_0235: Unknown result type (might be due to invalid IL or missing references)
			//IL_023a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0242: Unknown result type (might be due to invalid IL or missing references)
			//IL_0250: Expected O, but got Unknown
			//IL_0250: Unknown result type (might be due to invalid IL or missing references)
			//IL_025a: Expected O, but got Unknown
			//IL_027f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0284: Unknown result type (might be due to invalid IL or missing references)
			//IL_028c: Unknown result type (might be due to invalid IL or missing references)
			//IL_029a: Expected O, but got Unknown
			//IL_029a: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a4: Expected O, but got Unknown
			//IL_02c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e4: Expected O, but got Unknown
			//IL_02e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ee: Expected O, but got Unknown
			//IL_0313: Unknown result type (might be due to invalid IL or missing references)
			//IL_0318: Unknown result type (might be due to invalid IL or missing references)
			//IL_0320: Unknown result type (might be due to invalid IL or missing references)
			//IL_032e: Expected O, but got Unknown
			//IL_032e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0338: Expected O, but got Unknown
			//IL_035d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0362: Unknown result type (might be due to invalid IL or missing references)
			//IL_036a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0378: Expected O, but got Unknown
			//IL_0378: Unknown result type (might be due to invalid IL or missing references)
			//IL_0382: Expected O, but got Unknown
			//IL_03a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c2: Expected O, but got Unknown
			//IL_03c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_03cc: Expected O, but got Unknown
			//IL_03f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_03fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_040c: Expected O, but got Unknown
			//IL_040c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0416: Expected O, but got Unknown
			//IL_043b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0440: Unknown result type (might be due to invalid IL or missing references)
			//IL_0448: Unknown result type (might be due to invalid IL or missing references)
			//IL_0456: Expected O, but got Unknown
			//IL_0456: Unknown result type (might be due to invalid IL or missing references)
			//IL_0460: Expected O, but got Unknown
			//IL_0485: Unknown result type (might be due to invalid IL or missing references)
			//IL_048a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0492: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a0: Expected O, but got Unknown
			//IL_04a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_04aa: Expected O, but got Unknown
			//IL_04cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_04d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_04dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ea: Expected O, but got Unknown
			//IL_04ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f4: Expected O, but got Unknown
			//IL_0519: Unknown result type (might be due to invalid IL or missing references)
			//IL_051e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0526: Unknown result type (might be due to invalid IL or missing references)
			//IL_0534: Expected O, but got Unknown
			//IL_0534: Unknown result type (might be due to invalid IL or missing references)
			//IL_053e: Expected O, but got Unknown
			//IL_0563: Unknown result type (might be due to invalid IL or missing references)
			//IL_0568: Unknown result type (might be due to invalid IL or missing references)
			//IL_0570: Unknown result type (might be due to invalid IL or missing references)
			//IL_057e: Expected O, but got Unknown
			//IL_057e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0588: Expected O, but got Unknown
			//IL_05ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_05c8: Expected O, but got Unknown
			//IL_05c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_05d2: Expected O, but got Unknown
			//IL_05f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_05fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0604: Unknown result type (might be due to invalid IL or missing references)
			//IL_0612: Expected O, but got Unknown
			//IL_0612: Unknown result type (might be due to invalid IL or missing references)
			//IL_061c: Expected O, but got Unknown
			//IL_0641: Unknown result type (might be due to invalid IL or missing references)
			//IL_0646: Unknown result type (might be due to invalid IL or missing references)
			//IL_064e: Unknown result type (might be due to invalid IL or missing references)
			//IL_065c: Expected O, but got Unknown
			//IL_065c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0666: Expected O, but got Unknown
			//IL_068b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0690: Unknown result type (might be due to invalid IL or missing references)
			//IL_0698: Unknown result type (might be due to invalid IL or missing references)
			//IL_06a6: Expected O, but got Unknown
			//IL_06a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_06b0: Expected O, but got Unknown
			//IL_06d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06da: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f0: Expected O, but got Unknown
			//IL_06f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_06fa: Expected O, but got Unknown
			//IL_071f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0724: Unknown result type (might be due to invalid IL or missing references)
			//IL_072c: Unknown result type (might be due to invalid IL or missing references)
			//IL_073a: Expected O, but got Unknown
			//IL_073a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0744: Expected O, but got Unknown
			//IL_0769: Unknown result type (might be due to invalid IL or missing references)
			//IL_076e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0776: Unknown result type (might be due to invalid IL or missing references)
			//IL_0784: Expected O, but got Unknown
			//IL_0784: Unknown result type (might be due to invalid IL or missing references)
			//IL_078e: Expected O, but got Unknown
			//IL_07b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_07c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ce: Expected O, but got Unknown
			//IL_07ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d8: Expected O, but got Unknown
			//IL_07fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0802: Unknown result type (might be due to invalid IL or missing references)
			//IL_080a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0818: Expected O, but got Unknown
			//IL_0818: Unknown result type (might be due to invalid IL or missing references)
			//IL_0822: Expected O, but got Unknown
			//IL_0847: Unknown result type (might be due to invalid IL or missing references)
			//IL_084c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0854: Unknown result type (might be due to invalid IL or missing references)
			//IL_0862: Expected O, but got Unknown
			//IL_0862: Unknown result type (might be due to invalid IL or missing references)
			//IL_086c: Expected O, but got Unknown
			//IL_0891: Unknown result type (might be due to invalid IL or missing references)
			//IL_0896: Unknown result type (might be due to invalid IL or missing references)
			//IL_089e: Unknown result type (might be due to invalid IL or missing references)
			//IL_08ac: Expected O, but got Unknown
			//IL_08ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_08b6: Expected O, but got Unknown
			//IL_08db: Unknown result type (might be due to invalid IL or missing references)
			//IL_08e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_08e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_08f6: Expected O, but got Unknown
			//IL_08f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0900: Expected O, but got Unknown
			//IL_0925: Unknown result type (might be due to invalid IL or missing references)
			//IL_092a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0932: Unknown result type (might be due to invalid IL or missing references)
			//IL_0940: Expected O, but got Unknown
			//IL_0940: Unknown result type (might be due to invalid IL or missing references)
			//IL_094a: Expected O, but got Unknown
			//IL_096f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0974: Unknown result type (might be due to invalid IL or missing references)
			//IL_097c: Unknown result type (might be due to invalid IL or missing references)
			//IL_098a: Expected O, but got Unknown
			//IL_098a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0994: Expected O, but got Unknown
			try
			{
				((BaseUnityPlugin)this).Config.SaveOnConfigSet = true;
				MeadowsEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("Meadows Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable Meadows Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 100
				} }));
				MeadowsEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("Meadows Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable Meadows Clutter overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 100
				} }));
				VanillaMeadowsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Meadows Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla Meadows adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 100
				} }));
				BlackForestEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("BlackForest Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable BlackForest Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 95
				} }));
				BlackForestEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("BlackForest Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable BlackForest Clutter overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 95
				} }));
				VanillaBlackForestEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla BlackForest Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla BlackForest adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 95
				} }));
				SwampEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("Swamp Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable Swamp Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 90
				} }));
				SwampEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("Swamp Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable Swamp Clutter overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 90
				} }));
				VanillaSwampEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Swamp Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla Swamp adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 90
				} }));
				MountainEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("Mountain Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable Mountain Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 85
				} }));
				VanillaMountainEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Mountain Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla Mountain adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 85
				} }));
				PlainsEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("Plains Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable Plains Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 80
				} }));
				PlainsEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("Plains Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable Plains Clutter overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 80
				} }));
				VanillaPlainsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Plains Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla Plains adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 80
				} }));
				MistlandsEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("Mistlands Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable Mistlands Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 75
				} }));
				MistlandsEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("Mistlands Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable Mistlands Clutter overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 75
				} }));
				VanillaMistlandsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Mistlands Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla Mistlands adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 75
				} }));
				AshLandsEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("AshLands Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable AshLands Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 70
				} }));
				AshLandsEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("AshLands Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable AshLands Clutter Vegetation overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 70
				} }));
				VanillaAshLandsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla AshLands Modifications", "Enable", true, new ConfigDescription("Admin only, Enable or disable Vanilla AshLands adjustments. Set to False for default Vanilla Vegetation or more Vanilla Trees.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 70
				} }));
				DeepNorthEnableVeg = ((BaseUnityPlugin)this).Config.Bind<bool>("DeepNorth Vegetation", "Enable", true, new ConfigDescription("Admin only, Enable or disable DeepNorth Vegetation overhaul. Set to False for default Vanilla Vegetation. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 65
				} }));
				DeepNorthEnableClut = ((BaseUnityPlugin)this).Config.Bind<bool>("DeepNorth Clutter", "Enable", true, new ConfigDescription("Admin only, Enable or disable DeepNorth Clutter overhaul. Set to False for default Vanilla Vegetation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 65
				} }));
				MagicMeadowsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic Meadows", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic Meadows. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 55
				} }));
				MagicBlackForestEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic BlackForest", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic BlackForest. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 50
				} }));
				MagicSwampEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic Swamp", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic Swamp. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 45
				} }));
				MagicMountainEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic Mountain", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic Mountain. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 40
				} }));
				MagicPlainsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic Plains", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic Plains. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 35
				} }));
				MagicMistlandsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic Mistlands", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic Mistlands. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 30
				} }));
				MagicAshLandsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic AshLands", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic AshLands. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 25
				} }));
				MagicDeepNorthEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Magic DeepNorth", "Enable", true, new ConfigDescription("Admin only, Enable or disable Magic DeepNorth. Must be set before world creation.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 20
				} }));
				PlantEverythingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Gardening", "Enable", true, new ConfigDescription("Admin only, Enable or disable the ability to plant all custom vegetation. True requires biome overhaul for seed unlocks, optionally change recipes with wackyd mod or planteverything.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 15
				} }));
				VanillaEverythingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Plant Everything", "Enable", true, new ConfigDescription("Admin only, Enable or disable the ability to plant shrooms, dandelions, & ect.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 15
				} }));
				HammerTrapsEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Buildable Traps", "Enable", true, new ConfigDescription("Admin only, Enable or disable the ability to build the magic traps and healing runes found within the world..", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = true,
					Order = 15
				} }));
				SynchronizationManager.OnConfigurationSynchronized += delegate(object obj, ConfigurationSynchronizationEventArgs attr)
				{
					if (attr.InitialSynchronization)
					{
						Logger.LogMessage((object)"Initial Config sync event received for RtDBiomes... RtD has died aborting process");
					}
					else
					{
						Logger.LogMessage((object)"Config sync event received for RtDBiomes.... RtD has died aborting process");
					}
				};
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
		}

		private void VanillaMeadows()
		{
			try
			{
				ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("Beech1");
				zoneVegetation.m_groupSizeMin = 1;
				zoneVegetation.m_groupSizeMax = 3;
				zoneVegetation.m_min = 6f;
				zoneVegetation.m_max = 6f;
				ZoneVegetation zoneVegetation2 = ZoneManager.Instance.GetZoneVegetation("Beech_small1");
				zoneVegetation2.m_groupSizeMin = 1;
				zoneVegetation2.m_groupSizeMax = 3;
				zoneVegetation2.m_min = 1f;
				zoneVegetation2.m_max = 2f;
				ZoneVegetation zoneVegetation3 = ZoneManager.Instance.GetZoneVegetation("Beech_small2");
				zoneVegetation3.m_groupSizeMin = 1;
				zoneVegetation3.m_groupSizeMax = 4;
				zoneVegetation3.m_min = 1f;
				zoneVegetation3.m_max = 2f;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaMeadows;
			}
		}

		private void VanillaBlackForest()
		{
			try
			{
				ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("Pinetree_01");
				zoneVegetation.m_groupSizeMin = 1;
				zoneVegetation.m_groupSizeMax = 2;
				zoneVegetation.m_min = 6f;
				zoneVegetation.m_max = 8f;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaBlackForest;
			}
		}

		private void VanillaSwamp()
		{
			try
			{
				ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("SwampTree2");
				zoneVegetation.m_groupSizeMin = 0;
				zoneVegetation.m_groupSizeMax = 0;
				zoneVegetation.m_min = 0f;
				zoneVegetation.m_max = 0f;
				ZoneLocation zoneLocation = ZoneManager.Instance.GetZoneLocation("InfestedTree01");
				zoneLocation.m_enable = false;
				ZoneVegetation zoneVegetation2 = ZoneManager.Instance.GetZoneVegetation("SwampTree1");
				zoneVegetation2.m_groupSizeMin = 1;
				zoneVegetation2.m_groupSizeMax = 2;
				zoneVegetation2.m_min = 3f;
				zoneVegetation2.m_max = 4f;
				ZoneVegetation zoneVegetation3 = ZoneManager.Instance.GetZoneVegetation("SwampTree2_log");
				zoneVegetation3.m_enable = false;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaSwamp;
			}
		}

		private void VanillaMountain()
		{
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			try
			{
				ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("FirTree");
				zoneVegetation.m_groupSizeMin = 1;
				zoneVegetation.m_groupSizeMax = 1;
				zoneVegetation.m_min = 1f;
				zoneVegetation.m_max = 1f;
				zoneVegetation.m_biome = (Biome)4;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaMountain;
			}
		}

		private void VanillaPlains()
		{
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			try
			{
				ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("Bush01_heath");
				zoneVegetation.m_groupSizeMin = 1;
				zoneVegetation.m_groupSizeMax = 1;
				zoneVegetation.m_min = 2f;
				zoneVegetation.m_max = 4f;
				zoneVegetation.m_biome = (Biome)16;
				Clutter clutter = ZoneManager.Instance.GetClutter("heath grass");
				clutter.m_enabled = true;
				clutter.m_amount = 35;
				Clutter clutter2 = ZoneManager.Instance.GetClutter("heath grass green");
				clutter2.m_enabled = true;
				clutter2.m_amount = 35;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaPlains;
			}
		}

		private void VanillaMistlands()
		{
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
			try
			{
				ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("YggaShoot1");
				zoneVegetation.m_groupSizeMin = 1;
				zoneVegetation.m_groupSizeMax = 1;
				zoneVegetation.m_min = 1f;
				zoneVegetation.m_max = 2f;
				zoneVegetation.m_biome = (Biome)512;
				ZoneVegetation zoneVegetation2 = ZoneManager.Instance.GetZoneVegetation("YggaShoot2");
				zoneVegetation2.m_groupSizeMin = 1;
				zoneVegetation2.m_groupSizeMax = 1;
				zoneVegetation2.m_min = 1f;
				zoneVegetation2.m_max = 2f;
				zoneVegetation2.m_biome = (Biome)512;
				ZoneVegetation zoneVegetation3 = ZoneManager.Instance.GetZoneVegetation("YggaShoot3");
				zoneVegetation3.m_groupSizeMin = 1;
				zoneVegetation3.m_groupSizeMax = 1;
				zoneVegetation3.m_min = 1f;
				zoneVegetation3.m_max = 2f;
				zoneVegetation3.m_biome = (Biome)512;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaMistlands;
			}
		}

		private void VanillaAshLands()
		{
			try
			{
				ZoneLocation zoneLocation = ZoneManager.Instance.GetZoneLocation("Meteorite");
				zoneLocation.m_enable = false;
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
			finally
			{
				PrefabManager.OnVanillaPrefabsAvailable -= VanillaAshLands;
			}
		}

		private void AdjustMeadowsVeg()
		{
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Expected O, but got Unknown
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bd: Expected O, but got Unknown
			//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e3: Expected O, but got Unknown
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_017e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0184: Expected O, but got Unknown
			//IL_01a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ac: Expected O, but got Unknown
			//IL_01b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0247: Unknown result type (might be due to invalid IL or missing references)
			//IL_024e: Expected O, but got Unknown
			//IL_0270: Unknown result type (might be due to invalid IL or missing references)
			//IL_0277: Expected O, but got Unknown
			//IL_0283: Unknown result type (might be due to invalid IL or missing references)
			//IL_0312: Unknown result type (might be due to invalid IL or missing references)
			//IL_0319: Expected O, but got Unknown
			//IL_033b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0342: Expected O, but got Unknown
			//IL_034e: Unknown result type (might be due to invalid IL or missing references)
			//IL_03dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e4: Expected O, but got Unknown
			//IL_0406: Unknown result type (might be due to invalid IL or missing references)
			//IL_040d: Expected O, but got Unknown
			//IL_0419: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_04af: Expected O, but got Unknown
			//IL_04d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_04d8: Expected O, but got Unknown
			//IL_04e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0573: Unknown result type (might be due to invalid IL or missing references)
			//IL_057a: Expected O, but got Unknown
			//IL_059c: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a3: Expected O, but got Unknown
			//IL_05af: Unknown result type (might be due to invalid IL or missing references)
			//IL_063e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0645: Expected O, but got Unknown
			//IL_0667: Unknown result type (might be due to invalid IL or missing references)
			//IL_066e: Expected O, but got Unknown
			//IL_067a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0709: Unknown result type (might be due to invalid IL or missing references)
			//IL_0710: Expected O, but got Unknown
			//IL_0732: Unknown result type (might be due to invalid IL or missing references)
			//IL_0739: Expected O, but got Unknown
			//IL_0745: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_07db: Expected O, but got Unknown
			//IL_07fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0804: Expected O, but got Unknown
			//IL_0810: Unknown result type (might be due to invalid IL or missing references)
			//IL_089f: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a6: Expected O, but got Unknown
			//IL_08c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_08d0: Expected O, but got Unknown
			//IL_08dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_096b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0972: Expected O, but got Unknown
			//IL_0994: Unknown result type (might be due to invalid IL or missing references)
			//IL_099b: Expected O, but got Unknown
			//IL_09a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a36: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a3d: Expected O, but got Unknown
			//IL_0a5f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a66: Expected O, but got Unknown
			//IL_0a72: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b01: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b08: Expected O, but got Unknown
			//IL_0b2a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b31: Expected O, but got Unknown
			//IL_0b3d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bcc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd3: Expected O, but got Unknown
			//IL_0bf5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bfc: Expected O, but got Unknown
			//IL_0c08: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c97: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c9e: Expected O, but got Unknown
			//IL_0cc0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cc7: Expected O, but got Unknown
			//IL_0cd3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d62: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d69: Expected O, but got Unknown
			//IL_0d8b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d92: Expected O, but got Unknown
			//IL_0d9e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e2d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e34: Expected O, but got Unknown
			//IL_0e56: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e5d: Expected O, but got Unknown
			//IL_0e69: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ef8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eff: Expected O, but got Unknown
			//IL_0f21: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f28: Expected O, but got Unknown
			//IL_0f34: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fc3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fca: Expected O, but got Unknown
			//IL_0fec: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ff3: Expected O, but got Unknown
			//IL_0fff: Unknown result type (might be due to invalid IL or missing references)
			//IL_108e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1095: Expected O, but got Unknown
			//IL_10b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_10be: Expected O, but got Unknown
			//IL_10ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_1159: Unknown result type (might be due to invalid IL or missing references)
			//IL_1160: Expected O, but got Unknown
			//IL_1182: Unknown result type (might be due to invalid IL or missing references)
			//IL_1189: Expected O, but got Unknown
			//IL_1195: Unknown result type (might be due to invalid IL or missing references)
			//IL_1224: Unknown result type (might be due to invalid IL or missing references)
			//IL_122b: Expected O, but got Unknown
			//IL_124d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1254: Expected O, but got Unknown
			//IL_1260: Unknown result type (might be due to invalid IL or missing references)
			//IL_12ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f6: Expected O, but got Unknown
			//IL_1318: Unknown result type (might be due to invalid IL or missing references)
			//IL_131f: Expected O, but got Unknown
			//IL_132b: Unknown result type (might be due to invalid IL or missing references)
			//IL_13ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_13c1: Expected O, but got Unknown
			//IL_13e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_13ea: Expected O, but got Unknown
			//IL_13f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_1485: Unknown result type (might be due to invalid IL or missing references)
			//IL_148c: Expected O, but got Unknown
			//IL_14ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_14b5: Expected O, but got Unknown
			//IL_14c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_1550: Unknown result type (might be due to invalid IL or missing references)
			//IL_1557: Expected O, but got Unknown
			//IL_1579: Unknown result type (might be due to invalid IL or missing references)
			//IL_1580: Expected O, but got Unknown
			//IL_158c: Unknown result type (might be due to invalid IL or missing references)
			//IL_161b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1622: Expected O, but got Unknown
			//IL_1644: Unknown result type (might be due to invalid IL or missing references)
			//IL_164b: Expected O, but got Unknown
			//IL_1657: Unknown result type (might be due to invalid IL or missing references)
			//IL_16e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_16ed: Expected O, but got Unknown
			//IL_170f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1716: Expected O, but got Unknown
			//IL_1722: Unknown result type (might be due to invalid IL or missing references)
			//IL_17b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_17b8: Expected O, but got Unknown
			//IL_17da: Unknown result type (might be due to invalid IL or missing references)
			//IL_17e1: Expected O, but got Unknown
			//IL_17ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_187c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1883: Expected O, but got Unknown
			try
			{
				GameObject val = MyAssets.LoadAsset<GameObject>("CottonWood1_RtD1");
				VegetationConfig val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 100f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val3 = new CustomVegetation(val, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val3);
				GameObject val4 = MyAssets.LoadAsset<GameObject>("CottonWood2_RtD1");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 100f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val5 = new CustomVegetation(val4, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val5);
				GameObject val6 = MyAssets.LoadAsset<GameObject>("Oak1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 10f;
				val2.MaxAltitude = 100f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val7 = new CustomVegetation(val6, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val7);
				GameObject val8 = MyAssets.LoadAsset<GameObject>("Oak2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 10f;
				val2.MaxAltitude = 90f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val9 = new CustomVegetation(val8, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val9);
				GameObject val10 = MyAssets.LoadAsset<GameObject>("Blossom1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 20f;
				val2.MaxAltitude = 200f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val11 = new CustomVegetation(val10, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val11);
				GameObject val12 = MyAssets.LoadAsset<GameObject>("Blossom2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 20f;
				val2.MaxAltitude = 200f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val13 = new CustomVegetation(val12, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val13);
				GameObject val14 = MyAssets.LoadAsset<GameObject>("Blossom3_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 20f;
				val2.MaxAltitude = 200f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val15 = new CustomVegetation(val14, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val15);
				GameObject val16 = MyAssets.LoadAsset<GameObject>("Blossom4_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 20f;
				val2.MaxAltitude = 200f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val17 = new CustomVegetation(val16, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val17);
				GameObject val18 = MyAssets.LoadAsset<GameObject>("Blossom5_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.5f;
				val2.MinAltitude = 20f;
				val2.MaxAltitude = 200f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val19 = new CustomVegetation(val18, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val19);
				GameObject val20 = MyAssets.LoadAsset<GameObject>("WillowTree1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 35f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val21 = new CustomVegetation(val20, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val21);
				GameObject val22 = MyAssets.LoadAsset<GameObject>("WillowTree2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 35f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val23 = new CustomVegetation(val22, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val23);
				GameObject val24 = MyAssets.LoadAsset<GameObject>("DeepNorthBush1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 0f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val25 = new CustomVegetation(val24, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val25);
				GameObject val26 = MyAssets.LoadAsset<GameObject>("DeepNorthBush3_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val27 = new CustomVegetation(val26, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val27);
				GameObject val28 = MyAssets.LoadAsset<GameObject>("DeepNorthBush4_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val29 = new CustomVegetation(val28, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val29);
				GameObject val30 = MyAssets.LoadAsset<GameObject>("DeepNorthBush5_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val31 = new CustomVegetation(val30, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val31);
				GameObject val32 = MyAssets.LoadAsset<GameObject>("DeepNorthBush6_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val33 = new CustomVegetation(val32, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val33);
				GameObject val34 = MyAssets.LoadAsset<GameObject>("MeadowsBush1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 10f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val35 = new CustomVegetation(val34, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val35);
				GameObject val36 = MyAssets.LoadAsset<GameObject>("MeadowsBush2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 10f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val37 = new CustomVegetation(val36, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val37);
				GameObject val38 = MyAssets.LoadAsset<GameObject>("MeadowsBush3_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 10f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val39 = new CustomVegetation(val38, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val39);
				GameObject val40 = MyAssets.LoadAsset<GameObject>("MeadowsBush4_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 10f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val41 = new CustomVegetation(val40, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val41);
				GameObject val42 = MyAssets.LoadAsset<GameObject>("MeadowsBush5_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 10f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val43 = new CustomVegetation(val42, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val43);
				GameObject val44 = MyAssets.LoadAsset<GameObject>("MeadowsShroom1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val45 = new CustomVegetation(val44, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val45);
				GameObject val46 = MyAssets.LoadAsset<GameObject>("MeadowsShroom2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val47 = new CustomVegetation(val46, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val47);
				GameObject val48 = MyAssets.LoadAsset<GameObject>("MeadowsShroom3_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val49 = new CustomVegetation(val48, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val49);
				GameObject val50 = MyAssets.LoadAsset<GameObject>("MeadowsShroom4_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val51 = new CustomVegetation(val50, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val51);
				GameObject val52 = MyAssets.LoadAsset<GameObject>("MeadowsBush04_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1.5f;
				val2.ScaleMax = 3f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val53 = new CustomVegetation(val52, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val53);
				GameObject val54 = MyAssets.LoadAsset<GameObject>("MeadowsBush05_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1.5f;
				val2.ScaleMax = 3f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val55 = new CustomVegetation(val54, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val55);
				GameObject val56 = MyAssets.LoadAsset<GameObject>("MeadowsBush06_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 2f;
				val2.ScaleMin = 1.5f;
				val2.ScaleMax = 3f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val57 = new CustomVegetation(val56, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val57);
				GameObject val58 = MyAssets.LoadAsset<GameObject>("SmallBush_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 4f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 30f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val59 = new CustomVegetation(val58, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val59);
				GameObject val60 = MyAssets.LoadAsset<GameObject>("Sapling1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 4f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 60f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val61 = new CustomVegetation(val60, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val61);
				GameObject val62 = MyAssets.LoadAsset<GameObject>("Sapling2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Max = 4f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 60f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val63 = new CustomVegetation(val62, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val63);
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
		}

		private void AdjustMeadowsClut()
		{
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Expected O, but got Unknown
			//IL_006f: Unknown result type (might be due to invalid IL or missing references)
			//IL_010d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0113: Expected O, but got Unknown
			//IL_0134: Unknown result type (might be due to invalid IL or missing references)
			//IL_013b: Expected O, but got Unknown
			//IL_0150: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f5: Expected O, but got Unknown
			//IL_0217: Unknown result type (might be due to invalid IL or missing references)
			//IL_021e: Expected O, but got Unknown
			//IL_0233: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b5: Expected O, but got Unknown
			//IL_02d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_02de: Expected O, but got Unknown
			//IL_02f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_036e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0375: Expected O, but got Unknown
			//IL_0397: Unknown result type (might be due to invalid IL or missing references)
			//IL_039e: Expected O, but got Unknown
			//IL_03b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_042e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0435: Expected O, but got Unknown
			//IL_0457: Unknown result type (might be due to invalid IL or missing references)
			//IL_045e: Expected O, but got Unknown
			//IL_0473: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f5: Expected O, but got Unknown
			//IL_0517: Unknown result type (might be due to invalid IL or missing references)
			//IL_051e: Expected O, but got Unknown
			//IL_0533: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b5: Expected O, but got Unknown
			//IL_05d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_05de: Expected O, but got Unknown
			//IL_05f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_066e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0675: Expected O, but got Unknown
			//IL_0697: Unknown result type (might be due to invalid IL or missing references)
			//IL_069e: Expected O, but got Unknown
			//IL_06b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_072e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0735: Expected O, but got Unknown
			try
			{
				Clutter clutter = ZoneManager.Instance.GetClutter("grass green");
				clutter.m_enabled = true;
				clutter.m_amount = 35;
				Clutter clutter2 = ZoneManager.Instance.GetClutter("grass green short");
				clutter2.m_enabled = true;
				clutter2.m_amount = 35;
				GameObject val = MyAssets.LoadAsset<GameObject>("Meadows1_RtD");
				ClutterConfig val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 1;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 10f;
				val2.OceanDepthCheck = true;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 500f;
				val2.TerrainTilt = true;
				CustomClutter val3 = new CustomClutter(val, true, val2);
				ZoneManager.Instance.AddCustomClutter(val3);
				GameObject val4 = MyAssets.LoadAsset<GameObject>("Meadows2_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 1;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 10f;
				val2.OceanDepthCheck = true;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 500f;
				val2.TerrainTilt = true;
				CustomClutter val5 = new CustomClutter(val4, true, val2);
				ZoneManager.Instance.AddCustomClutter(val5);
				GameObject val6 = MyAssets.LoadAsset<GameObject>("WormWood_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 3;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 3f;
				val2.TerrainTilt = true;
				CustomClutter val7 = new CustomClutter(val6, true, val2);
				ZoneManager.Instance.AddCustomClutter(val7);
				GameObject val8 = MyAssets.LoadAsset<GameObject>("MeadowsGrass1_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 3;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 1f;
				val2.TerrainTilt = true;
				CustomClutter val9 = new CustomClutter(val8, true, val2);
				ZoneManager.Instance.AddCustomClutter(val9);
				GameObject val10 = MyAssets.LoadAsset<GameObject>("MeadowsGrass2_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 3;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 1f;
				val2.TerrainTilt = true;
				CustomClutter val11 = new CustomClutter(val10, true, val2);
				ZoneManager.Instance.AddCustomClutter(val11);
				GameObject val12 = MyAssets.LoadAsset<GameObject>("MeadowsGrass3_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 4;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 1f;
				val2.TerrainTilt = true;
				CustomClutter val13 = new CustomClutter(val12, true, val2);
				ZoneManager.Instance.AddCustomClutter(val13);
				GameObject val14 = MyAssets.LoadAsset<GameObject>("MeadowsWeed1_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 4;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 1f;
				val2.TerrainTilt = true;
				CustomClutter val15 = new CustomClutter(val14, true, val2);
				ZoneManager.Instance.AddCustomClutter(val15);
				GameObject val16 = MyAssets.LoadAsset<GameObject>("MeadowsClutter2_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 1;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 50f;
				val2.TerrainTilt = true;
				CustomClutter val17 = new CustomClutter(val16, true, val2);
				ZoneManager.Instance.AddCustomClutter(val17);
				GameObject val18 = MyAssets.LoadAsset<GameObject>("MeadowsClutter3_RtD");
				val2 = new ClutterConfig();
				val2.Enabled = true;
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)1 });
				val2.Instanced = true;
				val2.Amount = 1;
				val2.OnUncleared = true;
				val2.OnCleared = false;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1.2f;
				val2.MinAltitude = 1f;
				val2.MaxAltitude = 500f;
				val2.MaxTilt = 50f;
				val2.TerrainTilt = true;
				CustomClutter val19 = new CustomClutter(val18, true, val2);
				ZoneManager.Instance.AddCustomClutter(val19);
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding a surprise: {arg}");
			}
		}

		private void AdjustBlackForestVeg()
		{
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Expected O, but got Unknown
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bd: Expected O, but got Unknown
			//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e3: Expected O, but got Unknown
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_017e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0184: Expected O, but got Unknown
			//IL_01a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ac: Expected O, but got Unknown
			//IL_01b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0247: Unknown result type (might be due to invalid IL or missing references)
			//IL_024e: Expected O, but got Unknown
			//IL_0270: Unknown result type (might be due to invalid IL or missing references)
			//IL_0277: Expected O, but got Unknown
			//IL_0283: Unknown result type (might be due to invalid IL or missing references)
			//IL_0312: Unknown result type (might be due to invalid IL or missing references)
			//IL_0319: Expected O, but got Unknown
			//IL_033b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0342: Expected O, but got Unknown
			//IL_034e: Unknown result type (might be due to invalid IL or missing references)
			//IL_03dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e4: Expected O, but got Unknown
			//IL_0406: Unknown result type (might be due to invalid IL or missing references)
			//IL_040d: Expected O, but got Unknown
			//IL_0419: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_04af: Expected O, but got Unknown
			//IL_04d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_04d8: Expected O, but got Unknown
			//IL_04e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0573: Unknown result type (might be due to invalid IL or missing references)
			//IL_057a: Expected O, but got Unknown
			//IL_059c: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a3: Expected O, but got Unknown
			//IL_05af: Unknown result type (might be due to invalid IL or missing references)
			//IL_063e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0645: Expected O, but got Unknown
			//IL_0667: Unknown result type (might be due to invalid IL or missing references)
			//IL_066e: Expected O, but got Unknown
			//IL_067a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0709: Unknown result type (might be due to invalid IL or missing references)
			//IL_0710: Expected O, but got Unknown
			//IL_0732: Unknown result type (might be due to invalid IL or missing references)
			//IL_0739: Expected O, but got Unknown
			//IL_0745: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_07db: Expected O, but got Unknown
			//IL_07fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0804: Expected O, but got Unknown
			//IL_0810: Unknown result type (might be due to invalid IL or missing references)
			//IL_089f: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a6: Expected O, but got Unknown
			//IL_08c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_08cf: Expected O, but got Unknown
			//IL_08db: Unknown result type (might be due to invalid IL or missing references)
			//IL_096a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0971: Expected O, but got Unknown
			//IL_0993: Unknown result type (might be due to invalid IL or missing references)
			//IL_099a: Expected O, but got Unknown
			//IL_09a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a35: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a3c: Expected O, but got Unknown
			//IL_0a5e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a65: Expected O, but got Unknown
			//IL_0a71: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b00: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b07: Expected O, but got Unknown
			//IL_0b29: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b30: Expected O, but got Unknown
			//IL_0b3c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bcb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd2: Expected O, but got Unknown
			//IL_0bf4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bfb: Expected O, but got Unknown
			//IL_0c07: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c96: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c9d: Expected O, but got Unknown
			//IL_0cbf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cc6: Expected O, but got Unknown
			//IL_0cd2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d61: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d68: Expected O, but got Unknown
			//IL_0d8a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d91: Expected O, but got Unknown
			//IL_0d9d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e33: Expected O, but got Unknown
			//IL_0e55: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e5c: Expected O, but got Unknown
			//IL_0e68: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ef7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0efe: Expected O, but got Unknown
			//IL_0f20: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f27: Expected O, but got Unknown
			//IL_0f33: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fc2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fc9: Expected O, but got Unknown
			//IL_0feb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ff2: Expected O, but got Unknown
			//IL_0ffe: Unknown result type (might be due to invalid IL or missing references)
			//IL_108d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1094: Expected O, but got Unknown
			//IL_10b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_10bd: Expected O, but got Unknown
			//IL_10c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_1158: Unknown result type (might be due to invalid IL or missing references)
			//IL_115f: Expected O, but got Unknown
			//IL_1181: Unknown result type (might be due to invalid IL or missing references)
			//IL_1188: Expected O, but got Unknown
			//IL_1194: Unknown result type (might be due to invalid IL or missing references)
			//IL_1223: Unknown result type (might be due to invalid IL or missing references)
			//IL_122a: Expected O, but got Unknown
			//IL_124c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1253: Expected O, but got Unknown
			//IL_125f: Unknown result type (might be due to invalid IL or missing references)
			//IL_12ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f5: Expected O, but got Unknown
			//IL_1317: Unknown result type (might be due to invalid IL or missing references)
			//IL_131e: Expected O, but got Unknown
			//IL_132a: Unknown result type (might be due to invalid IL or missing references)
			//IL_13b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_13c0: Expected O, but got Unknown
			//IL_13e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_13e9: Expected O, but got Unknown
			//IL_13f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_1484: Unknown result type (might be due to invalid IL or missing references)
			//IL_148b: Expected O, but got Unknown
			//IL_14ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_14b4: Expected O, but got Unknown
			//IL_14c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_154f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1556: Expected O, but got Unknown
			//IL_1578: Unknown result type (might be due to invalid IL or missing references)
			//IL_157f: Expected O, but got Unknown
			//IL_158b: Unknown result type (might be due to invalid IL or missing references)
			//IL_161a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1621: Expected O, but got Unknown
			//IL_1643: Unknown result type (might be due to invalid IL or missing references)
			//IL_164a: Expected O, but got Unknown
			//IL_1656: Unknown result type (might be due to invalid IL or missing references)
			//IL_16e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_16ec: Expected O, but got Unknown
			//IL_170e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1715: Expected O, but got Unknown
			//IL_1721: Unknown result type (might be due to invalid IL or missing references)
			//IL_17b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_17b7: Expected O, but got Unknown
			//IL_17d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_17e0: Expected O, but got Unknown
			//IL_17ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_187b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1882: Expected O, but got Unknown
			//IL_18a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_18ab: Expected O, but got Unknown
			//IL_18b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_1946: Unknown result type (might be due to invalid IL or missing references)
			//IL_194d: Expected O, but got Unknown
			//IL_196f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1976: Expected O, but got Unknown
			//IL_1982: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a11: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a18: Expected O, but got Unknown
			//IL_1a3a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a41: Expected O, but got Unknown
			//IL_1a4d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1adc: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ae3: Expected O, but got Unknown
			try
			{
				GameObject val = MyAssets.LoadAsset<GameObject>("CottonWood1_RtD");
				VegetationConfig val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 100f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val3 = new CustomVegetation(val, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val3);
				GameObject val4 = MyAssets.LoadAsset<GameObject>("CottonWood2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 100f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val5 = new CustomVegetation(val4, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val5);
				GameObject val6 = MyAssets.LoadAsset<GameObject>("RedPine_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 8f;
				val2.ScaleMin = 1.5f;
				val2.ScaleMax = 2f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 350f;
				val2.MaxTilt = 60f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 100f;
				CustomVegetation val7 = new CustomVegetation(val6, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val7);
				GameObject val8 = MyAssets.LoadAsset<GameObject>("BlackShroom1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 6f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 450f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val9 = new CustomVegetation(val8, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val9);
				GameObject val10 = MyAssets.LoadAsset<GameObject>("BlackShroom2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 3f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 450f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val11 = new CustomVegetation(val10, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val11);
				GameObject val12 = MyAssets.LoadAsset<GameObject>("BlackShroom3_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 3f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 450f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val13 = new CustomVegetation(val12, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val13);
				GameObject val14 = MyAssets.LoadAsset<GameObject>("BlackShroom4_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 3f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 450f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val15 = new CustomVegetation(val14, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val15);
				GameObject val16 = MyAssets.LoadAsset<GameObject>("BlackForestBush1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val17 = new CustomVegetation(val16, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val17);
				GameObject val18 = MyAssets.LoadAsset<GameObject>("BlackForestBush2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 1f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val19 = new CustomVegetation(val18, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val19);
				GameObject val20 = MyAssets.LoadAsset<GameObject>("BlackForestBush3_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 2f;
				val2.ScaleMax = 2.8f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val21 = new CustomVegetation(val20, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val21);
				GameObject val22 = MyAssets.LoadAsset<GameObject>("BlackForestBush4_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 2f;
				val2.ScaleMax = 2.8f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val23 = new CustomVegetation(val22, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val23);
				GameObject val24 = MyAssets.LoadAsset<GameObject>("BlackForestBush5_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 2f;
				val2.ScaleMax = 2.8f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val25 = new CustomVegetation(val24, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val25);
				GameObject val26 = MyAssets.LoadAsset<GameObject>("BlackForestBush6_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 2f;
				val2.ScaleMax = 2.8f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val27 = new CustomVegetation(val26, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val27);
				GameObject val28 = MyAssets.LoadAsset<GameObject>("BlackForestBush7_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 2f;
				val2.ScaleMax = 2.8f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val29 = new CustomVegetation(val28, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val29);
				GameObject val30 = MyAssets.LoadAsset<GameObject>("BlackForestBush8_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val2.ScaleMin = 2f;
				val2.ScaleMax = 2.8f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 80f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val31 = new CustomVegetation(val30, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val31);
				GameObject val32 = MyAssets.LoadAsset<GameObject>("ForestTree1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 4f;
				val2.ScaleMin = 1.5f;
				val2.ScaleMax = 2f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val33 = new CustomVegetation(val32, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val33);
				GameObject val34 = MyAssets.LoadAsset<GameObject>("ForestTree2_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 4f;
				val2.ScaleMin = 1.5f;
				val2.ScaleMax = 2f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 15f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val35 = new CustomVegetation(val34, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val35);
				GameObject val36 = MyAssets.LoadAsset<GameObject>("Sapling1_RtD1");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 4f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 60f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val37 = new CustomVegetation(val36, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val37);
				GameObject val38 = MyAssets.LoadAsset<GameObject>("Sapling2_RtD1");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 4f;
				val2.ScaleMin = 1f;
				val2.ScaleMax = 1f;
				val2.MinAltitude = 0f;
				val2.MaxAltitude = 600f;
				val2.MaxTilt = 60f;
				val2.MinTerrainDelta = 1f;
				val2.MaxTerrainDelta = 2f;
				val2.MinOceanDepth = 0f;
				val2.MaxOceanDepth = 450f;
				CustomVegetation val39 = new CustomVegetation(val38, true, val2);
				ZoneManager.Instance.AddCustomVegetation(val39);
				GameObject val40 = MyAssets.LoadAsset<GameObject>("ForestGreen1_RtD");
				val2 = new VegetationConfig();
				val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)8 });
				val2.Max = 2f;
				val