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.2.4
plugins/RtDBiomes.dll
Decompiled 2 weeks ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; 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+9eda6897264e091f38f144a7a53e0be9dfb020b0")] [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.2.4")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] internal class RtDBiomes : BaseUnityPlugin { private class WildsBiomeSettings { public Biome Biome; public ConfigEntry<float> Density; public ConfigEntry<float> TreeScaleMin; public ConfigEntry<float> TreeScaleMax; public ConfigEntry<float> MaxSlope; public ConfigEntry<float> MaxTerrainDelta; public ConfigEntry<float> GrassAmount; } private class WildsGrassCommand : ConsoleCommand { public override string Name => "rtd_grass"; public override string Help => "RtDBiomes: show the Wilds grass status. 'rtd_grass fix' re-applies it and redraws the grass. 'rtd_grass prefabs' lists all grass prefabs."; public override void Run(string[] args, Terminal context) { RtDBiomes wildsPluginInstance = RtDBiomes.wildsPluginInstance; if ((Object)(object)wildsPluginInstance == (Object)null) { return; } if (args.Length != 0 && args[0] == "prefabs") { List<string> values = (Object.op_Implicit((Object)(object)ClutterSystem.instance) ? (from n in (from c in ClutterSystem.instance.m_clutter where c != null && Object.op_Implicit((Object)(object)c.m_prefab) select ((Object)c.m_prefab).name).Distinct() orderby n select n).ToList() : new List<string>()); if (context != null) { context.AddString("Grass prefabs: " + string.Join(", ", values)); } return; } if (args.Length != 0 && args[0] == "fix") { string text = wildsPluginInstance.ApplyWildsGrass("command", rebuild: true); if (Object.op_Implicit((Object)(object)ClutterSystem.instance)) { ClutterSystem.instance.ClearAll(); } if (context != null) { context.AddString(text); } } string text2 = WildsGrassStatus(); if (context != null) { context.AddString(text2); } ((BaseUnityPlugin)wildsPluginInstance).Logger.LogInfo((object)text2); } } internal class WildsVegetation { public string Prefab; public bool Enabled = true; public float Min = 1f; public float Max = 1f; public bool ForcePlacement; public float ScaleMin = 1f; public float ScaleMax = 1f; public float RandTilt; public float ChanceToUseGroundTilt; public Biome Biome; public BiomeArea BiomeArea = (BiomeArea)3; public bool BlockCheck = true; public float MinAltitude = 0f; public float MaxAltitude = 10000f; public float MinOceanDepth; public float MaxOceanDepth; public float MaxVegetation; public float MinTilt; public float MaxTilt = 90f; public float TerrainDeltaRadius; public float MinTerrainDelta; public float MaxTerrainDelta = 10f; public bool SnapToWater; public bool SnapToStaticSolid; public float GroundOffset; public int GroupSizeMin = 1; public int GroupSizeMax = 1; public float GroupRadius; public bool InForest; public float ForestThresholdMin = 0f; public float ForestThresholdMax = 1f; public float MinDistanceFromCenter; public ZoneVegetation Create(GameObject prefab) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_0150: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Expected O, but got Unknown return new ZoneVegetation { m_name = Prefab, m_prefab = prefab, m_enable = Enabled, m_min = Min, m_max = Max, m_forcePlacement = ForcePlacement, m_scaleMin = ScaleMin, m_scaleMax = ScaleMax, m_randTilt = RandTilt, m_chanceToUseGroundTilt = ChanceToUseGroundTilt, m_biome = Biome, m_biomeArea = BiomeArea, m_blockCheck = BlockCheck, m_minAltitude = MinAltitude, m_maxAltitude = MaxAltitude, m_minOceanDepth = MinOceanDepth, m_maxOceanDepth = MaxOceanDepth, m_maxVegetation = MaxVegetation, m_minTilt = MinTilt, m_maxTilt = MaxTilt, m_terrainDeltaRadius = TerrainDeltaRadius, m_minTerrainDelta = MinTerrainDelta, m_maxTerrainDelta = MaxTerrainDelta, m_snapToWater = SnapToWater, m_snapToStaticSolid = SnapToStaticSolid, m_groundOffset = GroundOffset, m_groupSizeMin = GroupSizeMin, m_groupSizeMax = GroupSizeMax, m_groupRadius = GroupRadius, m_inForest = InForest, m_forestTresholdMin = ForestThresholdMin, m_forestTresholdMax = ForestThresholdMax, m_minDistanceFromCenter = MinDistanceFromCenter }; } } internal class WildsClutter { public string Prefab; public bool Enabled = true; public int Amount = 80; public Biome Biome; public bool Instanced; public bool OnUncleared = true; public bool OnCleared; public float ScaleMin = 1f; public float ScaleMax = 1f; public float MaxTilt = 10f; public float MinAltitude = -1000f; public float MaxAltitude = 10000f; public float MaxVegetation; public bool SnapToWater; public bool TerrainTilt; public float RandomOffset; public float MaxOceanDepth; public bool InForest; public float ForestThresholdMin = 0f; public float ForestThresholdMax = 1f; public float FractalScale; public float FractalThresholdMin; public float FractalThresholdMax = 1f; public Clutter Create(GameObject prefab) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Expected O, but got Unknown return new Clutter { m_name = Prefab + "_RtDWilds", m_prefab = prefab, m_enabled = Enabled, m_amount = Amount, m_biome = Biome, m_instanced = Instanced, m_onUncleared = OnUncleared, m_onCleared = OnCleared, m_scaleMin = ScaleMin, m_scaleMax = ScaleMax, m_maxTilt = MaxTilt, m_minAlt = MinAltitude, m_maxAlt = MaxAltitude, m_maxVegetation = MaxVegetation, m_snapToWater = SnapToWater, m_terrainTilt = TerrainTilt, m_randomOffset = RandomOffset, m_maxOceanDepth = MaxOceanDepth, m_inForest = InForest, m_forestTresholdMin = ForestThresholdMin, m_forestTresholdMax = ForestThresholdMax, m_fractalScale = FractalScale, m_fractalTresholdMin = FractalThresholdMin, m_fractalTresholdMax = FractalThresholdMax }; } } public const string PluginGUID = "soloredis.rtdbiomes"; public const string PluginName = "RtDBiomes"; public const string PluginVersion = "3.2.4"; private AssetBundle MyAssets; private ConfigEntry<bool> LoggingEnable; public string[] PrefabList = new string[78] { "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", "ThinPine1_RtD", "ThinPine2_RtD", "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", "MagicLog7", "MagicLog7Half", "MagicLog8", "MagicLog8Half", "MagicStump7", "MagicStump8" }; public string[] ItemList = new string[22] { "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", "FaeSeed_RtD", "AshLandsSeed1_RtD" }; public string[] StaticNoneList = new string[33] { "SandRock1_RtD", "SandRock2_RtD", "SandRock3_RtD", "SandRock4_RtD", "SandRock5_RtD", "MountainBush1_RtD", "MountainBush2_RtD", "MountainBush3_RtD", "MeadowsBush2_RtD", "MeadowsBush3_RtD", "MeadowsBush4_RtD", "MeadowsBush5_RtD", "DeepNorthRock4_RtD", "DeepNorthRock5_RtD", "DeepNorthRock6_RtD", "SmallBush_RtD", "MeadowsBush04_RtD", "MeadowsBush05_RtD", "MeadowsBush06_RtD", "AshLandsRock1_RtD", "AshLandsRock2_RtD", "AshLandsRock4_RtD", "AshLandsRock5_RtD", "AshLandsRock6_RtD", "DeepNorthRock1_RtD", "DeepNorthRock2_RtD", "BlackForestBush2_RtD", "BlackForestBush4_RtD", "BlackForestBush5_RtD", "BlackForestBush7_RtD", "BlackForestBush8_RtD", "RedPineSmall2_RtD", "RedPineSmall3_RtD" }; public string[] MeadowsBushList = new string[9] { "MeadowsShroom1_RtD", "MeadowsShroom2_RtD", "MeadowsShroom3_RtD", "MeadowsShroom4_RtD", "MeadowsBush01_RtD", "MeadowsBush02_RtD", "MeadowsBush03_RtD", "MeadowsBush1_RtD", "BlackForestBush1_RtD" }; public string[] BlackForestBushList = new string[9] { "BlackShroom1_RtD", "BlackShroom2_RtD", "BlackShroom3_RtD", "BlackShroom4_RtD", "BlackForestBush3_RtD", "BlackForestBush6_RtD", "ForestGreen1_RtD", "ForestGreen2_RtD", "RedPineSmall1_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[6] { "EverGreen1_RtD", "EverGreen2_RtD", "EverGreen3_RtD", "EverGreen4_RtD", "ForestGreen3_RtD", "ForestGreen4_RtD" }; public string[] PlainsBushList = new string[10] { "PlainsBush1_RtD", "PlainsBush2_RtD", "PlainsBush3_RtD", "AshLandsBush3_RtD", "AshLandsBush4_RtD", "PlainsBush4_RtD", "PlainsBush5_RtD", "PlainsBush6_RtD", "PlainsBush7_RtD", "PlainsBush8_RtD" }; public string[] MistlandsShroomList = new string[8] { "BlueShroom1_RtD", "BlueShroom2_RtD", "BlueShroom3_RtD", "BlueShroom4_RtD", "YellowShroom1_RtD", "YellowShroom2_RtD", "YellowShroom3_RtD", "YellowShroom4_RtD" }; public string[] MistlandsBushList = new string[7] { "MistLandsBush1_RtD", "MistLandsBush2_RtD", "MistLandsBush3_RtD", "MistLandsBush4_RtD", "MistLandsBush5_RtD", "MistLandsBush6_RtD", "MistLandsBush7_RtD" }; public string[] AshLandsBushList = new string[24] { "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", "AshLandsBush23_RtD", "AshLandsBush24_RtD", "AshLandsBush25_RtD", "AshLandsBush26_RtD", "RedShroom1_RtD", "RedShroom2_RtD", "RedShroom3_RtD", "RedShroom4_RtD" }; public string[] DeepNorthBushList = new string[4] { "MountainShroom1_RtD", "MountainShroom2_RtD", "MountainShroom3_RtD", "MountainShroom4_RtD" }; public string[] MeadowsTreeList = new string[3] { "ForestTree1_RtD", "Oak1_RtD", "Oak2_RtD" }; public string[] BlackForestTreeList = new string[8] { "RedPine1_RtD", "RedPine2_RtD", "RedPine3_RtD", "RedPine4_RtD", "RedPine_RtD", "WinterPine3_RtD", "WinterPine4_RtD", "WinterPine5_RtD" }; public string[] SwampTreeList = new string[9] { "MagicTree6_RtD", "MagicTree9_RtD", "MagicTree10_RtD", "SwampTree1_RtD", "SwampTree2_RtD", "SwampTree3_RtD", "SwampTree4_RtD", "SwampTree5_RtD", "SwampTree6_RtD" }; public string[] PlainsTreeList = new string[4] { "Acacia1_RtD", "Acacia2_RtD", "Acacia3_RtD", "Acacia4_RtD" }; public string[] PlainsPalmList = new string[2] { "PalmTree1_RtD", "PalmTree2_RtD" }; public string[] MistlandsTreeList = new string[1] { "MagicTree1_RtD" }; public string[] MistlandsBlossomList = new string[5] { "Blossom1_RtD", "Blossom2_RtD", "Blossom3_RtD", "Blossom4_RtD", "Blossom5_RtD" }; public string[] AshLandsTreeList = new string[11] { "DeadTree1_RtD", "DeadTree2_RtD", "DeadTree3_RtD", "DeadTree4_RtD", "DeadTree5_RtD", "DeadTree6_RtD", "DeadTree7_RtD", "DeadTree8_RtD", "DeadTree9_RtD", "MagicTree7_RtD", "MagicTree8_RtD" }; public string[] DeepNorthTreeList = new string[3] { "MagicTree3_RtD", "MagicTree4_RtD", "MagicTree5_RtD" }; public string[] PlainsRockList = new string[0]; public static VegetationConfig StaticNoneValues = new VegetationConfig { Min = 1f, Max = 2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)0, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2, InForest = true, ForestThresholdMin = 1.1f, ForestThresholdMax = 1.15f }; public static VegetationConfig MeadowsBushValues = new VegetationConfig { Min = 2.7f, Max = 4.5f, ScaleMin = 1.1f, ScaleMax = 1.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)1, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig BlackForestBushValues = new VegetationConfig { Min = 1.5f, Max = 2.7f, ScaleMin = 1.1f, ScaleMax = 1.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)8, MaxTilt = 40f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig SwampBushValues = new VegetationConfig { Min = 3.3f, Max = 4.5f, ScaleMin = 2.1f, ScaleMax = 2.8f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)2, MaxTilt = 20f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MountainBushValues = new VegetationConfig { Min = 2.1f, Max = 2.7f, ScaleMin = 1.1f, ScaleMax = 1.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)68, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsBushValues = new VegetationConfig { Min = 0.7f, Max = 1.1f, ScaleMin = 3.1f, ScaleMax = 3.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)16, MaxTilt = 18f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MistlandsShroomValues = new VegetationConfig { Min = 0.4f, Max = 0.7f, ScaleMin = 1.1f, ScaleMax = 1.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)512, MaxTilt = 15f, MaxTerrainDelta = 1.5f, GroundOffset = -0.2f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MistlandsBushValues = new VegetationConfig { Min = 0.8f, Max = 1.2f, ScaleMin = 1.1f, ScaleMax = 1.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)512, MaxTilt = 30f, MaxTerrainDelta = 2f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig AshLandsBushValues = new VegetationConfig { Min = 0.3f, Max = 3f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)32, MaxTilt = 50f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig DeepNorthBushValues = new VegetationConfig { Min = 1.5f, Max = 3f, ScaleMin = 1.3f, ScaleMax = 1.85f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)64, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MeadowsTreeValues = new VegetationConfig { Min = 2.4f, Max = 3.6f, ScaleMin = 1.1f, ScaleMax = 1.35f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)1, MaxTilt = 20f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig BlackForestTreeValues = new VegetationConfig { Min = 4.5f, Max = 6f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)12, MaxTilt = 25f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig SwampTreeValues = new VegetationConfig { Min = 6.8f, Max = 9.2f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)2, MaxTilt = 40f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsTreeValues = new VegetationConfig { Min = 0.1f, Max = 0.35f, ScaleMin = 3.875f, ScaleMax = 4.7f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)16, MaxTilt = 23f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig PlainsPalmValues = new VegetationConfig { Min = 1.2f, Max = 2.2f, ScaleMin = 2.475f, ScaleMax = 3.7f, MinAltitude = 0.3f, MaxAltitude = 5f, Biome = (Biome)16, MaxTilt = 23f, MaxTerrainDelta = 3f, GroupSizeMin = 3, GroupSizeMax = 6, GroupRadius = 12f }; public static VegetationConfig MistlandsTreeValues = new VegetationConfig { Min = 0.1f, Max = 1f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)512, MaxTilt = 30f, MaxTerrainDelta = 2f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig MistlandsBlossomValues = new VegetationConfig { Min = 0.15f, Max = 0.35f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)512, MaxTilt = 25f, MaxTerrainDelta = 2f, GroupSizeMin = 1, GroupSizeMax = 1 }; public static VegetationConfig AshLandsTreeValues = new VegetationConfig { Min = 0.3f, Max = 3f, ScaleMin = 1.1f, ScaleMax = 1.25f, MinAltitude = -0.5f, MaxAltitude = 10.1f, Biome = (Biome)32, MaxTilt = 30f, MaxTerrainDelta = 3f, GroupSizeMin = 1, GroupSizeMax = 2 }; public static VegetationConfig DeepNorthTreeValues = new VegetationConfig { Min = 0.3f, Max = 3f, ScaleMin = 1.65f, ScaleMax = 2.65f, MinAltitude = 1f, MaxAltitude = 1000f, Biome = (Biome)64, MaxTilt = 38f, MaxTerrainDelta = 3f, GroupSizeMax = 1 }; 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 }; private CustomLocalization Localization; private ConfigEntry<bool> WildsVegetationEnable; private ConfigEntry<bool> WildsGrassEnable; private const Biome WildsLandBiomes = (Biome)639; private ConfigEntry<bool> WildsKeepVanillaResources; internal static readonly HashSet<string> WildsKeepVanillaPrefabs = new HashSet<string> { "MineRock_Tin", "rock4_copper", "silvervein", "MineRock_Obsidian", "Pickable_Ashstone", "giant_helmet1", "giant_helmet2", "giant_sword1", "giant_sword2", "giant_ribs", "Pickable_Branch", "Pickable_Branch_Snow", "Pickable_Dandelion", "Pickable_Flint", "Pickable_Mushroom", "Pickable_Mushroom_JotunPuffs", "Pickable_Mushroom_Magecap", "Pickable_SeedCarrot", "Pickable_SeedKale", "Pickable_SeedTurnip", "Pickable_SmokePuff", "Pickable_Stone", "Pickable_StoneRock", "Pickable_Thistle", "Pickable_Charredskull", "Pickable_Pot_Shard", "Pickable_Snowball", "RaspberryBush", "BlueberryBush", "CloudberryBush", "LingonberryBush", "YggdrasilRoot" }; internal static readonly HashSet<string> WildsMistlandsRockPrefabs = new HashSet<string> { "cliff_mistlands1", "cliff_mistlands2", "rock_mistlands1" }; internal static readonly HashSet<string> WildsMistlandsShootPrefabs = new HashSet<string> { "YggaShoot1", "YggaShoot2", "YggaShoot3" }; private ConfigEntry<float> WildsMistlandsRockAmount; private ConfigEntry<float> WildsMistlandsShootAmount; private ConfigEntry<float> WildsMistlandsDensity; private ConfigEntry<float> WildsMistlandsMaxSlope; private ConfigEntry<float> WildsMistlandsMaxTerrainDelta; private ConfigEntry<float> WildsMistlandsTreeScale; private ConfigEntry<float> WildsMistlandsBigTreeScaleMin; private ConfigEntry<float> WildsMistlandsBigTreeScaleMax; private ConfigEntry<float> WildsMistlandsMagicTreeScaleMin; private ConfigEntry<float> WildsMistlandsMagicTreeScaleMax; internal static readonly HashSet<string> WildsMistlandsMagicTreePrefabs = new HashSet<string> { "MagicTree1_RtD" }; private ConfigEntry<float> WildsMistlandsExtraGrass; private static readonly Biome[] WildsTunableBiomes; private readonly List<WildsBiomeSettings> wildsBiomeSettings = new List<WildsBiomeSettings>(); private readonly Dictionary<ZoneVegetation, Vector2> wildsOriginalLimits = new Dictionary<ZoneVegetation, Vector2>(); internal static readonly HashSet<string> WildsTreePrefabs; internal static readonly HashSet<string> WildsMistlandsExtraGrassPrefabs; internal static readonly HashSet<string> WildsMistlandsRemovedPrefabs; internal static readonly HashSet<string> WildsMistlandsTreePrefabs; private readonly Dictionary<ZoneVegetation, Vector2> wildsOriginalTreeScale = new Dictionary<ZoneVegetation, Vector2>(); private const string WildsClutterSuffix = "_RtDWilds"; private readonly List<ZoneVegetation> vanillaVegetationSnapshot = new List<ZoneVegetation>(); private static RtDBiomes wildsPluginInstance; private int wildsGrassLastFixedInstance; private int wildsGrassWarnedInstance; private static readonly HashSet<Clutter> wildsClutterBeforeMods; private static readonly HashSet<Clutter> wildsModClutter; internal static readonly WildsVegetation[] WildsVegetationList; internal static readonly WildsClutter[] WildsClutterList; private void Awake() { LoadBundle(); CreateConfigs(); SetupWildsLook(); Localizations(); JSONSupport(); AddItems(); AddPrefabs(); MeadowsBushConfig(); BlackForestBushConfig(); SwampBushConfig(); MountainBushConfig(); PlainsBushConfig(); MistlandsBushConfig(); MistlandsShroomConfig(); AshLandsBushConfig(); DeepNorthBushConfig(); MeadowsTreeConfig(); BlackForestTreeConfig(); SwampTreeConfig(); PlainsTreeConfig(); PlainsPalmConfig(); MistlandsTreeConfig(); MistlandsBlossomConfig(); AshLandsTreeConfig(); DeepNorthTreeConfig(); VariableTreeList(); PlainsRockConfig(); StaticVegetationList(); AddSaplings(); CreateRecipes(); ZoneManager.OnVanillaVegetationAvailable += AdjustVanillaVegetation; ZoneManager.OnVanillaLocationsAvailable += AdjustVanillaLocation; if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogWarning((object)"Logging is enabled in the config."); } } 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 try { ((BaseUnityPlugin)this).Config.SaveOnConfigSet = true; LoggingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Logging", "Enable", false, new ConfigDescription("Enables logging.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } } private void AdjustVanillaVegetation() { //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) //IL_02bb: Unknown result type (might be due to invalid IL or missing references) //IL_02e4: Unknown result type (might be due to invalid IL or missing references) //IL_030d: Unknown result type (might be due to invalid IL or missing references) //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Unknown result type (might be due to invalid IL or missing references) //IL_037f: Unknown result type (might be due to invalid IL or missing references) //IL_03a5: Unknown result type (might be due to invalid IL or missing references) //IL_03cb: Unknown result type (might be due to invalid IL or missing references) //IL_03f1: Unknown result type (might be due to invalid IL or missing references) //IL_0417: Unknown result type (might be due to invalid IL or missing references) //IL_043d: Unknown result type (might be due to invalid IL or missing references) //IL_0463: Unknown result type (might be due to invalid IL or missing references) //IL_0489: Unknown result type (might be due to invalid IL or missing references) //IL_04af: Unknown result type (might be due to invalid IL or missing references) //IL_04d5: Unknown result type (might be due to invalid IL or missing references) //IL_04fb: Unknown result type (might be due to invalid IL or missing references) //IL_0521: Unknown result type (might be due to invalid IL or missing references) //IL_0547: Unknown result type (might be due to invalid IL or missing references) //IL_056d: Unknown result type (might be due to invalid IL or missing references) //IL_0593: Unknown result type (might be due to invalid IL or missing references) //IL_05b9: Unknown result type (might be due to invalid IL or missing references) //IL_05df: Unknown result type (might be due to invalid IL or missing references) //IL_0605: Unknown result type (might be due to invalid IL or missing references) //IL_062b: Unknown result type (might be due to invalid IL or missing references) //IL_0651: Unknown result type (might be due to invalid IL or missing references) //IL_0677: Unknown result type (might be due to invalid IL or missing references) //IL_069d: Unknown result type (might be due to invalid IL or missing references) //IL_06c3: Unknown result type (might be due to invalid IL or missing references) //IL_06e9: Unknown result type (might be due to invalid IL or missing references) //IL_070f: Unknown result type (might be due to invalid IL or missing references) //IL_0735: Unknown result type (might be due to invalid IL or missing references) //IL_075b: Unknown result type (might be due to invalid IL or missing references) //IL_0781: Unknown result type (might be due to invalid IL or missing references) //IL_07a7: Unknown result type (might be due to invalid IL or missing references) try { ZoneVegetation zoneVegetation = ZoneManager.Instance.GetZoneVegetation("Beech1"); zoneVegetation.m_min = 18f; zoneVegetation.m_max = 22f; 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 = 34f; zoneVegetation5.m_max = 36f; 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)12; ZoneVegetation zoneVegetation10 = ZoneManager.Instance.GetZoneVegetation("rock3_mountain"); zoneVegetation10.m_max = 2f; zoneVegetation10.m_biome = (Biome)4; ZoneVegetation zoneVegetation11 = ZoneManager.Instance.GetZoneVegetation("rock1_mountain"); zoneVegetation11.m_min = 5f; zoneVegetation11.m_max = 8f; zoneVegetation11.m_biome = (Biome)4; ZoneVegetation zoneVegetation12 = ZoneManager.Instance.GetZoneVegetation("rock2_mountain"); zoneVegetation12.m_min = 5f; zoneVegetation12.m_max = 8f; zoneVegetation12.m_biome = (Biome)4; ZoneVegetation zoneVegetation13 = ZoneManager.Instance.GetZoneVegetation("shrub_2"); zoneVegetation13.m_min = 40f; zoneVegetation13.m_max = 45f; zoneVegetation13.m_biome = (Biome)8; ZoneVegetation zoneVegetation14 = ZoneManager.Instance.GetZoneVegetation("Bush01_heath"); zoneVegetation14.m_min = 2f; zoneVegetation14.m_max = 4f; zoneVegetation14.m_biome = (Biome)16; ZoneVegetation zoneVegetation15 = ZoneManager.Instance.GetZoneVegetation("YggaShoot1"); zoneVegetation15.m_max = 2f; zoneVegetation15.m_biome = (Biome)512; ZoneVegetation zoneVegetation16 = ZoneManager.Instance.GetZoneVegetation("YggaShoot2"); zoneVegetation16.m_max = 2f; zoneVegetation16.m_biome = (Biome)512; ZoneVegetation zoneVegetation17 = ZoneManager.Instance.GetZoneVegetation("YggaShoot3"); zoneVegetation17.m_max = 2f; zoneVegetation17.m_biome = (Biome)512; ZoneVegetation zoneVegetation18 = ZoneManager.Instance.GetZoneVegetation("cliff_ashlands3_Arch_1"); zoneVegetation18.m_max = 2f; zoneVegetation18.m_biome = (Biome)32; ZoneVegetation zoneVegetation19 = ZoneManager.Instance.GetZoneVegetation("cliff_ashlands5"); zoneVegetation19.m_max = 3f; zoneVegetation19.m_biome = (Biome)32; ZoneVegetation zoneVegetation20 = ZoneManager.Instance.GetZoneVegetation("cliff_ashlands4"); zoneVegetation20.m_max = 1f; zoneVegetation20.m_biome = (Biome)32; ZoneVegetation zoneVegetation21 = ZoneManager.Instance.GetZoneVegetation("AshlandsTree1"); zoneVegetation21.m_max = 6f; zoneVegetation21.m_biome = (Biome)32; ZoneVegetation zoneVegetation22 = ZoneManager.Instance.GetZoneVegetation("AshlandsTree3"); zoneVegetation22.m_max = 6f; zoneVegetation22.m_biome = (Biome)32; ZoneVegetation zoneVegetation23 = ZoneManager.Instance.GetZoneVegetation("AshlandsTree6"); zoneVegetation23.m_max = 2f; zoneVegetation23.m_biome = (Biome)32; ZoneVegetation zoneVegetation24 = ZoneManager.Instance.GetZoneVegetation("Ashlands_rock2"); zoneVegetation24.m_max = 1f; zoneVegetation24.m_biome = (Biome)32; ZoneVegetation zoneVegetation25 = ZoneManager.Instance.GetZoneVegetation("cliff_ashlands6"); zoneVegetation25.m_max = 100f; zoneVegetation25.m_biome = (Biome)32; ZoneVegetation zoneVegetation26 = ZoneManager.Instance.GetZoneVegetation("AshlandsBranch1"); zoneVegetation26.m_max = 3f; zoneVegetation26.m_biome = (Biome)32; ZoneVegetation zoneVegetation27 = ZoneManager.Instance.GetZoneVegetation("AshlandsBranch2"); zoneVegetation27.m_max = 2f; zoneVegetation27.m_biome = (Biome)32; ZoneVegetation zoneVegetation28 = ZoneManager.Instance.GetZoneVegetation("AshlandsBranch3"); zoneVegetation28.m_max = 2f; zoneVegetation28.m_biome = (Biome)32; ZoneVegetation zoneVegetation29 = ZoneManager.Instance.GetZoneVegetation("AshlandsBush1"); zoneVegetation29.m_max = 6f; zoneVegetation29.m_biome = (Biome)32; ZoneVegetation zoneVegetation30 = ZoneManager.Instance.GetZoneVegetation("Pickable_Charredskull"); zoneVegetation30.m_max = 25f; zoneVegetation30.m_biome = (Biome)32; ZoneVegetation zoneVegetation31 = ZoneManager.Instance.GetZoneVegetation("Pickable_Pot_Shard"); zoneVegetation31.m_max = 4f; zoneVegetation31.m_biome = (Biome)32; ZoneVegetation zoneVegetation32 = ZoneManager.Instance.GetZoneVegetation("Pickable_Ashstone"); zoneVegetation32.m_max = 9f; zoneVegetation32.m_biome = (Biome)32; ZoneVegetation zoneVegetation33 = ZoneManager.Instance.GetZoneVegetation("GraveStone_Broken_World"); zoneVegetation33.m_max = 4f; zoneVegetation33.m_biome = (Biome)32; ZoneVegetation zoneVegetation34 = ZoneManager.Instance.GetZoneVegetation("Ashlands_ArchRoofDamaged"); zoneVegetation34.m_max = 3f; zoneVegetation34.m_biome = (Biome)32; ZoneVegetation zoneVegetation35 = ZoneManager.Instance.GetZoneVegetation("Ashlands_Pillar4"); zoneVegetation35.m_max = 3f; zoneVegetation35.m_biome = (Biome)32; ZoneVegetation zoneVegetation36 = ZoneManager.Instance.GetZoneVegetation("Ashlands_Ruins_Wall_Windows_Broken_4x6"); zoneVegetation36.m_max = 3f; zoneVegetation36.m_biome = (Biome)32; ZoneVegetation zoneVegetation37 = ZoneManager.Instance.GetZoneVegetation("Rock_4_deepnorth"); zoneVegetation37.m_max = 4f; zoneVegetation37.m_biome = (Biome)64; ZoneVegetation zoneVegetation38 = ZoneManager.Instance.GetZoneVegetation("Rock_3_deepnorth"); zoneVegetation38.m_max = 3f; zoneVegetation38.m_biome = (Biome)64; ZoneVegetation zoneVegetation39 = ZoneManager.Instance.GetZoneVegetation("SnowFirTree"); zoneVegetation39.m_max = 5f; zoneVegetation39.m_biome = (Biome)64; ZoneVegetation zoneVegetation40 = ZoneManager.Instance.GetZoneVegetation("SnowFirTree 2"); zoneVegetation40.m_max = 20f; zoneVegetation40.m_biome = (Biome)64; ZoneVegetation zoneVegetation41 = ZoneManager.Instance.GetZoneVegetation("Pinetree_Snow"); zoneVegetation41.m_max = 15f; zoneVegetation41.m_biome = (Biome)64; ZoneVegetation zoneVegetation42 = ZoneManager.Instance.GetZoneVegetation("Pinetree_Snow_dead"); zoneVegetation42.m_max = 24f; zoneVegetation42.m_biome = (Biome)64; ZoneVegetation zoneVegetation43 = ZoneManager.Instance.GetZoneVegetation("SnowFirTree_small"); zoneVegetation43.m_max = 12f; zoneVegetation43.m_biome = (Biome)64; ZoneVegetation zoneVegetation44 = ZoneManager.Instance.GetZoneVegetation("stubbe_deepnorth"); zoneVegetation44.m_max = 2f; zoneVegetation44.m_biome = (Biome)64; ZoneVegetation zoneVegetation45 = ZoneManager.Instance.GetZoneVegetation("FirTree_oldLog_deepnorth"); zoneVegetation45.m_max = 2f; zoneVegetation45.m_biome = (Biome)64; ZoneVegetation zoneVegetation46 = ZoneManager.Instance.GetZoneVegetation("Pickable_Branch_Snow"); zoneVegetation46.m_max = 12f; zoneVegetation46.m_biome = (Biome)64; ZoneVegetation zoneVegetation47 = ZoneManager.Instance.GetZoneVegetation("Pickable_Snowball"); zoneVegetation47.m_max = 4f; zoneVegetation47.m_biome = (Biome)64; ZoneVegetation zoneVegetation48 = ZoneManager.Instance.GetZoneVegetation("rock4_coast"); zoneVegetation48.m_max = 5f; zoneVegetation48.m_biome = (Biome)64; } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } } private void AdjustVanillaLocation() { try { ZoneLocation zoneLocation = ZoneManager.Instance.GetZoneLocation("CharredStone_Spawner"); zoneLocation.m_enable = false; ZoneLocation zoneLocation2 = ZoneManager.Instance.GetZoneLocation("FortressRuins"); zoneLocation2.m_enable = true; zoneLocation2.m_quantity = 70; ZoneLocation zoneLocation3 = ZoneManager.Instance.GetZoneLocation("CharredRuins1"); zoneLocation3.m_enable = true; zoneLocation3.m_quantity = 50; ZoneLocation zoneLocation4 = ZoneManager.Instance.GetZoneLocation("Runestone_Ashlands"); zoneLocation4.m_enable = true; zoneLocation4.m_quantity = 50; ZoneLocation zoneLocation5 = ZoneManager.Instance.GetZoneLocation("LeviathanLava"); zoneLocation5.m_enable = true; zoneLocation5.m_quantity = 72; ZoneLocation zoneLocation6 = ZoneManager.Instance.GetZoneLocation("SulfurArch"); zoneLocation6.m_enable = true; zoneLocation6.m_quantity = 70; ZoneLocation zoneLocation7 = ZoneManager.Instance.GetZoneLocation("VoltureNest"); zoneLocation7.m_enable = true; zoneLocation7.m_quantity = 190; ZoneLocation zoneLocation8 = ZoneManager.Instance.GetZoneLocation("AshlandRuins"); zoneLocation8.m_enable = true; zoneLocation8.m_quantity = 65; ZoneLocation zoneLocation9 = ZoneManager.Instance.GetZoneLocation("CharredRuins2"); zoneLocation9.m_enable = true; zoneLocation9.m_quantity = 65; ZoneLocation zoneLocation10 = ZoneManager.Instance.GetZoneLocation("CharredRuins3"); zoneLocation10.m_enable = true; zoneLocation10.m_quantity = 65; ZoneLocation zoneLocation11 = ZoneManager.Instance.GetZoneLocation("CharredRuins4"); zoneLocation11.m_enable = true; zoneLocation11.m_quantity = 65; } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } } public void AddPrefabs() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_003a: 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) { 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 AddVegetationList(string[] prefabList, VegetationConfig values, float maxLavaMask = 0f) { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown try { foreach (string text in prefabList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { CustomVegetation val2 = new CustomVegetation(val, true, values); if (maxLavaMask > 0f) { val2.Vegetation.m_minVegetation = 0f; val2.Vegetation.m_maxVegetation = maxLavaMask; } ZoneManager.Instance.AddCustomVegetation(val2); 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 StaticVegetationList() { AddVegetationList(StaticNoneList, StaticNoneValues); } private void MeadowsBushConfig() { AddVegetationList(MeadowsBushList, MeadowsBushValues); } private void BlackForestBushConfig() { AddVegetationList(BlackForestBushList, BlackForestBushValues); } private void SwampBushConfig() { AddVegetationList(SwampBushList, SwampBushValues); } private void MountainBushConfig() { AddVegetationList(MountainBushList, MountainBushValues); } private void PlainsBushConfig() { AddVegetationList(PlainsBushList, PlainsBushValues); } private void MistlandsBushConfig() { AddVegetationList(MistlandsBushList, MistlandsBushValues); } private void MistlandsShroomConfig() { AddVegetationList(MistlandsShroomList, MistlandsShroomValues); } private void AshLandsBushConfig() { AddVegetationList(AshLandsBushList, AshLandsBushValues, 0.15f); } private void DeepNorthBushConfig() { AddVegetationList(DeepNorthBushList, DeepNorthBushValues); } private void MeadowsTreeConfig() { AddVegetationList(MeadowsTreeList, MeadowsTreeValues); } private void BlackForestTreeConfig() { AddVegetationList(BlackForestTreeList, BlackForestTreeValues); } private void SwampTreeConfig() { AddVegetationList(SwampTreeList, SwampTreeValues); } private void PlainsTreeConfig() { AddVegetationList(PlainsTreeList, PlainsTreeValues); } private void PlainsPalmConfig() { AddVegetationList(PlainsPalmList, PlainsPalmValues); } private void MistlandsTreeConfig() { AddVegetationList(MistlandsTreeList, MistlandsTreeValues); } private void MistlandsBlossomConfig() { AddVegetationList(MistlandsBlossomList, MistlandsBlossomValues); } private void AshLandsTreeConfig() { AddVegetationList(AshLandsTreeList, AshLandsTreeValues, 0.2f); } private void DeepNorthTreeConfig() { AddVegetationList(DeepNorthTreeList, DeepNorthTreeValues); } private void PlainsRockConfig() { AddVegetationList(PlainsRockList, PlainsRockValues); } private void VariableTreeList() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_002c: 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_00b4: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Expected O, but got Unknown //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019d: Expected O, but got Unknown //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Expected O, but got Unknown //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_025f: Expected O, but got Unknown //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_02f1: Unknown result type (might be due to invalid IL or missing references) //IL_02f8: Expected O, but got Unknown //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_0321: Expected O, but got Unknown //IL_0331: Unknown result type (might be due to invalid IL or missing references) //IL_03b3: Unknown result type (might be due to invalid IL or missing references) //IL_03ba: Expected O, but got Unknown //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03e3: Expected O, but got Unknown //IL_03f3: Unknown result type (might be due to invalid IL or missing references) //IL_0475: Unknown result type (might be due to invalid IL or missing references) //IL_047c: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("SwampTree2_log_RtD"); VegetationConfig val2 = new VegetationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[2] { (Biome)8, (Biome)2 }); val2.Min = 0f; val2.Max = 3f; val2.ScaleMin = 1.9f; val2.ScaleMax = 3f; val2.MinAltitude = -0.5f; val2.MaxAltitude = 1000f; 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 obj = val2; Biome[] array = new Biome[3]; RuntimeHelpers.InitializeArray(array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array); val2.Min = 0f; val2.Max = 3f; val2.ScaleMin = 1.9f; val2.ScaleMax = 3f; val2.MinAltitude = -0.5f; val2.MaxAltitude = 1000f; val2.MaxTilt = 30f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val5 = new CustomVegetation(val4, true, val2); ZoneManager.Instance.AddCustomVegetation(val5); GameObject val6 = MyAssets.LoadAsset<GameObject>("WillowTree1_RtD"); val2 = new VegetationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[2] { (Biome)1, (Biome)2 }); val2.Min = 0f; val2.Max = 3f; val2.ScaleMin = 1.7f; val2.ScaleMax = 2.3f; val2.MinAltitude = -0.5f; val2.MaxAltitude = 75f; val2.MaxTilt = 20f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val7 = new CustomVegetation(val6, true, val2); ZoneManager.Instance.AddCustomVegetation(val7); GameObject val8 = MyAssets.LoadAsset<GameObject>("WillowTree2_RtD"); val2 = new VegetationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[2] { (Biome)1, (Biome)2 }); val2.Min = 0f; val2.Max = 3f; val2.ScaleMin = 1.9f; val2.ScaleMax = 3.8f; val2.MinAltitude = -0.5f; val2.MaxAltitude = 75f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val9 = new CustomVegetation(val8, true, val2); ZoneManager.Instance.AddCustomVegetation(val9); GameObject val10 = MyAssets.LoadAsset<GameObject>("CottonWood1_RtD"); val2 = new VegetationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[2] { (Biome)1, (Biome)2 }); val2.Min = 0f; val2.Max = 3f; val2.ScaleMin = 1.3f; val2.ScaleMax = 1.9f; val2.MinAltitude = -0.5f; val2.MaxAltitude = 500f; val2.MaxTilt = 35f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val11 = new CustomVegetation(val10, true, val2); ZoneManager.Instance.AddCustomVegetation(val11); GameObject val12 = MyAssets.LoadAsset<GameObject>("CottonWood2_RtD"); val2 = new VegetationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[2] { (Biome)1, (Biome)2 }); val2.Min = 0f; val2.Max = 3f; val2.ScaleMin = 1.5f; val2.ScaleMax = 2.4f; val2.MinAltitude = -0.5f; val2.MaxAltitude = 500f; val2.MaxTilt = 25f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 3f; CustomVegetation val13 = new CustomVegetation(val12, true, val2); ZoneManager.Instance.AddCustomVegetation(val13); } 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" }, { "MagicLog7", "Log" }, { "MagicLog8", "Log" }, { "MagicLog9", "Log" }, { "MagicLog10", "Log" }, { "MagicStump1", "Stump" }, { "MagicStump2", "Stump" }, { "MagicStump3", "Stump" }, { "MagicStump6", "Stump" }, { "MagicStump7", "Stump" }, { "MagicStump8", "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" }, { "MagicTree7_RtD", "Charred Tree" }, { "MagicTree8_RtD", "Charred Tree" }, { "MagicTree9_RtD", "Dead Tree" }, { "MagicTree10_RtD", "Dead Tree" }, { "MagicTreeSapling1_RtD", "Magic Sapling" }, { "AshLandsSaplingD2_RtD", "Diseased Sapling" }, { "FaeSeed_RtD", "Fae Seed" }, { "FaeSeed_desc_RtD", "It pulses softly in your hand like a second heartbeat. Handle it wrong and the magic inside grows toward something you did not intend." }, { "AshLandsSeed1_RtD", "Cinder Seed" }, { "AshLandsSeed1_desc_RtD", "Plant it and something will grow. Something with fire in its roots and contempt for the soil it came from." }, { "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 //IL_052e: Unknown result type (might be due to invalid IL or missing references) //IL_0535: Expected O, but got Unknown //IL_054c: Unknown result type (might be due to invalid IL or missing references) //IL_0556: Expected O, but got Unknown //IL_0577: Unknown result type (might be due to invalid IL or missing references) //IL_0581: Expected O, but got Unknown //IL_0582: Unknown result type (might be due to invalid IL or missing references) //IL_0589: Expected O, but got Unknown //IL_05a0: Unknown result type (might be due to invalid IL or missing references) //IL_05aa: Expected O, but got Unknown //IL_05cb: Unknown result type (might be due to invalid IL or missing references) //IL_05d5: Expected O, but got Unknown try { PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Cultivator; val.AddRequirement(new RequirementConfig("AshLandsSeed2_RtD", 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("AshLandsSeed2_RtD", 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("FaeSeed_RtD", 1, 0, true)); val15.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "MagicTreeSapling1_RtD", true, val15)); PieceConfig val16 = new PieceConfig(); val16.PieceTable = PieceTables.Cultivator; val16.AddRequirement(new RequirementConfig("AshLandsSeed1_RtD", 1, 0, true)); val16.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "AshLandsSaplingD2_RtD", true, val16)); PieceConfig val17 = new PieceConfig(); val17.PieceTable = PieceTables.Cultivator; val17.AddRequirement(new RequirementConfig("AncientSeed", 1, 0, true)); val17.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "SwampSapling1_RtD", true, val17)); PieceConfig val18 = new PieceConfig(); val18.PieceTable = PieceTables.Cultivator; val18.AddRequirement(new RequirementConfig("AncientSeed", 1, 0, true)); val18.Category = "Saplings"; PieceManager.Instance.AddPiece(new CustomPiece(MyAssets, "SwampSapling2_RtD", true, val18)); } 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