Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of RtDBiomes v3.1.16
RtDBiomes.dll
Decompiled a day ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("RtDBiomes")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("RtDBiomes")] [assembly: AssemblyTitle("RtDBiomes")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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", "3.1.16")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInIncompatibility("CookieMilk.MagicalMounts")] [BepInIncompatibility("CookieMilk.MajesticChickens")] [BepInIncompatibility("CookieMilk.BuildPieces")] [BepInIncompatibility("CookieMilk.CarryMeMaster")] [BepInIncompatibility("CookieMilk.UltimateServerControl")] [BepInIncompatibility("CookieMilk.DiscordControl")] [BepInIncompatibility("blacks7ar.SeedBed")] internal class RtDBiomes : BaseUnityPlugin { public const string PluginGUID = "Soloredis.RtDBiomes"; public const string PluginName = "RtDBiomes"; public const string PluginVersion = "3.1.16"; private AssetBundle MyAssets; private static bool isModded = true; private ConfigEntry<bool> LoggingEnable; private ConfigEntry<bool> ClutterVanilla; private ConfigEntry<bool> MeadowsClutter; private ConfigEntry<bool> BlackForestClutter; private ConfigEntry<bool> SwampClutter; private ConfigEntry<bool> PlainsClutter; private ConfigEntry<bool> MistlandsClutter; private ConfigEntry<bool> AshLandsClutter; private ConfigEntry<bool> DeepNorthClutter; public string[] PrefabList = new string[70] { "VanillaSwampLog_RtD", "VanillaSwampStump_RtD", "DeepNorthRock4_frac_RtD", "DeepNorthRock5_frac_RtD", "fx_leviathan_leave_RtD", "vfx_greydwarf_shaman_pray_RtD", "fx_goblinking_meteor_hit_RtD", "fx_goblinking_nova_RtD", "ThinPineStump", "PineWoodHalf", "PineWoodLog", "CottonWoodStump", "CottonWoodHalf", "CottonWoodLog", "AcaciaLogHalf", "AcaciaStump", "AcaciaLog", "OakWoodStump", "OakWoodHalf", "OakWoodLog", "BlossomStump", "BlossomLogHalf", "BlossomLog", "RedPineStump", "PineWoodLog1", "PineWoodHalf1", "MagicStump1", "MagicLog1Half", "MagicLog1", "MagicStump2", "MagicLog2Half", "MagicLog2", "MagicStump3", "MagicLog3Half", "MagicLog3", "MagicStump4", "MagicLog4Half", "MagicLog4", "MagicStump5", "MagicLog5Half", "MagicLog5", "MagicStump6", "MagicLog6Half", "MagicLog6", "MagicStump9", "MagicLog9Half", "MagicLog9", "MagicStump10", "MagicLog10Half", "MagicLog10", "PalmStump", "PalmLogHalf", "PalmLog", "DeadWoodStump", "DeadWoodHalf", "DeadWoodLog", "WillowLogHalf", "WillowStump", "WillowLog", "AcaciaLog4", "AcaciaStump4", "ShootStump_RtD", "YggaShoot_Log_RtD", "YggaShoot_LogHalf_RtD", "SwampWoodHalf", "SwampWoodHalfFix", "SwampWoodStump", "SwampWoodLog", "WinterPineStumpWhite", "WinterPineStumpRed" }; public string[] ItemList = new string[20] { "AcaciaSeeds_RtD", "BlossomSeeds_RtD", "CottonWoodSeeds_RtD", "OakWoodSeeds_RtD", "PalmTreeSeeds_RtD", "RedPineSeeds_RtD", "ThinPineSeeds_RtD", "WillowSeeds_RtD", "PlantSeedSwamp_RtD", "PlantSeedPlains_RtD", "PlantSeedMountain_RtD", "PlantSeedMistlands_RtD", "PlantSeedMeadows_RtD", "PlantSeedDeepNorth_RtD", "PlantSeedBlackForest_RtD", "PlantSeedAshLands_RtD", "AshLandsSeed2_RtD", "MapleSeed_RtD", "WinterPineSeeds2_RtD", "WinterPineSeeds1_RtD" }; public string[] StaticNoneList = new string[0]; public string[] MeadowsClutterList = new string[9] { "MeadowsClutter2_RtD", "MeadowsClutter3_RtD", "Meadows1_RtD", "Meadows2_RtD", "WormWood_RtD", "MeadowsGrass1_RtD", "MeadowsGrass2_RtD", "MeadowsGrass3_RtD", "MeadowsWeed1_RtD" }; public string[] BlackForestClutterList = new string[5] { "GreenGrass1_RtD", "BlackForest1_RtD", "BlackForest2_RtD", "ForestBush1_RtD", "ForestBush2_RtD" }; public string[] SwampClutterList = new string[10] { "MeadowsClutter1_RtD", "Swamps1_RtD", "Swamps2_RtD", "Swamps3_RtD", "SwampGrass1_RtD", "SwampGrass2_RtD", "SwampGrass3_RtD", "SwampGrass4_RtD", "Meadows3_RtD", "SwampPlant_RtD" }; public string[] PlainsClutterList = new string[4] { "Daisy_RtD", "PlainsGrass1_RtD", "PlainsGrass2_RtD", "PlainsGrass3_RtD" }; public string[] MistlandsClutterList = new string[3] { "Mistlands1_RtD", "Mistlands2_RtD", "Mistlands3_RtD" }; public string[] AshLandsClutterList = new string[6] { "DesertGrass1_RtD", "DesertGrass2_RtD", "DesertGrass3_RtD", "DesertGrass4_RtD", "DesertGrass5_RtD", "DesertGrass6_RtD" }; public string[] DeepNorthClutterList = new string[4] { "NorthGrass1_RtD", "NorthGrass2_RtD", "NorthGrass1_RtD", "NorthGrass2_RtD" }; public string[] MeadowsBushList = new string[11] { "MeadowsShroom1_RtD", "MeadowsShroom2_RtD", "MeadowsShroom3_RtD", "MeadowsShroom4_RtD", "MeadowsBush01_RtD", "MeadowsBush02_RtD", "MeadowsBush03_RtD", "MeadowsBush04_RtD", "MeadowsBush05_RtD", "MeadowsBush06_RtD", "SmallBush_RtD" }; public string[] BlackForestBushList = new string[19] { "BlackShroom1_RtD", "BlackShroom2_RtD", "BlackShroom3_RtD", "BlackShroom4_RtD", "BlackForestBush1_RtD", "BlackForestBush2_RtD", "BlackForestBush3_RtD", "BlackForestBush4_RtD", "BlackForestBush5_RtD", "BlackForestBush6_RtD", "BlackForestBush7_RtD", "BlackForestBush8_RtD", "ForestGreen1_RtD", "ForestGreen2_RtD", "ForestGreen3_RtD", "ForestGreen4_RtD", "RedPineSmall1_RtD", "RedPineSmall2_RtD", "RedPineSmall3_RtD" }; public string[] SwampBushList = new string[20] { "GreenShroom1_RtD", "GreenShroom2_RtD", "GreenShroom3_RtD", "GreenShroom4_RtD", "SwampBush1_RtD", "SwampBush2_RtD", "SwampBush3_RtD", "SwampBush4_RtD", "SwampBush5_RtD", "SwampBush6_RtD", "SwampBush7_RtD", "SwampBush8_RtD", "SwampBush9_RtD", "SwampBush10_RtD", "SwampBush11_RtD", "DeadIvy1_RtD", "DeadIvy2_RtD", "SwampBush12_RtD", "SwampBush13_RtD", "SwampBush14_RtD" }; public string[] MountainBushList = new string[5] { "AshLandsRock1_RtD", "AshLandsRock2_RtD", "AshLandsRock4_RtD", "AshLandsRock5_RtD", "AshLandsRock6_RtD" }; public string[] PlainsBushList = new string[27] { "PlainsBush1_RtD", "PlainsBush2_RtD", "PlainsBush3_RtD", "AshLandsBush1_RtD", "AshLandsBush2_RtD", "AshLandsBush5_RtD", "AshLandsBush6_RtD", "AshLandsBush11_RtD", "AshLandsBush12_RtD", "AshLandsBush13_RtD", "AshLandsBush14_RtD", "AshLandsBush15_RtD", "AshLandsBush16_RtD", "AshLandsBush17_RtD", "AshLandsBush18_RtD", "AshLandsBush19_RtD", "AshLandsBush20_RtD", "AshLandsBush21_RtD", "AshLandsBush22_RtD", "AshLandsBush3_RtD", "AshLandsBush4_RtD", "AshLandsBush23_RtD", "PlainsBush4_RtD", "PlainsBush5_RtD", "PlainsBush6_RtD", "PlainsBush7_RtD", "PlainsBush8_RtD" }; public string[] MistlandsBushList = new string[15] { "BlueShroom1_RtD", "BlueShroom2_RtD", "BlueShroom3_RtD", "BlueShroom4_RtD", "YellowShroom1_RtD", "YellowShroom2_RtD", "YellowShroom3_RtD", "YellowShroom4_RtD", "MistLandsBush1_RtD", "MistLandsBush2_RtD", "MistLandsBush3_RtD", "MistLandsBush4_RtD", "MistLandsBush5_RtD", "MistLandsBush6_RtD", "MistLandsBush7_RtD" }; public string[] AshLandsBushList = new string[7] { "AshLandsBush24_RtD", "AshLandsBush25_RtD", "AshLandsBush26_RtD", "RedShroom1_RtD", "RedShroom2_RtD", "RedShroom3_RtD", "RedShroom4_RtD" }; public string[] DeepNorthBushList = new string[12] { "MountainBush1_RtD", "MountainBush2_RtD", "MountainBush3_RtD", "MountainShroom1_RtD", "MountainShroom2_RtD", "MountainShroom3_RtD", "MountainShroom4_RtD", "MeadowsBush1_RtD", "MeadowsBush2_RtD", "MeadowsBush3_RtD", "MeadowsBush4_RtD", "MeadowsBush5_RtD" }; public string[] MeadowsTreeList = new string[5] { "ForestTree1_RtD", "WillowTree1_RtD", "WillowTree2_RtD", "CottonWood1_RtD", "CottonWood2_RtD" }; public string[] BlackForestTreeList = new string[7] { "RedPine1_RtD", "RedPine2_RtD", "RedPine3_RtD", "RedPine4_RtD", "RedPine_RtD", "Oak1_RtD", "Oak2_RtD" }; public string[] SwampTreeList = new string[18] { "MagicTree6_RtD", "MagicTree9_RtD", "MagicTree10_RtD", "SwampTree1_RtD", "SwampTree2_RtD", "SwampTree3_RtD", "SwampTree4_RtD", "SwampTree5_RtD", "SwampTree6_RtD", "DeadTree1_RtD", "DeadTree2_RtD", "DeadTree3_RtD", "DeadTree4_RtD", "DeadTree5_RtD", "DeadTree6_RtD", "DeadTree7_RtD", "DeadTree8_RtD", "DeadTree9_RtD" }; public string[] PlainsTreeList = new string[4] { "Acacia1_RtD", "Acacia2_RtD", "Acacia3_RtD", "Acacia4_RtD" }; public string[] MistlandsTreeList = new string[1] { "MagicTree1_RtD" }; public string[] AshLandsTreeList = new string[2] { "PalmTree1_RtD", "PalmTree2_RtD" }; public string[] DeepNorthTreeList = new string[13] { "ThinPine1_RtD", "ThinPine2_RtD", "WinterPine3_RtD", "WinterPine4_RtD", "WinterPine5_RtD", "Blossom1_RtD", "Blossom2_RtD", "Blossom3_RtD", "Blossom4_RtD", "Blossom5_RtD", "MagicTree3_RtD", "MagicTree4_RtD", "MagicTree5_RtD" }; public string[] DeepNorthRockList = new string[5] { "DeepNorthRock1_RtD", "DeepNorthRock2_RtD", "DeepNorthRock4_RtD", "DeepNorthRock5_RtD", "DeepNorthRock6_RtD" }; public string[] PlainsRockList = new string[5] { "SandRock1_RtD", "SandRock2_RtD", "SandRock3_RtD", "SandRock4_RtD", "SandRock5_RtD" }; public static VegetationConfig StaticNoneValues = new VegetationConfig { Min = 1f, Max = 2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)0, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2, InForest = true, ForestThresholdMin = 1.1f, ForestThresholdMax = 1.15f }; public static ClutterConfig MeadowsClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 500f, Biome = (Biome)1, MaxOceanDepth = 500f, MaxTilt = 10f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static ClutterConfig BlackForestClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 500f, Biome = (Biome)8, MaxOceanDepth = 500f, MaxTilt = 25f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static ClutterConfig SwampClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 0f, MaxAltitude = 500f, Biome = (Biome)2, MaxOceanDepth = 500f, MaxTilt = 50f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static ClutterConfig PlainsClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 500f, Biome = (Biome)16, MaxOceanDepth = 500f, MaxTilt = 50f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static ClutterConfig MistlandsClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 500f, Biome = (Biome)512, MaxOceanDepth = 500f, MaxTilt = 40f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static ClutterConfig AshLandsClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 500f, Biome = (Biome)32, MaxOceanDepth = 500f, MaxTilt = 40f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static ClutterConfig DeepNorthClutterValues = new ClutterConfig { Amount = 1, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1f, Biome = (Biome)64, MaxOceanDepth = 500f, MaxTilt = 40f, TerrainTilt = true, OnUncleared = true, OnCleared = false, Instanced = true, Enabled = true }; public static VegetationConfig MeadowsBushValues = new VegetationConfig { Min = 0.9f, Max = 1.5f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)1, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig BlackForestBushValues = new VegetationConfig { Min = 0.5f, Max = 0.9f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)8, MaxTilt = 40f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig SwampBushValues = new VegetationConfig { Min = 1.1f, Max = 1.5f, ScaleMin = 2.1f, ScaleMax = 2.8f, MinAltitude = 1f, Biome = (Biome)2, MaxTilt = 20f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MountainBushValues = new VegetationConfig { Min = 0.7f, Max = 0.9f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)4, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsBushValues = new VegetationConfig { Min = 0.7f, Max = 1.1f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)16, MaxTilt = 50f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MistlandsBushValues = new VegetationConfig { Min = 0.8f, Max = 1.2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)512, MaxTilt = 50f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig AshLandsBushValues = new VegetationConfig { Min = 1.9f, Max = 2.1f, ScaleMin = 1.4f, ScaleMax = 1.8f, MinAltitude = 1f, Biome = (Biome)32, MaxTilt = 50f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig DeepNorthBushValues = new VegetationConfig { Min = 0.5f, Max = 1.4f, ScaleMin = 1.3f, ScaleMax = 1.6f, MinAltitude = 1f, Biome = (Biome)64, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MeadowsTreeValues = new VegetationConfig { Min = 0.8f, Max = 1.2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)1, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig BlackForestTreeValues = new VegetationConfig { Min = 2f, Max = 2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)12, MaxTilt = 25f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig SwampTreeValues = new VegetationConfig { Min = 6f, Max = 8f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)2, MaxTilt = 40f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MountainTreeValues = new VegetationConfig { Min = 1f, Max = 5f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)4, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsTreeValues = new VegetationConfig { Min = 0.7f, Max = 1.2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)16, MaxTilt = 23f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MistlandsTreeValues = new VegetationConfig { Min = 1f, Max = 1f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)512, MaxTilt = 75f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsPalmValues = new VegetationConfig { Min = 2f, Max = 3f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = -0.5f, MaxAltitude = 10.1f, Biome = (Biome)16, MaxTilt = 60f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig DeepNorthTreeValues = new VegetationConfig { Min = 0.8f, Max = 1f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, Biome = (Biome)64, MaxTilt = 60f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsRockValues = new VegetationConfig { Min = 0.9f, Max = 1.1f, ScaleMin = 0.9f, ScaleMax = 1.1f, MinAltitude = 1f, Biome = (Biome)16, MaxTilt = 15f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig DeepNorthRockValues = new VegetationConfig { Min = 0.9f, Max = 1.1f, ScaleMin = 0.9f, ScaleMax = 1.1f, Biome = (Biome)64, MaxTilt = 35f, MaxTerrainDelta = 3f }; private CustomLocalization Localization; private void Awake() { LoadBundle(); CreateConfigs(); Localizations(); JSONSupport(); if (MeadowsClutter.Value) { MeadowsClutterConfig(); } if (BlackForestClutter.Value) { BlackForestClutterConfig(); } if (SwampClutter.Value) { SwampClutterConfig(); } if (PlainsClutter.Value) { PlainsClutterConfig(); } if (MistlandsClutter.Value) { MistlandsClutterConfig(); } if (AshLandsClutter.Value) { AshLandsClutterConfig(); } if (DeepNorthClutter.Value) { DeepNorthClutterConfig(); } MeadowsBushConfig(); BlackForestBushConfig(); SwampBushConfig(); MountainBushConfig(); PlainsBushConfig(); MistlandsBushConfig(); AshLandsBushConfig(); DeepNorthBushConfig(); MeadowsTreeConfig(); BlackForestTreeConfig(); SwampTreeConfig(); PlainsTreeConfig(); MistlandsTreeConfig(); AshLandsTreeConfig(); DeepNorthTreeConfig(); SwampLogConfig(); PlainsRockConfig(); DeepNorthRockConfig(); PrefabManager.OnVanillaPrefabsAvailable += OnVanillaPrefabsAvailable; ZoneManager.OnVanillaLocationsAvailable += AdjustVanillaVegetation; if (ClutterVanilla.Value) { ZoneManager.OnVanillaClutterAvailable += AdjustVanillaClutter; } if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogWarning((object)"Logging is enabled in the config."); } } private void SafeInvoke(Action action, string name) { try { action(); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception in {name}: {arg}"); } } private void OnVanillaPrefabsAvailable() { SafeInvoke(AddPrefabs, "AddPrefabs"); SafeInvoke(AddItems, "AddItems"); SafeInvoke(AddSaplings, "AddSaplings"); SafeInvoke(CreateRecipes, "CreateRecipes"); PrefabManager.OnVanillaPrefabsAvailable -= OnVanillaPrefabsAvailable; } private void LoadBundle() { if ((Object)(object)MyAssets != (Object)null) { return; } try { MyAssets = AssetUtils.LoadAssetBundleFromResources("rtdbiomes", Assembly.GetExecutingAssembly()); if ((Object)(object)MyAssets == (Object)null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load AssetBundle. Disabling mod."); ((Behaviour)this).enabled = false; } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundle: {arg}"); } } private void CreateConfigs() { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Expected O, but got Unknown //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Expected O, but got Unknown //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Expected O, but got Unknown //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Expected O, but got Unknown //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Expected O, but got Unknown //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Expected O, but got Unknown //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Expected O, but got Unknown //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Expected O, but got Unknown //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01ab: Expected O, but got Unknown //IL_01ab: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Expected O, but got Unknown //IL_01da: Unknown result type (might be due to invalid IL or missing references) //IL_01df: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Expected O, but got Unknown //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Expected O, but got Unknown //IL_0217: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Unknown result type (might be due to invalid IL or missing references) //IL_0225: Expected O, but got Unknown //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Expected O, but got Unknown try { ((BaseUnityPlugin)this).Config.SaveOnConfigSet = true; LoggingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Logging", "Enable", false, new ConfigDescription("Enables logging.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); ClutterVanilla = ((BaseUnityPlugin)this).Config.Bind<bool>("Vanilla Grass", "Enable", true, new ConfigDescription("Enable or Disable Vanilla grass reductions. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); MeadowsClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("Meadows Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); BlackForestClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("BlackForest Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); SwampClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("Swamp Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); PlainsClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("Plains Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); MistlandsClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("Mistlands Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); AshLandsClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("AshLands Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); DeepNorthClutter = ((BaseUnityPlugin)this).Config.Bind<bool>("DeepNorth Grass", "Enable", true, new ConfigDescription("Enable or Disable Clutter. Does not sync with server as clutter is client sided only.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } } private void AdjustVanillaVegetation() { //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_021a: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Unknown result type (might be due to invalid IL or missing references) try { ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("Beech1"); zoneVegetation.m_min = 28f; zoneVegetation.m_max = 30f; ZoneVegetation zoneVegetation2 = ZoneManager.Instance.GetZoneVegetation("Birch1"); zoneVegetation2.m_min = 7f; zoneVegetation2.m_max = 8f; ZoneVegetation zoneVegetation3 = ZoneManager.Instance.GetZoneVegetation("Beech_small1"); zoneVegetation3.m_groupSizeMin = 1; zoneVegetation3.m_groupSizeMax = 3; zoneVegetation3.m_min = 1f; zoneVegetation3.m_max = 2f; ZoneVegetation zoneVegetation4 = ZoneManager.Instance.GetZoneVegetation("Beech_small2"); zoneVegetation4.m_groupSizeMin = 1; zoneVegetation4.m_groupSizeMax = 4; zoneVegetation4.m_min = 1f; zoneVegetation4.m_max = 2f; ZoneVegetation zoneVegetation5 = ZoneManager.Instance.GetZoneVegetation("Pinetree_01"); zoneVegetation5.m_min = 28f; zoneVegetation5.m_max = 30f; zoneVegetation5.m_biome = (Biome)8; ZoneVegetation zoneVegetation6 = ZoneManager.Instance.GetZoneVegetation("SwampTree2"); zoneVegetation6.m_groupSizeMin = 0; zoneVegetation6.m_groupSizeMax = 0; zoneVegetation6.m_min = 0f; zoneVegetation6.m_max = 0f; ZoneLocation zoneLocation = ZoneManager.Instance.GetZoneLocation("InfestedTree01"); zoneLocation.m_enable = false; ZoneVegetation zoneVegetation7 = ZoneManager.Instance.GetZoneVegetation("SwampTree1"); zoneVegetation7.m_min = 24f; zoneVegetation7.m_max = 26f; ZoneVegetation zoneVegetation8 = ZoneManager.Instance.GetZoneVegetation("SwampTree2_log"); zoneVegetation8.m_enable = false; ZoneVegetation zoneVegetation9 = ZoneManager.Instance.GetZoneVegetation("FirTree"); zoneVegetation9.m_min = 1f; zoneVegetation9.m_max = 1f; zoneVegetation9.m_biome = (Biome)4; ZoneVegetation zoneVegetation10 = ZoneManager.Instance.GetZoneVegetation("Bush01_heath"); zoneVegetation10.m_groupSizeMin = 1; zoneVegetation10.m_groupSizeMax = 1; zoneVegetation10.m_min = 2f; zoneVegetation10.m_max = 4f; zoneVegetation10.m_biome = (Biome)16; ZoneVegetation zoneVegetation11 = ZoneManager.Instance.GetZoneVegetation("shrub_2"); zoneVegetation11.m_min = 40f; zoneVegetation11.m_max = 45f; zoneVegetation11.m_biome = (Biome)8; ZoneVegetation zoneVegetation12 = ZoneManager.Instance.GetZoneVegetation("YggaShoot1"); zoneVegetation12.m_max = 3f; zoneVegetation12.m_biome = (Biome)512; ZoneVegetation zoneVegetation13 = ZoneManager.Instance.GetZoneVegetation("YggaShoot2"); zoneVegetation13.m_max = 3f; zoneVegetation13.m_biome = (Biome)512; ZoneVegetation zoneVegetation14 = ZoneManager.Instance.GetZoneVegetation("YggaShoot3"); zoneVegetation14.m_max = 3f; zoneVegetation14.m_biome = (Biome)512; } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } finally { ZoneManager.OnVanillaLocationsAvailable -= AdjustVanillaClutter; } } private void AdjustVanillaClutter() { 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; Clutter clutter3 = ZoneManager.Instance.GetClutter("forest groundcover short brown"); clutter3.m_enabled = true; clutter3.m_amount = 35; Clutter clutter4 = ZoneManager.Instance.GetClutter("forest groundcover"); clutter4.m_enabled = true; clutter4.m_amount = 35; Clutter clutter5 = ZoneManager.Instance.GetClutter("swampgrass"); clutter5.m_enabled = true; clutter5.m_amount = 35; Clutter clutter6 = ZoneManager.Instance.GetClutter("heath grass"); clutter6.m_enabled = true; clutter6.m_amount = 20; Clutter clutter7 = ZoneManager.Instance.GetClutter("heath grass green"); clutter7.m_enabled = true; clutter7.m_amount = 20; } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } finally { ZoneManager.OnVanillaClutterAvailable -= AdjustVanillaClutter; } } private void AddPrefabs() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Expected O, but got Unknown try { string[] prefabList = PrefabList; foreach (string text in prefabList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { GameObject prefab = Cache.GetPrefab<GameObject>(text); if ((Object)(object)prefab == (Object)null) { CustomPrefab val2 = new CustomPrefab(val, true); PrefabManager.Instance.AddPrefab(val2); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + text + " to the Object database")); } } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding prefabs: {arg}"); } } private void StaticVegetationList() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] staticNoneList = StaticNoneList; foreach (string text in staticNoneList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, StaticNoneValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MeadowsClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] meadowsClutterList = MeadowsClutterList; foreach (string text in meadowsClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, MeadowsClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void BlackForestClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] blackForestClutterList = BlackForestClutterList; foreach (string text in blackForestClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, BlackForestClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void SwampClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] swampClutterList = SwampClutterList; foreach (string text in swampClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, SwampClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void PlainsClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] plainsClutterList = PlainsClutterList; foreach (string text in plainsClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, PlainsClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MistlandsClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] mistlandsClutterList = MistlandsClutterList; foreach (string text in mistlandsClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, MistlandsClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void AshLandsClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] ashLandsClutterList = AshLandsClutterList; foreach (string text in ashLandsClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, AshLandsClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void DeepNorthClutterConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] deepNorthClutterList = DeepNorthClutterList; foreach (string text in deepNorthClutterList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomClutter(new CustomClutter(val, true, DeepNorthClutterValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Clutter: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MeadowsBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] meadowsBushList = MeadowsBushList; foreach (string text in meadowsBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, MeadowsBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void BlackForestBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] blackForestBushList = BlackForestBushList; foreach (string text in blackForestBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, BlackForestBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void SwampBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] swampBushList = SwampBushList; foreach (string text in swampBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, SwampBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MountainBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] mountainBushList = MountainBushList; foreach (string text in mountainBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, MountainBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void PlainsBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] plainsBushList = PlainsBushList; foreach (string text in plainsBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, PlainsBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MistlandsBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] mistlandsBushList = MistlandsBushList; foreach (string text in mistlandsBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, MistlandsBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void AshLandsBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] ashLandsBushList = AshLandsBushList; foreach (string text in ashLandsBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, AshLandsBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void DeepNorthBushConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] deepNorthBushList = DeepNorthBushList; foreach (string text in deepNorthBushList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, DeepNorthBushValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MeadowsTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] meadowsTreeList = MeadowsTreeList; foreach (string text in meadowsTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, MeadowsTreeValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void BlackForestTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] blackForestTreeList = BlackForestTreeList; foreach (string text in blackForestTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, BlackForestTreeValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void SwampTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] swampTreeList = SwampTreeList; foreach (string text in swampTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, SwampTreeValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void PlainsTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] plainsTreeList = PlainsTreeList; foreach (string text in plainsTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, PlainsTreeValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void MistlandsTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] mistlandsTreeList = MistlandsTreeList; foreach (string text in mistlandsTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, MistlandsTreeValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void AshLandsTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] ashLandsTreeList = AshLandsTreeList; foreach (string text in ashLandsTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, PlainsPalmValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void PlainsRockConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] plainsRockList = PlainsRockList; foreach (string text in plainsRockList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, PlainsRockValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void DeepNorthRockConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] deepNorthRockList = DeepNorthRockList; foreach (string text in deepNorthRockList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, DeepNorthRockValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void SwampLogConfig() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Expected O, but got Unknown //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Expected O, but got Unknown //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("SwampTree2_log_RtD"); VegetationConfig val2 = new VegetationConfig(); VegetationConfig obj = val2; Biome[] array = new Biome[4]; RuntimeHelpers.InitializeArray(array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array); val2.Max = 1f; val2.ScaleMin = 1.9f; val2.ScaleMax = 3f; val2.MinAltitude = -0.5f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val3 = new CustomVegetation(val, true, val2); ZoneManager.Instance.AddCustomVegetation(val3); GameObject val4 = MyAssets.LoadAsset<GameObject>("MagicTree2_RtD"); val2 = new VegetationConfig(); VegetationConfig obj2 = val2; Biome[] array2 = new Biome[3]; RuntimeHelpers.InitializeArray(array2, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array2); val2.Max = 1f; val2.ScaleMin = 1.9f; val2.ScaleMax = 3f; val2.MinAltitude = -0.5f; val2.MaxTilt = 30f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val5 = new CustomVegetation(val4, true, val2); ZoneManager.Instance.AddCustomVegetation(val5); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void DeepNorthTreeConfig() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { string[] deepNorthTreeList = DeepNorthTreeList; foreach (string text in deepNorthTreeList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, DeepNorthTreeValues)); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void AddItems() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Expected O, but got Unknown try { string[] itemList = ItemList; foreach (string text in itemList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { GameObject prefab = Cache.GetPrefab<GameObject>(text); if ((Object)(object)prefab == (Object)null) { CustomItem val2 = new CustomItem(val, true); ItemManager.Instance.AddItem(val2); if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + text + " to the Object database")); } } } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database")); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding prefabs: {arg}"); } } public void JSONSupport() { TextAsset[] array = MyAssets.LoadAllAssets<TextAsset>(); TextAsset[] array2 = array; foreach (TextAsset val in array2) { string text = ((Object)val).name.Replace("_RtDBiomes.json", null); Localization.AddJsonFile(text, ((object)val).ToString()); } } public void Localizations() { LocalizationManager instance = LocalizationManager.Instance; Localization = ((instance != null) ? instance.GetLocalization() : null); if (Localization == null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Localization system not ready."); return; } CustomLocalization localization = Localization; string text = "English"; localization.AddTranslation(ref text, new Dictionary<string, string> { { "AshLandsRock1_RtD", "Charred Rock" }, { "AshLandsRock2_RtD", "Charred Rock" }, { "AshLandsRock4_RtD", "Charred Rock" }, { "AshLandsRock5_RtD", "Charred Rock" }, { "AshLandsRock6_RtD", "Charred Rock" }, { "AshLandsBush1_RtD", "Dead Plant" }, { "AshLandsPlantPiece1_RtD", "Dead Plant" }, { "AshLandsBush2_RtD", "Dead Plant" }, { "AshLandsBush3_RtD", "Dead Plant" }, { "AshLandsBush4_RtD", "Dead Plant" }, { "AshLandsBush5_RtD", "Dead Plant" }, { "AshLandsBush6_RtD", "Dead Plant" }, { "AshLandsBush7_RtD", "Dead Plant" }, { "AshLandsBush8_RtD", "Dead Plant" }, { "AshLandsBush9_RtD", "Dead Plant" }, { "AshLandsBush10_RtD", "Dead Plant" }, { "AshLandsBush11_RtD", "Dead Plant" }, { "AshLandsBush12_RtD", "Dead Plant" }, { "AshLandsBush13_RtD", "Dead Plant" }, { "AshLandsBush14_RtD", "Dead Plant" }, { "AshLandsBush15_RtD", "Dead Plant" }, { "AshLandsBush16_RtD", "Dead Plant" }, { "AshLandsBush17_RtD", "Dead Plant" }, { "AshLandsBush18_RtD", "Dead Plant" }, { "AshLandsBush19_RtD", "Dead Plant" }, { "AshLandsBush20_RtD", "Dead Plant" }, { "AshLandsBush21_RtD", "Dead Plant" }, { "AshLandsBush22_RtD", "Dead Plant" }, { "AshLandsBush23_RtD", "Dead Plant" }, { "AshLandsBush24_RtD", "Dead Plant" }, { "AshLandsBush25_RtD", "Dead Plant" }, { "AshLandsBush26_RtD", "Dead Plant" }, { "BlackForestBush1_RtD", "WildFlower" }, { "BlackForestBush2_RtD", "WildFlower" }, { "BlackForestBush3_RtD", "Bush" }, { "BlackForestBush4_RtD", "Bush" }, { "BlackForestBush5_RtD", "Bush" }, { "BlackForestBush6_RtD", "Burdock" }, { "BlackForestBush7_RtD", "Burdock" }, { "BlackForestBush8_RtD", "Burdock" }, { "ForestGreen1_RtD", "Evergreen Bush" }, { "ForestGreen2_RtD", "Evergreen Bush" }, { "ForestGreen3_RtD", "Evergreen Bush" }, { "ForestGreen4_RtD", "Evergreen Bush" }, { "DeadWoodHalf", "Dead Log" }, { "DeadWoodLog", "Dead Log" }, { "DeadWoodStump", "Dead Stump" }, { "DeadTree1_RtD", "Dead Tree" }, { "DeadTree2_RtD", "Dead Tree" }, { "DeadTree3_RtD", "Dead Tree" }, { "DeadTree4_RtD", "Dead Tree" }, { "DeadTree5_RtD", "Dead Tree" }, { "DeadTree6_RtD", "Dead Tree" }, { "DeadTree7_RtD", "Dead Tree" }, { "DeadTree8_RtD", "Dead Tree" }, { "DeadTree9_RtD", "Dead Tree" }, { "DeepNorthBush1_RtD", "WildFlower" }, { "DeepNorthBush2_RtD", "WildFlower" }, { "DeepNorthBush3_RtD", "WildFlower" }, { "DeepNorthBush4_RtD", "WildFlower" }, { "DeepNorthBush5_RtD", "WildFlower" }, { "DeepNorthBush6_RtD", "WildFlower" }, { "DeepNorthBush7_RtD", "WildFlower" }, { "DeepNorthBush8_RtD", "WildFlower" }, { "DeepNorthBush9_RtD", "WildFlower" }, { "DeepNorthBush10_RtD", "WildFlower" }, { "DeepNorthRock1_RtD", "Icy Rock" }, { "DeepNorthRock2_RtD", "Icy Rock" }, { "DeepNorthRock4_RtD", "Icy Rock" }, { "DeepNorthRock5_RtD", "Icy Rock" }, { "DeepNorthRock6_RtD", "Icy Rock" }, { "AcaciaLog", "Log" }, { "AcaciaLogHalf", "Log" }, { "BlossomLog", "Log" }, { "BlossomLogHalf", "Log" }, { "CottonWoodLog", "Log" }, { "CottonWoodHalf", "Log" }, { "OakWoodLog", "Log" }, { "OakWoodHalf", "Log" }, { "PineWoodHalf", "Log" }, { "PineWoodLog", "Log" }, { "PineWoodLog1", "Log" }, { "ForestTree1_RtD", "Maple Tree" }, { "ForestTree2_RtD", "Maple Tree" }, { "MagicLog1", "Log" }, { "MagicLog2", "Log" }, { "MagicLog3", "Log" }, { "MagicLog6", "Log" }, { "MagicLog9", "Log" }, { "MagicLog10", "Log" }, { "MagicStump1", "Stump" }, { "MagicStump2", "Stump" }, { "MagicStump3", "Stump" }, { "MagicStump6", "Stump" }, { "MagicStump9", "Stump" }, { "MagicStump10", "Stump" }, { "MagicTree1_RtD", "Magic Tree" }, { "MagicTree2_RtD", "Magic Tree" }, { "MagicTree3_RtD", "Magic Tree" }, { "MagicTree4_RtD", "Magic Tree" }, { "MagicTree5_RtD", "Magic Tree" }, { "MagicTree6_RtD", "Dead Tree" }, { "MagicTree9_RtD", "Dead Tree" }, { "MagicTree10_RtD", "Dead Tree" }, { "MeadowsBush1_RtD", "Magical Flower" }, { "MeadowsBush2_RtD", "Magical Flower" }, { "MeadowsBush3_RtD", "Magical Flower" }, { "MeadowsBush4_RtD", "Magical Flower" }, { "MeadowsBush5_RtD", "Magical Flower" }, { "MeadowsShroom1_RtD", "Large Mushroom" }, { "MeadowsShroom2_RtD", "Large Mushroom" }, { "MeadowsShroom3_RtD", "Large Mushroom" }, { "MeadowsShroom4_RtD", "Large Mushroom" }, { "MeadowsBush01_RtD", "Strange Plant" }, { "MeadowsBush02_RtD", "Strange Plant" }, { "MeadowsBush03_RtD", "Strange Plant" }, { "MeadowsBush04_RtD", "Sapling" }, { "MeadowsBush05_RtD", "Bush" }, { "MeadowsBush06_RtD", "Bush" }, { "SmallBush_RtD", "Bush" }, { "MistLandsBush1_RtD", "Strange Plant" }, { "MistLandsBush2_RtD", "Strange Plant" }, { "MistLandsBush3_RtD", "Strange Plant" }, { "MistLandsBush4_RtD", "Strange Plant" }, { "MistLandsBush5_RtD", "Strange Plant" }, { "MistLandsBush6_RtD", "Magical Flower" }, { "MistLandsBush7_RtD", "Strange Plant" }, { "ShootStump_RtD", "Yggdrasil Stump" }, { "YggaShoot_Log_RtD", "Yggdrasil Log" }, { "YggaShoot_LogHalf_RtD", "Yggdrasil Log" }, { "YggdrasilTree1_RtD", "Yggdrasil" }, { "YggdrasilTree2_RtD", "Yggdrasil" }, { "EverGreen1_RtD", "Evergreen Bush" }, { "EverGreen2_RtD", "Evergreen Bush" }, { "EverGreen3_RtD", "Evergreen Bush" }, { "EverGreen4_RtD", "Evergreen Bush" }, { "MountainBush1_RtD", "Winter WildFlower" }, { "MountainBush2_RtD", "Winter WildFlower" }, { "MountainBush3_RtD", "Winter WildFlower" }, { "RedShroom1_RtD", "Giant Mushroom" }, { "RedShroom2_RtD", "Giant Mushroom" }, { "RedShroom3_RtD", "Giant Mushroom" }, { "RedShroom4_RtD", "Giant Mushroom" }, { "BlackShroom1_RtD", "Giant Mushroom" }, { "BlackShroom2_RtD", "Giant Mushroom" }, { "BlackShroom3_RtD", "Giant Mushroom" }, { "BlackShroom4_RtD", "Giant Mushroom" }, { "BlueShroom1_RtD", "Giant Mushroom" }, { "BlueShroom2_RtD", "Giant Mushroom" }, { "BlueShroom3_RtD", "Giant Mushroom" }, { "BlueShroom4_RtD", "Giant Mushroom" }, { "YellowShroom1_RtD", "Giant Mushroom" }, { "YellowShroom2_RtD", "Giant Mushroom" }, { "YellowShroom3_RtD", "Giant Mushroom" }, { "YellowShroom4_RtD", "Giant Mushroom" }, { "GreenShroom1_RtD", "Giant Mushroom" }, { "GreenShroom2_RtD", "Giant Mushroom" }, { "GreenShroom3_RtD", "Giant Mushroom" }, { "GreenShroom4_RtD", "Giant Mushroom" }, { "PalmLog", "Log" }, { "PalmLogHalf", "Log" }, { "PalmStump", "Log" }, { "PalmTree1_RtD", "Palm Tree" }, { "PalmTree2_RtD", "Palm Tree" }, { "Acacia4_RtD", "Acacia Tree" }, { "AcaciaLog4", "Log" }, { "AcaciaStump4", "Stump" }, { "PlainsBush4_RtD", "Bamboo" }, { "PlainsBush5_RtD", "Bamboo" }, { "PlainsBush6_RtD", "Bamboo" }, { "PlainsBush7_RtD", "Bamboo" }, { "PlainsBush8_RtD", "Bamboo" }, { "Acacia1_RtD", "Acacia Tree" }, { "Acacia2_RtD", "Acacia Tree" }, { "Acacia3_RtD", "Acacia Tree" }, { "Blossom1_RtD", "Flowering DogWood" }, { "Blossom2_RtD", "Flowering DogWood" }, { "Blossom3_RtD", "Flowering DogWood" }, { "Blossom4_RtD", "Flowering DogWood" }, { "Blossom5_RtD", "Flowering DogWood" }, { "CottonWood1_RtD", "Cotton Wood" }, { "CottonWood2_RtD", "Cotton Wood" }, { "Oak1_RtD", "Red Oak" }, { "Oak2_RtD", "Red Oak" }, { "RedPine_RtD", "Red Pine" }, { "ThinPine1_RtD", "Winter Pine" }, { "ThinPine2_RtD", "Winter Pine" }, { "WinterPine1_RtD", "Winter Pine" }, { "WinterPine2_RtD", "Winter Pine" }, { "WinterPine3_RtD", "Winter Pine" }, { "WinterPine4_RtD", "Winter Pine" }, { "WinterPine5_RtD", "Winter Pine" }, { "AcaciaStump", "Stump" }, { "BlossomStump", "Stump" }, { "CottonWoodStump", "Stump" }, { "OakWoodStump", "Stump" }, { "PineWoodStump", "Stump" }, { "SwampBush1_RtD", "Rotting Sapling" }, { "SwampBush2_RtD", "Rotting Sapling" }, { "SwampBush3_RtD", "Strange Plant" }, { "SwampBush4_RtD", "Strange Plant" }, { "SwampBush5_RtD", "Strange Plant" }, { "SwampBush6_RtD", "Strange Plant" }, { "SwampBush7_RtD", "Strange Plant" }, { "SwampBush8_RtD", "Strange Plant" }, { "SwampBush9_RtD", "Strange Plant" }, { "SwampBush10_RtD", "Strange Plant" }, { "SwampBush11_RtD", "Strange Plant" }, { "SwampBush12_RtD", "Death Bush" }, { "SwampBush13_RtD", "Death Bush" }, { "SwampBush14_RtD", "Death Bush" }, { "SwampWoodHalf", "Log" }, { "SwampWoodLog", "Log" }, { "SwampTree1_RtD", "Ancient Tree" }, { "SwampTree2_RtD", "Ancient Tree" }, { "SwampTree3_RtD", "Ancient Tree" }, { "SwampTree4_RtD", "Ancient Tree" }, { "SwampTree5_RtD", "Ancient Tree" }, { "SwampTree6_RtD", "Ancient Tree" }, { "DeadIvy1_RtD", "Dead Ivy" }, { "DeadIvy2_RtD", "Dead Ivy" }, { "WillowLog", "Log" }, { "WillowLogHalf", "Log" }, { "WillowStump", "Stump" }, { "SwampWoodStump", "Stump" }, { "SwampWoodStump1", "Stump" }, { "WillowTree1_RtD", "Willow Tree" }, { "WillowTree2_RtD", "Willow Tree" }, { "MountainShroom1_RtD", "Giant Mushroom" }, { "MountainShroom2_RtD", "Giant Mushroom" }, { "MountainShroom3_RtD", "Giant Mushroom" }, { "MountainShroom4_RtD", "Giant Mushroom" }, { "AcaciaSeeds_RtD", "Acacia Seeds" }, { "AcaciaSeeds_desc_RtD", "Used to plant Acacia Trees" }, { "BlossomSeeds_RtD", "DogWood Seeds" }, { "BlossomSeeds_desc_RtD", "Used to plant DogWood Trees" }, { "CottonWoodSeeds_RtD", "CottonWood Seeds" }, { "CottonWoodSeeds_desc_RtD", "Used to plant CottonWood Trees" }, { "OakWoodSeeds_RtD", "Acorns" }, { "OakWoodSeeds_desc_RtD", "Used to plant OakWood Trees" }, { "PalmTreeSeeds_RtD", "Well its not a Coconut.." }, { "PalmTreeSeeds_desc_RtD", "Used to plant Palm Trees" }, { "RedPineSeeds_RtD", "Red PineCone" }, { "RedPineSeeds_desc_RtD", "Used to Red Pine Trees" }, { "ThinPineSeeds_RtD", "Green PineCone" }, { "ThinPineSeeds_desc_RtD", "Used to plant more Pine Trees" }, { "WillowSeeds_RtD", "Willow Tree Seed" }, { "WillowSeeds_desc_RtD", "Used to plant Willow Trees" }, { "WinterPineSeeds1_RtD", "Winter PineCone" }, { "WinterPineSeeds1_desc_RtD", "Used to plant Winter Pine Trees" }, { "WinterPineSeeds2_RtD", "Frosty PineCone" }, { "WinterPineSeeds2_desc_RtD", "Used to plant Winter Pine Trees" }, { "DeepNorthRock4_frac_RtD", "Its a rock, what did you expect?" }, { "DeepNorthRock5_frac_RtD", "Its a rock, what did you expect?" }, { "PlantSeedAshLands_RtD", "AshLands Seed" }, { "PlantSeedAshLands_desc_RtD", "A seed to plant all AshLands plants." }, { "PlantSeedBlackForest_RtD", "BlackForest Seed" }, { "PlantSeedBlackForest_desc_RtD", "A seed to plant all BlackForest plants." }, { "PlantSeedDeepNorth_RtD", "DeepNorth Seed" }, { "PlantSeedDeepNorth_desc_RtD", "A seed to plant all DeepNorth plants." }, { "PlantSeedMeadows_RtD", "Meadows Seed" }, { "PlantSeedMeadows_desc_RtD", "A seed to plant all Meadows plants." }, { "PlantSeedMistlands_RtD", "Mistlands Seed" }, { "PlantSeedMistlands_desc_RtD", "A seed to plant all Mistlands plants." }, { "PlantSeedMountain_RtD", "Mountain Seed" }, { "PlantSeedMoutain_desc_RtD", "A seed to plant all Mountain plants." }, { "PlantSeedPlains_RtD", "Plains Seed" }, { "PlantSeedPlains_desc_RtD", "A seed to plant all Plains plants." }, { "PlantSeedSwamp_RtD", "Swamp Seed" }, { "PlantSeedSwamp_desc_RtD", "A seed to plant all Swamp plants." }, { "MapleSeed_RtD", "Maple Seed" }, { "MapleSeed_desc", "Used for planting" }, { "AshLandsSeed2_RtD", "AshSeed" }, { "AshLandsSeed2_desc_RtD", "Used for planting" }, { "RedPineSmall1_RtD", "Red Pine" }, { "RedPineSmall2_RtD", "Red Pine" }, { "RedPineSmall3_RtD", "Red Pine" }, { "RedPineSmall4_RtD", "Red Pine" }, { "RedPineSmall5_RtD", "Red Pine" }, { "AcaciaSapling_RtD", "Acacia Sapling" }, { "BlossomSapling_RtD", "DogWood Sapling" }, { "CottonWoodSapling_RtD", "CottonWood Sapling" }, { "OakSapling_RtD", "OakWood Sapling" }, { "PalmTreeSapling_RtD", "Palm Sapling" }, { "RedPineSapling_RtD", "RedPine Sapling" }, { "ThinPineSapling_RtD", "GreenPine Sapling" }, { "WillowSapling_RtD", "Willow Sapling" }, { "WinterPineSapling1_RtD", "WinterPine Sapling" }, { "WinterPineSapling2_RtD", "WinterPine Sapling" }, { "MapleSapling1_RtD", "Maple Sapling" }, { "MapleSapling2_RtD", "Maple Sapling" }, { "SwampSapling1_RtD", "Diseased Sapling" }, { "SwampSapling2_RtD", "Diseased Sapling" }, { "Sapling1P_RtD", "Small Tree" }, { "Sapling2P_RtD", "Small Tree" }, { "AshLandsSaplingD1_RtD", "Diseased Sapling" }, { "AshLandsSaplingD3_RtD", "Diseased Sapling" }, { "IvyWallCD_1_FB_RtD", "Vines Blue" }, { "IvyWallCD_2_FB_RtD", "Vines Blue" }, { "IvyWallD_1_FB_RtD", "Vines Blue" }, { "IvyWallD_2_FB_RtD", "Vines Blue" }, { "IvyWallD_3_FB_RtD", "Vines Blue" }, { "IvyWallD_4_FB_RtD", "Vines Blue" }, { "IvyWallD_5_FB_RtD", "Vines Blue" }, { "IvyWallD_6_FB_RtD", "Vines Blue" }, { "IvyWallU_1_FB_RtD", "Vines Blue" }, { "IvyWallU_2_FB_RtD", "Vines Blue" }, { "IvyWallU_3_FB_RtD", "Vines Blue" }, { "IvyWallU_4_FB_RtD", "Vines Blue" }, { "IvyWallWD_1_FB_RtD", "Vines Blue" }, { "IvyWallWD_2_FB_RtD", "Vines Blue" }, { "IvyWallD_1_FC_RtD", "Vines Lt Pink" }, { "IvyWallD_2_FC_RtD", "Vines Lt Pink" }, { "IvyWallD_3_FC_RtD", "Vines Lt Pink" }, { "IvyWallD_4_FC_RtD", "Vines Lt Pink" }, { "IvyWallD_5_FC_RtD", "Vines Lt Pink" }, { "IvyWallD_6_FC_RtD", "Vines Lt Pink" }, { "IvyWallD_1_FE_RtD", "Vines Gold" }, { "IvyWallD_2_FE_RtD", "Vines Gold" }, { "IvyWallD_3_FE_RtD", "Vines Gold" }, { "IvyWallD_4_FE_RtD", "Vines Gold" }, { "IvyWallD_5_FE_RtD", "Vines Gold" }, { "IvyWallD_6_FE_RtD", "Vines Gold" }, { "IvyWallU_1_FE_RtD", "Vines Gold" }, { "IvyWallU_2_FE_RtD", "Vines Gold" }, { "IvyWallU_3_FE_RtD", "Vines Gold" }, { "IvyWallU_4_FE_RtD", "Vines Gold" }, { "IvyWallWD_1_FE_RtD", "Vines Gold" }, { "IvyWallWD_2_FE_RtD", "Vines Gold" }, { "IvyWallD_1_FP_RtD", "Vines Dark Pink" }, { "IvyWallD_2_FP_RtD", "Vines Dark Pink" }, { "IvyWallD_3_FP_RtD", "Vines Dark Pink" }, { "IvyWallD_4_FP_RtD", "Vines Dark Pink" }, { "IvyWallD_5_FP_RtD", "Vines Dark Pink" }, { "IvyWallD_6_FP_RtD", "Vines Dark Pink" }, { "IvyWallU_1_FP_RtD", "Vines Dark Pink" }, { "IvyWallU_2_FP_RtD", "Vines Dark Pink" }, { "IvyWallU_3_FP_RtD", "Vines Dark Pink" }, { "IvyWallU_4_FP_RtD", "Vines Dark Pink" }, { "IvyWallWD_1_FP_RtD", "Vines Dark Pink" }, { "IvyWallWD_2_FP_RtD", "Vines Dark Pink" }, { "IvyWallD_1_FR_RtD", "Vines Red" }, { "IvyWallD_2_FR_RtD", "Vines Red" }, { "IvyWallD_3_FR_RtD", "Vines Red" }, { "IvyWallD_4_FR_RtD", "Vines Red" }, { "IvyWallD_5_FR_RtD", "Vines Red" }, { "IvyWallD_6_FR_RtD", "Vines Red" }, { "IvyWallU_1_FR_RtD", "Vines Red" }, { "IvyWallU_2_FR_RtD", "Vines Red" }, { "IvyWallU_3_FR_RtD", "Vines Red" }, { "IvyWallU_4_FR_RtD", "Vines Red" }, { "IvyWallWD_1_FR_RtD", "Vines Red" }, { "IvyWallWD_2_FR_RtD", "Vines Red" }, { "IvyFloor_1_FS_RtD", "Floor Vines Large" }, { "IvyFloor_2_FS_RtD", "Floor Vines Long" }, { "IvyFloor_3_FS_RtD", "Floor Vines Small" }, { "IvyFloor_4_FS_RtD", "Floor Vines Extra Small" }, { "IvyWallD_1_FS_RtD", "Vines Gold Purple" }, { "IvyWallD_2_FS_RtD", "Vines Gold Purple" }, { "IvyWallD_3_FS_RtD", "Vines Gold Purple" }, { "IvyWallD_4_FS_RtD", "Vines Gold Purple" }, { "IvyWallD_5_FS_RtD", "Vines Gold Purple" }, { "IvyWallD_6_FS_RtD", "Vines Gold Purple" }, { "IvyWallU_1_FS_RtD", "Vines Gold Purple" }, { "IvyWallU_2_FS_RtD", "Vines Gold Purple" }, { "IvyWallU_3_FS_RtD", "Vines Gold Purple" }, { "IvyWallU_4_FS_RtD", "Vines Gold Purple" }, { "IvyWallWD_1_FS_RtD", "Vines Gold Purple" }, { "IvyWallWD_2_FS_RtD", "Vines Gold Purple" }, { "IvyWallD_1_FV_RtD", "Vines Gold Lt Purple" }, { "IIvyWallD_2_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallD_3_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallD_4_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallD_5_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallD_6_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallU_1_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallU_2_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallU_3_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallU_4_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallWD_1_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallWD_2_FV_RtD", "Vines Gold Lt Purple" }, { "IvyWallD_1_RtD", "Vines No Flower" }, { "IvyWallD_2_RtD", "Vines No Flower" }, { "IvyWallD_3_RtD", "Vines No Flower" }, { "IvyWallD_4_RtD", "Vines No Flower" }, { "IvyWallD_5_RtD", "Vines No Flower" }, { "IvyWallD_6_RtD", "Vines No Flower" }, { "IvyWallU_1_RtD", "Vines No Flower" }, { "IvyWallU_2_RtD", "Vines No Flower" }, { "IvyWallU_3_RtD", "Vines No Flower" }, { "IvyWallU_4_RtD", "Vines No Flower" }, { "AshLandsBush1P_RtD", "Diseased Plant" }, { "AshLandsBush2P_RtD", "Diseased Plant" }, { "AshLandsBush3P_RtD", "Cactus" }, { "AshLandsBush4P_RtD", "Cactus" }, { "AshLandsBush5P_RtD", "Diseased Plant" }, { "AshLandsBush6P_RtD", "Diseased Plant" }, { "AshLandsBush7P_RtD", "Diseased Plant" }, { "AshLandsBush8P_RtD", "Diseased Plant" }, { "AshLandsBush9P_RtD", "Diseased Plant" }, { "AshLandsBush10P_RtD", "Diseased Plant" }, { "AshLandsBush11P_RtD", "Diseased Plant" }, { "AshLandsBush12P_RtD", "Diseased Plant" }, { "AshLandsBush13P_RtD", "Diseased Plant" }, { "AshLandsBush14P_RtD", "Diseased Plant" }, { "AshLandsBush15P_RtD", "Diseased Plant" }, { "AshLandsBush16P_RtD", "Diseased Plant" }, { "AshLandsBush17P_RtD", "Cactus" }, { "AshLandsBush18P_RtD", "Cactus" }, { "AshLandsBush19P_RtD", "Cactus" }, { "AshLandsBush20P_RtD", "Cactus" }, { "AshLandsBush21P_RtD", "Cactus" }, { "AshLandsBush22P_RtD", "Cactus" }, { "AshLandsBush23P_RtD", "Cactus" }, { "AshLandsBush24P_RtD", "Cactus" }, { "AshLandsBush25P_RtD", "Cactus" }, { "AshLandsBush26P_RtD", "Cactus" }, { "BlackForestBush1P_RtD", "Flower" }, { "BlackForestBush2P_RtD", "Flower" }, { "BlackForestBush3P_RtD", "Bush" }, { "BlackForestBush4P_RtD", "Bush" }, { "BlackForestBush5P_RtD", "Bush" }, { "BlackForestBush6P_RtD", "Burdock" }, { "BlackForestBush7P_RtD", "Burdock" }, { "BlackForestBush8P_RtD", "Burdock" }, { "BlackForestBush9P_RtD", "EverGreen Bush" }, { "BlackForestBush10P_RtD", "EverGreen Bush" }, { "BlackForestBush11P_RtD", "EverGreen Bush" }, { "BlackForestBush12P_RtD", "EverGreen Bush" }, { "DeepNorthBush1P_RtD", "Wild Flower" }, { "DeepNorthBush2P_RtD", "Wild Flower" }, { "DeepNorthBush3P_RtD", "Wild Flower" }, { "DeepNorthBush4P_RtD", "Wild Flower" }, { "DeepNorthBush5P_RtD", "Wild Flower" }, { "DeepNorthBush6P_RtD", "Wild Flower" }, { "DeepNorthBush7P_RtD", "Wild Flower" }, { "DeepNorthBush8P_RtD", "Wild Flower" }, { "DeepNorthBush9P_RtD", "Wild Flower" }, { "DeepNorthBush10P_RtD", "Wild Flower" }, { "MeadowsBush1P_RtD", "Wild Flower" }, { "MeadowsBush2P_RtD", "Wild Flower" }, { "MeadowsBush3P_RtD", "Wild Flower" }, { "MeadowsBush4P_RtD", "Wild Flower" }, { "MeadowsBush5P_RtD", "Wild Flower" }, { "MeadowsBush01P_RtD", "Plant" }, { "MeadowsBush02P_RtD", "Plant" }, { "MeadowsBush03P_RtD", "Plant" }, { "MeadowsBush04P_RtD", "Plant" }, { "MeadowsBush05P_RtD", "Plant" }, { "MeadowsBush06P_RtD", "Plant" }, { "SmallBushP_RtD", "Bush" }, { "MistLandsBush1P_RtD", "Strange Plant" }, { "MistLandsBush2P_RtD", "Strange Plant" }, { "MistLandsBush3P_RtD", "Strange Plant" }, { "MistLandsBush4P_RtD", "Strange Plant" }, { "MistLandsBush5P_RtD", "Strange Plant" }, { "MistLandsBush6P_RtD", "Wild Flower" }, { "MistLandsBush7P_RtD", "Plant" }, { "EverGreen1P_RtD", "EverGreen" }, { "EverGreen2P_RtD", "EverGreen" }, { "EverGreen3P_RtD", "EverGreen" }, { "EverGreen4P_RtD", "EverGreen" }, { "MountainBush1P_RtD", "Wild Flower" }, { "MountainBush2P_RtD", "Wild Flower" }, { "MountainBush3P_RtD", "Wild Flower" }, { "PlainsBush1P_RtD", "CloudBerry Bush" }, { "PlainsBush2P_RtD", "CloudBerry Bush" }, { "PlainsBush3P_RtD", "CloudBerry Bush" }, { "PlainsBush4P_RtD", "Bamboo" }, { "PlainsBush5P_RtD", "Bamboo" }, { "PlainsBush6P_RtD", "Bamboo" }, { "PlainsBush7P_RtD", "Bamboo" }, { "PlainsBush8P_RtD", "Bamboo" }, { "DeadIvy1P_RtD", "Dead Ivy" }, { "DeadIvy2P_RtD", "Dead Ivy" }, { "SwampBush1P_RtD", "Rotting Plant" }, { "SwampBush2P_RtD", "Rotting Plant" }, { "SwampBush3P_RtD", "Wild Flower" }, { "SwampBush4P_RtD", "Plant" }, { "SwampBush5P_RtD", "Wild Flower" }, { "SwampBush6P_RtD", "Wild Flower" }, { "SwampBush7P_RtD", "Wild Flower" }, { "SwampBush8P_RtD", "Plant" }, { "SwampBush9P_RtD", "Plant" }, { "SwampBush10P_RtD", "Plant" }, { "SwampBush11P_RtD", "Plant" }, { "SwampBush12P_RtD", "Dead Bush" }, { "SwampBush13P_RtD", "Dead Bush" }, { "SwampBush14P_RtD", "Dead Bush" }, { "BlackShroom1P_RtD", "Mushroom" }, { "BlackShroom2P_RtD", "Mushroom" }, { "BlackShroom3P_RtD", "Mushroom" }, { "BlackShroom4P_RtD", "Mushroom" }, { "BlueShroom1P_RtD", "Mushroom" }, { "BlueShroom2P_RtD", "Mushroom" }, { "BlueShroom3P_RtD", "Mushroom" }, { "BlueShroom4P_RtD", "Mushroom" }, { "GreenShroom1P_RtD", "Mushroom" }, { "GreenShroom2P_RtD", "Mushroom" }, { "GreenShroom3P_RtD", "Mushroom" }, { "GreenShroom4P_RtD", "Mushroom" }, { "MeadowsShroom1P_RtD", "Mushroom" }, { "MeadowsShroom2P_RtD", "Mushroom" }, { "MeadowsShroom3P_RtD", "Mushroom" }, { "MeadowsShroom4P_RtD", "Mushroom" }, { "MountainShroom1P_RtD", "Mushroom" }, { "MountainShroom2P_RtD", "Mushroom" }, { "MountainShroom3P_RtD", "Mushroom" }, { "MountainShroom4P_RtD", "Mushroom" }, { "RedShroom1P_RtD", "Mushroom" }, { "RedShroom2P_RtD", "Mushroom" }, { "RedShroom3P_RtD", "Mushroom" }, { "RedShroom4P_RtD", "Mushroom" }, { "YellowShroom1P_RtD", "Mushroom" }, { "YellowShroom2P_RtD", "Mushroom" }, { "YellowShroom3P_RtD", "Mushroom" }, { "YellowShroom4P_RtD", "Mushroom" }, { "CloudberryBush_RtD", "Cloudberry Bush" }, { "GlowingMushroom_RtD", "Glowing Mushroom" }, { "Pickable_Dandelion_RtD", "Dandelion" }, { "Pickable_Mushroom_RtD", "Mushroom" }, { "Pickable_Mushroom_yellow_RtD", "Yellow Mushroom" }, { "Pickable_Thistle_RtD", "Thistle" }, { "BlueberryBush_RtD", "Blueberry Bush" }, { "Bush01_heath_RtD", "Heath Bush" }, { "Bush01_RtD", "Bush" }, { "Bush02_en_RtD", "Bush" }, { "FirTree_small_dead_RtD", "Dead Fir" }, { "RaspberryBush_RtD", "Raspberry Bush" }, { "shrub_2_heath_RtD", "Heath Shrub" }, { "shrub_2_RtD", "Shrub" }, { "Pickable_Flint_RtD", "Pickable Flint" }, { "Pickable_Stone_RtD", "Pickable Stone" }, { "RedFirSmallPlant_RtD", "Red Fir" } }); } public void AddSaplings() { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Expected O, but got Unknown //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Expected O, but got Unknown //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Expected O, but got Unknown //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Expected O, but got Unknown //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Expected O, but got Unknown //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_0166: Expected O, but got Unknown //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Expected O, but got Unknown //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Expected O, but got Unknown //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Expected O, but got Unknown //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e5: Expected O, but got Unknown //IL_01e6: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Expected O, but got Unknown //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Expected O, but got Unknown //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Expected O, but got Unknown //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Expected O, but got Unknown //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Expected O, but got Unknown //IL_0283: Unknown result type (might be due to invalid IL or missing references) //IL_028d: Expected O, but got Unknown //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Expected O, but got Unknown //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02b6: Expected O, but got Unknown //IL_02d7: Unknown result type (might be due to invalid IL or missing references) //IL_02e1: Expected O, but got Unknown //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Expected O, but got Unknown //IL_0300: Unknown result type (might be due to invalid IL or missing references) //IL_030a: Expected O, but got Unknown //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Expected O, but got Unknown //IL_0336: Unknown result type (might be due to invalid IL or missing references) //IL_033d: Expected O, but got Unknown //IL_0354: Unknown result type (might be due to invalid IL or missing references) //IL_035e: Expected O, but got Unknown //IL_037f: Unknown result type (might be due to invalid IL or missing references) //IL_0389: Expected O, but got Unknown //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_0391: Expected O, but got Unknown //IL_03a8: Unknown result type (might be due to invalid IL or missing references) //IL_03b2: Expected O, but got Unknown //IL_03d3: Unknown result type (might be due to invalid IL or missing references) //IL_03dd: Expected O, but got Unknown //IL_03de: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Expected O, but got Unknown //IL_03fc: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Expected O, but got Unknown //IL_0427: Unknown result type (might be due to invalid IL or missing references) //IL_0431: Expected O, but got Unknown //IL_0432: Unknown result type (might be due to invalid IL or missing references) //IL_0439: Expected O, but got Unknown //IL_0450: Unknown result type (might be due to invalid IL or missing references) //IL_045a: Expected O, but got Unknown //IL_047b: Unknown result type (might be due to invalid IL or missing references) //IL_0485: Expected O, but got Unknown //IL_0486: Unknown result type (might be due to invalid IL or missing references) //IL_048d: Expected O, but got Unknown //IL_04a4: Unknown result type (might be due to invalid IL or missing references) //IL_04ae: Expected O, but got Unknown //IL_04cf: Unknown result type (might be due to invalid IL or missing references) //IL_04d9: Expected O, but got Unknown //IL_04da: Unknown result type (might be due to invalid IL or missing references) //IL_04e1: Expected O, but got Unknown //IL_04f8: Unknown result type (might be due to invalid IL or missing references) //IL_0502: Expected O, but got Unknown //IL_0523: Unknown result type (might be due to invalid IL or missing references) //IL_052d: Expected O, but got Unknown try { PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Cultivator; val.AddRequirement(new RequirementConfig("AncientSeed", 1, 0, true)); val.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "AshLandsSaplingD1_RtD", true, val)); PieceConfig val2 = new PieceConfig(); val2.PieceTable = PieceTables.Cultivator; val2.AddRequirement(new RequirementConfig("AncientSeed", 1, 0, true)); val2.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "AshLandsSaplingD3_RtD", true, val2)); PieceConfig val3 = new PieceConfig(); val3.PieceTable = PieceTables.Cultivator; val3.AddRequirement(new RequirementConfig("AcaciaSeeds_RtD", 1, 0, true)); val3.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "AcaciaSapling_RtD", true, val3)); PieceConfig val4 = new PieceConfig(); val4.PieceTable = PieceTables.Cultivator; val4.AddRequirement(new RequirementConfig("BlossomSeeds_RtD", 1, 0, true)); val4.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "BlossomSapling_RtD", true, val4)); PieceConfig val5 = new PieceConfig(); val5.PieceTable = PieceTables.Cultivator; val5.AddRequirement(new RequirementConfig("CottonWoodSeeds_RtD", 1, 0, true)); val5.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "CottonWoodSapling_RtD", true, val5)); PieceConfig val6 = new PieceConfig(); val6.PieceTable = PieceTables.Cultivator; val6.AddRequirement(new RequirementConfig("OakWoodSeeds_RtD", 1, 0, true)); val6.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "OakSapling_RtD", true, val6)); PieceConfig val7 = new PieceConfig(); val7.PieceTable = PieceTables.Cultivator; val7.AddRequirement(new RequirementConfig("PalmTreeSeeds_RtD", 1, 0, true)); val7.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "PalmTreeSapling_RtD", true, val7)); PieceConfig val8 = new PieceConfig(); val8.PieceTable = PieceTables.Cultivator; val8.AddRequirement(new RequirementConfig("RedPineSeeds_RtD", 1, 0, true)); val8.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "RedPineSapling_RtD", true, val8)); PieceConfig val9 = new PieceConfig(); val9.PieceTable = PieceTables.Cultivator; val9.AddRequirement(new RequirementConfig("ThinPineSeeds_RtD", 1, 0, true)); val9.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "ThinPineSapling_RtD", true, val9)); PieceConfig val10 = new PieceConfig(); val10.PieceTable = PieceTables.Cultivator; val10.AddRequirement(new RequirementConfig("WillowSeeds_RtD", 1, 0, true)); val10.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "WillowSapling_RtD", true, val10)); PieceConfig val11 = new PieceConfig(); val11.PieceTable = PieceTables.Cultivator; val11.AddRequirement(new RequirementConfig("WinterPineSeeds1_RtD", 1, 0, true)); val11.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "WinterPineSapling1_RtD", true, val11)); PieceConfig val12 = new PieceConfig(); val12.PieceTable = PieceTables.Cultivator; val12.AddRequirement(new RequirementConfig("WinterPineSeeds2_RtD", 1, 0, true)); val12.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "WinterPineSapling2_RtD", true, val12)); PieceConfig val13 = new PieceConfig(); val13.PieceTable = PieceTables.Cultivator; val13.AddRequirement(new RequirementConfig("MapleSeed_RtD", 1, 0, true)); val13.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "MapleSapling1_RtD", true, val13)); PieceConfig val14 = new PieceConfig(); val14.PieceTable = PieceTables.Cultivator; val14.AddRequirement(new RequirementConfig("MapleSeed_RtD", 1, 0, true)); val14.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "MapleSapling2_RtD", true, val14)); PieceConfig val15 = new PieceConfig(); val15.PieceTable = PieceTables.Cultivator; val15.AddRequirement(new RequirementConfig("AncientSeed", 1, 0, true)); val15.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "SwampSapling1_RtD", true, val15)); PieceConfig val16 = new PieceConfig(); val16.PieceTable = PieceTables.Cultivator; val16.AddRequirement(new RequirementConfig("AncientSeed", 1, 0, true)); val16.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "SwampSapling2_RtD", true, val16)); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding prefabs: {arg}"); } } public void CreateRecipes() { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Expected O, but got Unknown //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Expected O, but got Unknown //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Expected O, but got Unknown //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Expected O, but got Unknown //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Expected O, but got Unknown //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Expected O, but got Unknown //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Expected O, but got Unknown //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Expected O, but got Unknown //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Expected O, but got Unknown //IL_01f6: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Expected O, but got Unknown //IL_020b: Unknown result type (might be due to invalid IL or missing references) //IL_0215: Expected O, but got Unknown //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Expected O, but got Unknown //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Expected O, but got Unknown //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0276: Expected O, but got Unknown //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_028b: Expected O, but got Unknown //IL_029f: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Expected O, but got Unknown //IL_02aa: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Expected O, but got Unknown //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02ec: Expected O, but got Unknown //IL_02f7: Unknown result type (might be due to invalid IL or missing references) //IL_0301: Expected O, but got Unknown //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_031f: Expected O, but got Unknown //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_0327: Expected O, but got Unknown //IL_0358: Unknown result type (might be due to invalid IL or missing references) //IL_0362: Expected O, but got Unknown //IL_036d: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Expected O, but got Unknown //IL_038b: Unknown result type (might be due to invalid IL or missing references) //IL_0395: Expected O, but got Unknown //IL_0396: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Expected O, but got Unknown //IL_03ce: Unknown result type (might be due to invalid IL or missing references) //IL_03d8: Expected O, but got Unknown //IL_03e3: Unknown result type (might be due to invalid IL or missing references) //IL_03ed: Expected O, but got Unknown //IL_0401: Unknown result type (might be due to invalid IL or missing references) //IL_040b: Expected O, but got Unknown //IL_040c: Unknown result type (might be due to invalid IL or missing references) //IL_0413: Expected O, but got Unknown //IL_0444: Unknown result type (might be due to invalid IL or missing references) //IL_044e: Expected O, but got Unknown //IL_0459: Unknown result type (might be due to invalid IL or missing references) //IL_0463: Expected O, but got Unknown //IL_0477: Unknown result type (might be due to invalid IL or missing references) //IL_0481: Expected O, but got Unknown //IL_0482: Unknown result type (might be due to invalid IL or missing references) //IL_0489: Expected O, but got Unknown //IL_04ba: Unknown result type (might be due to invalid IL or missing references) //IL_04c4: Expected O, but got Unknown //IL_04cf: Unknown result type (might be due to invalid IL or missing references) //IL_04d9: Expected O, but got Unknown //IL_04ed: Unknown result type (might be due to invalid IL or missing references) //IL_04f7: Expected O, but got Unknown //IL_04f8: Unknown result type (might be due to invalid IL or missing references) //IL_04ff: Expected O, but got Unknown //IL_0530: Unknown result type (might be due to invalid IL or missing references) //IL_053a: Expected O, but got Unknown //IL_0545: Unknown result type (might be due to invalid IL or missing references) //IL_054f: Expected O, but got Unknown //IL_0563: Unknown result type (might be due to invalid IL or missing references) //IL_056d: Expected O, but got Unknown //IL_056e: Unknown result type (might be due to invalid IL or missing references) //IL_0575: Expected O, but got Unknown //IL_05a6: Unknown result type (might be due to invalid IL or missing references) //IL_05b0: Expected O, but got Unknown //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_05c5: Expected O, but got Unknown //IL_05d9: Unknown result type (might be due to invalid IL or missing references) //IL_05e3: Expected O, but got Unknown //IL_05e4: Unknown result type (might be due to invalid IL or missing references) //IL_05eb: Expected O, but got Unknown //IL_061c: Unknown result type (might be due to invalid IL or missing references) //IL_0626: Expected O, but got Unknown //IL_0631: Unknown result type (might be due to invalid IL or missing references) //IL_063b: Expected O, but got Unknown //IL_064f: Unknown result type (might be due to invalid IL or missing references) //IL_0659: Expected O, but got Unknown //IL_065a: Unknown result type (might be due to invalid IL or missing references) //IL_0661: Expected O, but got Unknown //IL_0692: Unknown result type (might be due to invalid IL o