Please disclose if your mod was created primarily 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 RtDSouls v0.5.13
RtDSouls.dll
Decompiled a day agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; 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("RtDSouls")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("RtDSouls")] [assembly: AssemblyTitle("RtDSouls")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace RtDSouls { [BepInPlugin("Soloredis.RtDSouls", "RtDSouls", "0.5.13")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInIncompatibility("CookieMilk.MagicalMounts")] [BepInIncompatibility("CookieMilk.MajesticChickens")] [BepInIncompatibility("CookieMilk.BuildPieces")] [BepInIncompatibility("CookieMilk.CarryMeMaster")] [BepInIncompatibility("CookieMilk.DiscordControl")] [BepInIncompatibility("CookieMilk.UltimateServerControl")] [BepInIncompatibility("Therzie.MonstrumDeepNorth")] [BepInIncompatibility("Therzie.WarfareFireAndIce")] [BepInIncompatibility("Therzie.Monstrum")] [BepInIncompatibility("Therzie.Armory")] [BepInIncompatibility("Therzie.Wizardry")] [BepInIncompatibility("Therzie.Warfare")] [BepInIncompatibility("blacks7ar.MagicPlugin")] [BepInIncompatibility("blacks7ar.MagicRevamp")] [BepInIncompatibility("blacks7ar.SeedBed")] [BepInIncompatibility("blacks7ar.OreMines")] [BepInIncompatibility("blacks7ar.BowPlugin")] [BepInIncompatibility("IAmOnTheInternetAndItIsScary.NoArbitraryIncompatibilityFlag")] [BepInIncompatibility("randyknapp.mods.epicloot")] public class RtDSouls : BaseUnityPlugin { public const string PluginGUID = "Soloredis.RtDSouls"; public const string PluginName = "RtDSouls"; public const string PluginVersion = "0.5.13"; public static bool isModded = true; public AssetBundle MyAssets; internal static ManualLogSource Log; public ConfigEntry<bool> LoggingEnable; private CustomLocalization Localization; public string[] PrefabList = new string[32] { "SAshLandsAttackA_RtD", "SAshLandsAttackF_RtD", "SBlackForestAttackA_RtD", "SBlackForestAttackF_RtD", "SDeepNorthAttackA_RtD", "SDeepNorthAttackF_RtD", "SMeadowsAttackA_RtD", "SMeadowsAttackF_RtD", "SMistlandsAttackA_RtD", "SMIstlandsAttackF_RtD", "SMountainAttackA_RtD", "SMountainAttackF_RtD", "SPlainsAttackA_RtD", "SPlainsAttackF_RtD", "SSwampAttackA_RtD", "SSwampAttackF_RtD", "vfx_bluespirit_death_RtD", "vfx_greenspirit_death_RtD", "vfx_pinkspirit_death_RtD", "vfx_redspirit_death_RtD", "vfx_whitespirit_death_RtD", "vfx_yellowspirit_death_RtD", "SAshLandsAttackF_RtD1", "SBlackForestAttackF_RtD1", "SDeepNorthAttackF_RtD1", "SMeadowsAttackF_RtD1", "SMIstlandsAttackF_RtD1", "SMountainAttackF_RtD1", "SPlainsAttackF_RtD1", "SSwampAttackF_RtD1", "vfx_spiritmonster_death2_RtD", "vfx_spirittmonster_hit2_RtD" }; public string[] SFXList = new string[4] { "sfx_angryspirit_death_RtD", "sfx_friendlyspirit_death_RtD", "sfx_spirit_hit_RtD", "sfx_angryspirit_death1_RtD" }; public string[] UniversalList = new string[34] { "AshLandsDarkS_RtD", "AshLandsFairyS_RtD", "BlackForestNatureS_RtD", "BlackForestShockG_RtD", "DeepNorthArcaneS_RtD", "DeepNorthFairyS_RtD", "MeadowsAirS_RtD", "MeadowsNatureS_RtD", "MistlandsFairyS_RtD", "MistlandsUniverseS_RtD", "MountainHolyS_RtD", "MountainIceS_RtD", "OceanHolyS_RtD", "OceanWaterS_RtD", "PlainsVoidS_RtD", "PlainsHolyS_RtD", "SwampDarkS_RtD", "SwampNatureS_RtD", "AshLandsWhispA_RtD", "AshLandsWhispF_RtD", "BlackForestWhispA_RtD", "BlackForestWhispF_RtD", "DeepNorthWhispA_RtD", "DeepNorthWhispF_RtD", "MeadowsWhispA_RtD", "MeadowsWhispF_RtD", "MistlandsWhispA_RtD", "MistlandsWhispF_RtD", "MountainWhispA_RtD", "MountainWhispF_RtD", "PlainsWhispA_RtD", "PlainsWhispF_RtD", "SwampWhispA_RtD", "SwampWhispF_RtD" }; private void Awake() { CreateConfigs(); Log = ((BaseUnityPlugin)this).Logger; LoadBundle(); AddUniversalSpirits(); AddlocalizationsEnglish(); AddPrefabs(); AddSFX(); LoadTranslations(); PrefabManager.OnPrefabsRegistered += AddDropsCheck; PrefabManager.OnPrefabsRegistered += SpiritDrops; PrefabManager.OnPrefabsRegistered += VanillaMonstersDrops; PrefabManager.OnPrefabsRegistered += FixSFX; if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogWarning((object)"Logging is enabled in the config."); } } private void LoadBundle() { try { MyAssets = AssetUtils.LoadAssetBundleFromResources("rtdsouls", Assembly.GetExecutingAssembly()); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundle: {arg}"); } } private void LoadTranslations() { TextAsset[] array = MyAssets.LoadAllAssets<TextAsset>(); TextAsset[] array2 = array; foreach (TextAsset val in array2) { string text = ((Object)val).name.Replace("_RtDAdditions.json", null); Localization.AddJsonFile(text, ((object)val).ToString()); } } private void AddlocalizationsEnglish() { Localization = LocalizationManager.Instance.GetLocalization(); CustomLocalization localization = Localization; string text = "English"; localization.AddTranslation(ref text, new Dictionary<string, string> { { "AngrySpirit_RtD", "Wrathful Spirit" }, { "FriendlySpirit_RtD", "Helpful Spirit" } }); } public void CreateConfigs() { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Expected O, but got Unknown //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { ((BaseUnityPlugin)this).Config.SaveOnConfigSet = true; LoggingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("RtDSouls Logging", "Enable", false, new ConfigDescription("Enables logging. Disabled by default", (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 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 AddUniversalSpirits() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Expected O, but got Unknown try { string[] universalList = UniversalList; foreach (string text in universalList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { CustomCreature val2 = new CustomCreature(val, true); CreatureManager.Instance.AddCreature(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 VanillaMonstersDrops() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0049: 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_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Expected O, but got Unknown //IL_0081: 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_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_009f: 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_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Expected O, but got Unknown //IL_00f7: 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_0104: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0116: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0130: Expected O, but got Unknown //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Expected O, but got Unknown //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: 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_01d4: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Expected O, but got Unknown //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_0208: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_021a: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Expected O, but got Unknown //IL_0274: Unknown result type (might be due to invalid IL or missing references) //IL_0279: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Unknown result type (might be due to invalid IL or missing references) //IL_0293: Unknown result type (might be due to invalid IL or missing references) //IL_029a: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Unknown result type (might be due to invalid IL or missing references) //IL_02ad: Expected O, but got Unknown //IL_02ba: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02d2: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_02e7: Unknown result type (might be due to invalid IL or missing references) //IL_02f3: Expected O, but got Unknown //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0352: 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_0360: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Expected O, but got Unknown //IL_0379: Unknown result type (might be due to invalid IL or missing references) //IL_037e: Unknown result type (might be due to invalid IL or missing references) //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_0391: Unknown result type (might be due to invalid IL or missing references) //IL_0398: Unknown result type (might be due to invalid IL or missing references) //IL_039f: Unknown result type (might be due to invalid IL or missing references) //IL_03a6: Unknown result type (might be due to invalid IL or missing references) //IL_03b2: Expected O, but got Unknown //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Unknown result type (might be due to invalid IL or missing references) //IL_040a: Unknown result type (might be due to invalid IL or missing references) //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_0418: Unknown result type (might be due to invalid IL or missing references) //IL_041f: Unknown result type (might be due to invalid IL or missing references) //IL_042b: Expected O, but got Unknown //IL_0438: 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_0445: Unknown result type (might be due to invalid IL or missing references) //IL_0450: Unknown result type (might be due to invalid IL or missing references) //IL_0457: Unknown result type (might be due to invalid IL or missing references) //IL_045e: Unknown result type (might be due to invalid IL or missing references) //IL_0465: Unknown result type (might be due to invalid IL or missing references) //IL_0471: Expected O, but got Unknown //IL_04b1: Unknown result type (might be due to invalid IL or missing references) //IL_04b6: Unknown result type (might be due to invalid IL or missing references) //IL_04be: Unknown result type (might be due to invalid IL or missing references) //IL_04c9: Unknown result type (might be due to invalid IL or missing references) //IL_04d0: Unknown result type (might be due to invalid IL or missing references) //IL_04d7: Unknown result type (might be due to invalid IL or missing references) //IL_04de: Unknown result type (might be due to invalid IL or missing references) //IL_04ea: Expected O, but got Unknown //IL_04f7: Unknown result type (might be due to invalid IL or missing references) //IL_04fc: Unknown result type (might be due to invalid IL or missing references) //IL_0504: Unknown result type (might be due to invalid IL or missing references) //IL_050f: Unknown result type (might be due to invalid IL or missing references) //IL_0516: Unknown result type (might be due to invalid IL or missing references) //IL_051d: Unknown result type (might be due to invalid IL or missing references) //IL_0524: Unknown result type (might be due to invalid IL or missing references) //IL_0530: Expected O, but got Unknown //IL_0570: Unknown result type (might be due to invalid IL or missing references) //IL_0575: Unknown result type (might be due to invalid IL or missing references) //IL_057d: Unknown result type (might be due to invalid IL or missing references) //IL_0588: Unknown result type (might be due to invalid IL or missing references) //IL_058f: Unknown result type (might be due to invalid IL or missing references) //IL_0596: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Unknown result type (might be due to invalid IL or missing references) //IL_05a9: Expected O, but got Unknown //IL_05b6: Unknown result type (might be due to invalid IL or missing references) //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_05c3: Unknown result type (might be due to invalid IL or missing references) //IL_05ce: Unknown result type (might be due to invalid IL or missing references) //IL_05d5: Unknown result type (might be due to invalid IL or missing references) //IL_05dc: Unknown result type (might be due to invalid IL or missing references) //IL_05e3: Unknown result type (might be due to invalid IL or missing references) //IL_05ef: Expected O, but got Unknown //IL_062f: Unknown result type (might be due to invalid IL or missing references) //IL_0634: Unknown result type (might be due to invalid IL or missing references) //IL_063c: Unknown result type (might be due to invalid IL or missing references) //IL_0647: Unknown result type (might be due to invalid IL or missing references) //IL_064e: Unknown result type (might be due to invalid IL or missing references) //IL_0655: Unknown result type (might be due to invalid IL or missing references) //IL_065c: Unknown result type (might be due to invalid IL or missing references) //IL_0668: Expected O, but got Unknown //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_067a: Unknown result type (might be due to invalid IL or missing references) //IL_0682: Unknown result type (might be due to invalid IL or missing references) //IL_068d: Unknown result type (might be due to invalid IL or missing references) //IL_0694: Unknown result type (might be due to invalid IL or missing references) //IL_069b: Unknown result type (might be due to invalid IL or missing references) //IL_06a2: Unknown result type (might be due to invalid IL or missing references) //IL_06ae: Expected O, but got Unknown //IL_06ee: Unknown result type (might be due to invalid IL or missing references) //IL_06f3: Unknown result type (might be due to invalid IL or missing references) //IL_06fb: Unknown result type (might be due to invalid IL or missing references) //IL_0706: Unknown result type (might be due to invalid IL or missing references) //IL_070d: Unknown result type (might be due to invalid IL or missing references) //IL_0714: Unknown result type (might be due to invalid IL or missing references) //IL_071b: Unknown result type (might be due to invalid IL or missing references) //IL_0727: Expected O, but got Unknown //IL_0734: Unknown result type (might be due to invalid IL or missing references) //IL_0739: Unknown result type (might be due to invalid IL or missing references) //IL_0741: Unknown result type (might be due to invalid IL or missing references) //IL_074c: Unknown result type (might be due to invalid IL or missing references) //IL_0753: Unknown result type (might be due to invalid IL or missing references) //IL_075a: Unknown result type (might be due to invalid IL or missing references) //IL_0761: Unknown result type (might be due to invalid IL or missing references) //IL_076d: Expected O, but got Unknown //IL_07ad: Unknown result type (might be due to invalid IL or missing references) //IL_07b2: Unknown result type (might be due to invalid IL or missing references) //IL_07ba: Unknown result type (might be due to invalid IL or missing references) //IL_07c5: Unknown result type (might be due to invalid IL or missing references) //IL_07cc: Unknown result type (might be due to invalid IL or missing references) //IL_07d3: Unknown result type (might be due to invalid IL or missing references) //IL_07da: Unknown result type (might be due to invalid IL or missing references) //IL_07e6: Expected O, but got Unknown //IL_07f3: Unknown result type (might be due to invalid IL or missing references) //IL_07f8: Unknown result type (might be due to invalid IL or missing references) //IL_0800: Unknown result type (might be due to invalid IL or missing references) //IL_080b: Unknown result type (might be due to invalid IL or missing references) //IL_0812: Unknown result type (might be due to invalid IL or missing references) //IL_0819: Unknown result type (might be due to invalid IL or missing references) //IL_0820: Unknown result type (might be due to invalid IL or missing references) //IL_082c: Expected O, but got Unknown //IL_086c: Unknown result type (might be due to invalid IL or missing references) //IL_0871: Unknown result type (might be due to invalid IL or missing references) //IL_0879: Unknown result type (might be due to invalid IL or missing references) //IL_0884: Unknown result type (might be due to invalid IL or missing references) //IL_088b: Unknown result type (might be due to invalid IL or missing references) //IL_0892: Unknown result type (might be due to invalid IL or missing references) //IL_0899: Unknown result type (might be due to invalid IL or missing references) //IL_08a5: Expected O, but got Unknown //IL_08b2: Unknown result type (might be due to invalid IL or missing references) //IL_08b7: Unknown result type (might be due to invalid IL or missing references) //IL_08bf: Unknown result type (might be due to invalid IL or missing references) //IL_08ca: Unknown result type (might be due to invalid IL or missing references) //IL_08d1: Unknown result type (might be due to invalid IL or missing references) //IL_08d8: Unknown result type (might be due to invalid IL or missing references) //IL_08df: Unknown result type (might be due to invalid IL or missing references) //IL_08eb: Expected O, but got Unknown //IL_092b: Unknown result type (might be due to invalid IL or missing references) //IL_0930: Unknown result type (might be due to invalid IL or missing references) //IL_0938: Unknown result type (might be due to invalid IL or missing references) //IL_0943: Unknown result type (might be due to invalid IL or missing references) //IL_094a: Unknown result type (might be due to invalid IL or missing references) //IL_0951: Unknown result type (might be due to invalid IL or missing references) //IL_0958: Unknown result type (might be due to invalid IL or missing references) //IL_0964: Expected O, but got Unknown //IL_0971: Unknown result type (might be due to invalid IL or missing references) //IL_0976: Unknown result type (might be due to invalid IL or missing references) //IL_097e: Unknown result type (might be due to invalid IL or missing references) //IL_0989: Unknown result type (might be due to invalid IL or missing references) //IL_0990: Unknown result type (might be due to invalid IL or missing references) //IL_0997: Unknown result type (might be due to invalid IL or missing references) //IL_099e: Unknown result type (might be due to invalid IL or missing references) //IL_09aa: Expected O, but got Unknown //IL_09ea: Unknown result type (might be due to invalid IL or missing references) //IL_09ef: Unknown result type (might be due to invalid IL or missing references) //IL_09f7: Unknown result type (might be due to invalid IL or missing references) //IL_0a02: Unknown result type (might be due to invalid IL or missing references) //IL_0a09: Unknown result type (might be due to invalid IL or missing references) //IL_0a10: Unknown result type (might be due to invalid IL or missing references) //IL_0a17: Unknown result type (might be due to invalid IL or missing references) //IL_0a23: Expected O, but got Unknown //IL_0a30: Unknown result type (might be due to invalid IL or missing references) //IL_0a35: Unknown result type (might be due to invalid IL or missing references) //IL_0a3d: Unknown result type (might be due to invalid IL or missing references) //IL_0a48: Unknown result type (might be due to invalid IL or missing references) //IL_0a4f: Unknown result type (might be due to invalid IL or missing references) //IL_0a56: Unknown result type (might be due to invalid IL or missing references) //IL_0a5d: Unknown result type (might be due to invalid IL or missing references) //IL_0a69: Expected O, but got Unknown //IL_0aa9: Unknown result type (might be due to invalid IL or missing references) //IL_0aae: Unknown result type (might be due to invalid IL or missing references) //IL_0ab6: Unknown result type (might be due to invalid IL or missing references) //IL_0ac1: Unknown result type (might be due to invalid IL or missing references) //IL_0ac8: Unknown result type (might be due to invalid IL or missing references) //IL_0acf: Unknown result type (might be due to invalid IL or missing references) //IL_0ad6: Unknown result type (might be due to invalid IL or missing references) //IL_0ae2: Expected O, but got Unknown //IL_0aef: Unknown result type (might be due to invalid IL or missing references) //IL_0af4: Unknown result type (might be due to invalid IL or missing references) //IL_0afc: Unknown result type (might be due to invalid IL or missing references) //IL_0b07: Unknown result type (might be due to invalid IL or missing references) //IL_0b0e: Unknown result type (might be due to invalid IL or missing references) //IL_0b15: Unknown result type (might be due to invalid IL or missing references) //IL_0b1c: Unknown result type (might be due to invalid IL or missing references) //IL_0b28: Expected O, but got Unknown //IL_0b68: Unknown result type (might be due to invalid IL or missing references) //IL_0b6d: Unknown result type (might be due to invalid IL or missing references) //IL_0b75: Unknown result type (might be due to invalid IL or missing references) //IL_0b80: Unknown result type (might be due to invalid IL or missing references) //IL_0b87: Unknown result type (might be due to invalid IL or missing references) //IL_0b8e: Unknown result type (might be due to invalid IL or missing references) //IL_0b95: Unknown result type (might be due to invalid IL or missing references) //IL_0ba1: Expected O, but got Unknown //IL_0bae: Unknown result type (might be due to invalid IL or missing references) //IL_0bb3: Unknown result type (might be due to invalid IL or missing references) //IL_0bbb: Unknown result type (might be due to invalid IL or missing references) //IL_0bc6: Unknown result type (might be due to invalid IL or missing references) //IL_0bcd: Unknown result type (might be due to invalid IL or missing references) //IL_0bd4: Unknown result type (might be due to invalid IL or missing references) //IL_0bdb: Unknown result type (might be due to invalid IL or missing references) //IL_0be7: Expected O, but got Unknown //IL_0c27: Unknown result type (might be due to invalid IL or missing references) //IL_0c2c: Unknown result type (might be due to invalid IL or missing references) //IL_0c34: Unknown result type (might be due to invalid IL or missing references) //IL_0c3f: Unknown result type (might be due to invalid IL or missing references) //IL_0c46: Unknown result type (might be due to invalid IL or missing references) //IL_0c4d: Unknown result type (might be due to invalid IL or missing references) //IL_0c54: Unknown result type (might be due to invalid IL or missing references) //IL_0c60: Expected O, but got Unknown //IL_0c6d: Unknown result type (might be due to invalid IL or missing references) //IL_0c72: Unknown result type (might be due to invalid IL or missing references) //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c85: Unknown result type (might be due to invalid IL or missing references) //IL_0c8c: Unknown result type (might be due to invalid IL or missing references) //IL_0c93: Unknown result type (might be due to invalid IL or missing references) //IL_0c9a: Unknown result type (might be due to invalid IL or missing references) //IL_0ca6: Expected O, but got Unknown //IL_0ce6: Unknown result type (might be due to invalid IL or missing references) //IL_0ceb: Unknown result type (might be due to invalid IL or missing references) //IL_0cf3: Unknown result type (might be due to invalid IL or missing references) //IL_0cfe: Unknown result type (might be due to invalid IL or missing references) //IL_0d05: Unknown result type (might be due to invalid IL or missing references) //IL_0d0c: Unknown result type (might be due to invalid IL or missing references) //IL_0d13: Unknown result type (might be due to invalid IL or missing references) //IL_0d1f: Expected O, but got Unknown //IL_0d2c: Unknown result type (might be due to invalid IL or missing references) //IL_0d31: Unknown result type (might be due to invalid IL or missing references) //IL_0d39: Unknown result type (might be due to invalid IL or missing references) //IL_0d44: Unknown result type (might be due to invalid IL or missing references) //IL_0d4b: Unknown result type (might be due to invalid IL or missing references) //IL_0d52: Unknown result type (might be due to invalid IL or missing references) //IL_0d59: Unknown result type (might be due to invalid IL or missing references) //IL_0d65: Expected O, but got Unknown //IL_0da5: Unknown result type (might be due to invalid IL or missing references) //IL_0daa: Unknown result type (might be due to invalid IL or missing references) //IL_0db2: Unknown result type (might be due to invalid IL or missing references) //IL_0dbd: Unknown result type (might be due to invalid IL or missing references) //IL_0dc4: Unknown result type (might be due to invalid IL or missing references) //IL_0dcb: Unknown result type (might be due to invalid IL or missing references) //IL_0dd2: Unknown result type (might be due to invalid IL or missing references) //IL_0dde: Expected O, but got Unknown //IL_0deb: Unknown result type (might be due to invalid IL or missing references) //IL_0df0: Unknown result type (might be due to invalid IL or missing references) //IL_0df8: Unknown result type (might be due to invalid IL or missing references) //IL_0e03: Unknown result type (might be due to invalid IL or missing references) //IL_0e0a: Unknown result type (might be due to invalid IL or missing references) //IL_0e11: Unknown result type (might be due to invalid IL or missing references) //IL_0e18: Unknown result type (might be due to invalid IL or missing references) //IL_0e24: Expected O, but got Unknown //IL_0e64: Unknown result type (might be due to invalid IL or missing references) //IL_0e69: Unknown result type (might be due to invalid IL or missing references) //IL_0e71: Unknown result type (might be due to invalid IL or missing references) //IL_0e7c: Unknown result type (might be due to invalid IL or missing references) //IL_0e83: Unknown result type (might be due to invalid IL or missing references) //IL_0e8a: Unknown result type (might be due to invalid IL or missing references) //IL_0e91: Unknown result type (might be due to invalid IL or missing references) //IL_0e9d: Expected O, but got Unknown //IL_0eaa: Unknown result type (might be due to invalid IL or missing references) //IL_0eaf: Unknown result type (might be due to invalid IL or missing references) //IL_0eb7: Unknown result type (might be due to invalid IL or missing references) //IL_0ec2: Unknown result type (might be due to invalid IL or missing references) //IL_0ec9: Unknown result type (might be due to invalid IL or missing references) //IL_0ed0: Unknown result type (might be due to invalid IL or missing references) //IL_0ed7: Unknown result type (might be due to invalid IL or missing references) //IL_0ee3: Expected O, but got Unknown //IL_0f23: Unknown result type (might be due to invalid IL or missing references) //IL_0f28: Unknown result type (might be due to invalid IL or missing references) //IL_0f30: Unknown result type (might be due to invalid IL or missing references) //IL_0f3b: Unknown result type (might be due to invalid IL or missing references) //IL_0f42: Unknown result type (might be due to invalid IL or missing references) //IL_0f49: Unknown result type (might be due to invalid IL or missing references) //IL_0f50: Unknown result type (might be due to invalid IL or missing references) //IL_0f5c: Expected O, but got Unknown //IL_0f69: Unknown result type (might be due to invalid IL or missing references) //IL_0f6e: Unknown result type (might be due to invalid IL or missing references) //IL_0f76: Unknown result type (might be due to invalid IL or missing references) //IL_0f81: Unknown result type (might be due to invalid IL or missing references) //IL_0f88: Unknown result type (might be due to invalid IL or missing references) //IL_0f8f: Unknown result type (might be due to invalid IL or missing references) //IL_0f96: Unknown result type (might be due to invalid IL or missing references) //IL_0fa2: Expected O, but got Unknown //IL_0fe2: Unknown result type (might be due to invalid IL or missing references) //IL_0fe7: Unknown result type (might be due to invalid IL or missing references) //IL_0fef: Unknown result type (might be due to invalid IL or missing references) //IL_0ffa: Unknown result type (might be due to invalid IL or missing references) //IL_1001: Unknown result type (might be due to invalid IL or missing references) //IL_1008: Unknown result type (might be due to invalid IL or missing references) //IL_100f: Unknown result type (might be due to invalid IL or missing references) //IL_101b: Expected O, but got Unknown //IL_1028: Unknown result type (might be due to invalid IL or missing references) //IL_102d: Unknown result type (might be due to invalid IL or missing references) //IL_1035: Unknown result type (might be due to invalid IL or missing references) //IL_1040: Unknown result type (might be due to invalid IL or missing references) //IL_1047: Unknown result type (might be due to invalid IL or missing references) //IL_104e: Unknown result type (might be due to invalid IL or missing references) //IL_1055: Unknown result type (might be due to invalid IL or missing references) //IL_1061: Expected O, but got Unknown //IL_10a1: Unknown result type (might be due to invalid IL or missing references) //IL_10a6: Unknown result type (might be due to invalid IL or missing references) //IL_10ae: Unknown result type (might be due to invalid IL or missing references) //IL_10b9: Unknown result type (might be due to invalid IL or missing references) //IL_10c0: Unknown result type (might be due to invalid IL or missing references) //IL_10c7: Unknown result type (might be due to invalid IL or missing references) //IL_10ce: Unknown result type (might be due to invalid IL or missing references) //IL_10da: Expected O, but got Unknown //IL_10e7: Unknown result type (might be due to invalid IL or missing references) //IL_10ec: Unknown result type (might be due to invalid IL or missing references) //IL_10f4: Unknown result type (might be due to invalid IL or missing references) //IL_10ff: Unknown result type (might be due to invalid IL or missing references) //IL_1106: Unknown result type (might be due to invalid IL or missing references) //IL_110d: Unknown result type (might be due to invalid IL or missing references) //IL_1114: Unknown result type (might be due to invalid IL or missing references) //IL_1120: Expected O, but got Unknown //IL_1160: Unknown result type (might be due to invalid IL or missing references) //IL_1165: Unknown result type (might be due to invalid IL or missing references) //IL_116d: Unknown result type (might be due to invalid IL or missing references) //IL_1178: Unknown result type (might be due to invalid IL or missing references) //IL_117f: Unknown result type (might be due to invalid IL or missing references) //IL_1186: Unknown result type (might be due to invalid IL or missing references) //IL_118d: Unknown result type (might be due to invalid IL or missing references) //IL_1199: Expected O, but got Unknown //IL_11a6: Unknown result type (might be due to invalid IL or missing references) //IL_11ab: Unknown result type (might be due to invalid IL or missing references) //IL_11b3: Unknown result type (might be due to invalid IL or missing references) //IL_11be: Unknown result type (might be due to invalid IL or missing references) //IL_11c5: Unknown result type (might be due to invalid IL or missing references) //IL_11cc: Unknown result type (might be due to invalid IL or missing references) //IL_11d3: Unknown result type (might be due to invalid IL or missing references) //IL_11df: Expected O, but got Unknown //IL_121f: Unknown result type (might be due to invalid IL or missing references) //IL_1224: Unknown result type (might be due to invalid IL or missing references) //IL_122c: Unknown result type (might be due to invalid IL or missing references) //IL_1237: Unknown result type (might be due to invalid IL or missing references) //IL_123e: Unknown result type (might be due to invalid IL or missing references) //IL_1245: Unknown result type (might be due to invalid IL or missing references) //IL_124c: Unknown result type (might be due to invalid IL or missing references) //IL_1258: Expected O, but got Unknown //IL_1265: Unknown result type (might be due to invalid IL or missing references) //IL_126a: Unknown result type (might be due to invalid IL or missing references) //IL_1272: Unknown result type (might be due to invalid IL or missing references) //IL_127d: Unknown result type (might be due to invalid IL or missing references) //IL_1284: Unknown result type (might be due to invalid IL or missing references) //IL_128b: Unknown result type (might be due to invalid IL or missing references) //IL_1292: Unknown result type (might be due to invalid IL or missing references) //IL_129e: Expected O, but got Unknown //IL_12de: Unknown result type (might be due to invalid IL or missing references) //IL_12e3: Unknown result type (might be due to invalid IL or missing references) //IL_12eb: Unknown result type (might be due to invalid IL or missing references) //IL_12f6: Unknown result type (might be due to invalid IL or missing references) //IL_12fd: Unknown result type (might be due to invalid IL or missing references) //IL_1304: Unknown result type (might be due to invalid IL or missing references) //IL_130b: Unknown result type (might be due to invalid IL or missing references) //IL_1317: Expected O, but got Unknown //IL_1324: Unknown result type (might be due to invalid IL or missing references) //IL_1329: Unknown result type (might be due to invalid IL or missing references) //IL_1331: Unknown result type (might be due to invalid IL or missing references) //IL_133c: Unknown result type (might be due to invalid IL or missing references) //IL_1343: Unknown result type (might be due to invalid IL or missing references) //IL_134a: Unknown result type (might be due to invalid IL or missing references) //IL_1351: Unknown result type (might be due to invalid IL or missing references) //IL_135d: Expected O, but got Unknown //IL_139d: Unknown result type (might be due to invalid IL or missing references) //IL_13a2: Unknown result type (might be due to invalid IL or missing references) //IL_13aa: Unknown result type (might be due to invalid IL or missing references) //IL_13b5: Unknown result type (might be due to invalid IL or missing references) //IL_13bc: Unknown result type (might be due to invalid IL or missing references) //IL_13c3: Unknown result type (might be due to invalid IL or missing references) //IL_13ca: Unknown result type (might be due to invalid IL or missing references) //IL_13d6: Expected O, but got Unknown //IL_13e3: Unknown result type (might be due to invalid IL or missing references) //IL_13e8: Unknown result type (might be due to invalid IL or missing references) //IL_13f0: Unknown result type (might be due to invalid IL or missing references) //IL_13fb: Unknown result type (might be due to invalid IL or missing references) //IL_1402: Unknown result type (might be due to invalid IL or missing references) //IL_1409: Unknown result type (might be due to invalid IL or missing references) //IL_1410: Unknown result type (might be due to invalid IL or missing references) //IL_141c: Expected O, but got Unknown //IL_145c: Unknown result type (might be due to invalid IL or missing references) //IL_1461: Unknown result type (might be due to invalid IL or missing references) //IL_1469: Unknown result type (might be due to invalid IL or missing references) //IL_1474: Unknown result type (might be due to invalid IL or missing references) //IL_147b: Unknown result type (might be due to invalid IL or missing references) //IL_1482: Unknown result type (might be due to invalid IL or missing references) //IL_1489: Unknown result type (might be due to invalid IL or missing references) //IL_1495: Expected O, but got Unknown //IL_14a2: Unknown result type (might be due to invalid IL or missing references) //IL_14a7: Unknown result type (might be due to invalid IL or missing references) //IL_14af: Unknown result type (might be due to invalid IL or missing references) //IL_14ba: Unknown result type (might be due to invalid IL or missing references) //IL_14c1: Unknown result type (might be due to invalid IL or missing references) //IL_14c8: Unknown result type (might be due to invalid IL or missing references) //IL_14cf: Unknown result type (might be due to invalid IL or missing references) //IL_14db: Expected O, but got Unknown //IL_151b: Unknown result type (might be due to invalid IL or missing references) //IL_1520: Unknown result type (might be due to invalid IL or missing references) //IL_1528: Unknown result type (might be due to invalid IL or missing references) //IL_1533: Unknown result type (might be due to invalid IL or missing references) //IL_153a: Unknown result type (might be due to invalid IL or missing references) //IL_1541: Unknown result type (might be due to invalid IL or missing references) //IL_1548: Unknown result type (might be due to invalid IL or missing references) //IL_1554: Expected O, but got Unknown //IL_1561: Unknown result type (might be due to invalid IL or missing references) //IL_1566: Unknown result type (might be due to invalid IL or missing references) //IL_156e: Unknown result type (might be due to invalid IL or missing references) //IL_1579: Unknown result type (might be due to invalid IL or missing references) //IL_1580: Unknown result type (might be due to invalid IL or missing references) //IL_1587: Unknown result type (might be due to invalid IL or missing references) //IL_158e: Unknown result type (might be due to invalid IL or missing references) //IL_159a: Expected O, but got Unknown //IL_15da: Unknown result type (might be due to invalid IL or missing references) //IL_15df: Unknown result type (might be due to invalid IL or missing references) //IL_15e7: Unknown result type (might be due to invalid IL or missing references) //IL_15f2: Unknown result type (might be due to invalid IL or missing references) //IL_15f9: Unknown result type (might be due to invalid IL or missing references) //IL_1600: Unknown result type (might be due to invalid IL or missing references) //IL_1607: Unknown result type (might be due to invalid IL or missing references) //IL_1613: Expected O, but got Unknown //IL_1620: Unknown result type (might be due to invalid IL or missing references) //IL_1625: Unknown result type (might be due to invalid IL or missing references) //IL_162d: Unknown result type (might be due to invalid IL or missing references) //IL_1638: Unknown result type (might be due to invalid IL or missing references) //IL_163f: Unknown result type (might be due to invalid IL or missing references) //IL_1646: Unknown result type (might be due to invalid IL or missing references) //IL_164d: Unknown result type (might be due to invalid IL or missing references) //IL_1659: Expected O, but got Unknown //IL_1699: Unknown result type (might be due to invalid IL or missing references) //IL_169e: Unknown result type (might be due to invalid IL or missing references) //IL_16a6: Unknown result type (might be due to invalid IL or missing references) //IL_16b1: Unknown result type (might be due to invalid IL or missing references) //IL_16b8: Unknown result type (might be due to invalid IL or missing references) //IL_16bf: Unknown result type (might be due to invalid IL or missing references) //IL_16c6: Unknown result type (might be due to invalid IL or missing references) //IL_16d2: Expected O, but got Unknown //IL_16df: Unknown result type (might be due to invalid IL or missing references) //IL_16e4: Unknown result type (might be due to invalid IL or missing references) //IL_16ec: Unknown result type (might be due to invalid IL or missing references) //IL_16f7: Unknown result type (might be due to invalid IL or missing references) //IL_16fe: Unknown result type (might be due to invalid IL or missing references) //IL_1705: Unknown result type (might be due to invalid IL or missing references) //IL_170c: Unknown result type (might be due to invalid IL or missing references) //IL_1718: Expected O, but got Unknown //IL_1758: Unknown result type (might be due to invalid IL or missing references) //IL_175d: Unknown result type (might be due to invalid IL or missing references) //IL_1765: Unknown result type (might be due to invalid IL or missing references) //IL_1770: Unknown result type (might be due to invalid IL or missing references) //IL_1777: Unknown result type (might be due to invalid IL or missing references) //IL_177e: Unknown result type (might be due to invalid IL or missing references) //IL_1785: Unknown result type (might be due to invalid IL or missing references) //IL_1791: Expected O, but got Unknown //IL_179e: Unknown result type (might be due to invalid IL or missing references) //IL_17a3: Unknown result type (might be due to invalid IL or missing references) //IL_17ab: Unknown result type (might be due to invalid IL or missing references) //IL_17b6: Unknown result type (might be due to invalid IL or missing references) //IL_17bd: Unknown result type (might be due to invalid IL or missing references) //IL_17c4: Unknown result type (might be due to invalid IL or missing references) //IL_17cb: Unknown result type (might be due to invalid IL or missing references) //IL_17d7: Expected O, but got Unknown //IL_1817: Unknown result type (might be due to invalid IL or missing references) //IL_181c: Unknown result type (might be due to invalid IL or missing references) //IL_1824: Unknown result type (might be due to invalid IL or missing references) //IL_182f: Unknown result type (might be due to invalid IL or missing references) //IL_1836: Unknown result type (might be due to invalid IL or missing references) //IL_183d: Unknown result type (might be due to invalid IL or missing references) //IL_1844: Unknown result type (might be due to invalid IL or missing references) //IL_1850: Expected O, but got Unknown //IL_185d: Unknown result type (might be due to invalid IL or missing references) //IL_1862: Unknown result type (might be due to invalid IL or missing references) //IL_186a: Unknown result type (might be due to invalid IL or missing references) //IL_1875: Unknown result type (might be due to invalid IL or missing references) //IL_187c: Unknown result type (might be due to invalid IL or missing references) //IL_1883: Unknown result type (might be due to invalid IL or missing references) //IL_188a: Unknown result type (might be due to invalid IL or missing references) //IL_1896: Expected O, but got Unknown //IL_18d6: Unknown result type (might be due to invalid IL or missing references) //IL_18db: Unknown result type (might be due to invalid IL or missing references) //IL_18e3: Unknown result type (might be due to invalid IL or missing references) //IL_18ee: Unknown result type (might be due to invalid IL or missing references) //IL_18f5: Unknown result type (might be due to invalid IL or missing references) //IL_18fc: Unknown result type (might be due to invalid IL or missing references) //IL_1903: Unknown result type (might be due to invalid IL or missing references) //IL_190f: Expected O, but got Unknown //IL_191c: Unknown result type (might be due to invalid IL or missing references) //IL_1921: Unknown result type (might be due to invalid IL or missing references) //IL_1929: Unknown result type (might be due to invalid IL or missing references) //IL_1934: Unknown result type (might be due to invalid IL or missing references) //IL_193b: Unknown result type (might be due to invalid IL or missing references) //IL_1942: Unknown result type (might be due to invalid IL or missing references) //IL_1949: Unknown result type (might be due to invalid IL or missing references) //IL_1955: Expected O, but got Unknown //IL_1995: Unknown result type (might be due to invalid IL or missing references) //IL_199a: Unknown result type (might be due to invalid IL or missing references) //IL_19a2: Unknown result type (might be due to invalid IL or missing references) //IL_19ad: Unknown result type (might be due to invalid IL or missing references) //IL_19b4: Unknown result type (might be due to invalid IL or missing references) //IL_19bb: Unknown result type (might be due to invalid IL or missing references) //IL_19c2: Unknown result type (might be due to invalid IL or missing references) //IL_19ce: Expected O, but got Unknown //IL_19db: Unknown result type (might be due to invalid IL or missing references) //IL_19e0: Unknown result type (might be due to invalid IL or missing references) //IL_19e8: Unknown result type (might be due to invalid IL or missing references) //IL_19f3: Unknown result type (might be due to invalid IL or missing references) //IL_19fa: Unknown result type (might be due to invalid IL or missing references) //IL_1a01: Unknown result type (might be due to invalid IL or missing references) //IL_1a08: Unknown result type (might be due to invalid IL or missing references) //IL_1a14: Expected O, but got Unknown //IL_1a54: Unknown result type (might be due to invalid IL or missing references) //IL_1a59: Unknown result type (might be due to invalid IL or missing references) //IL_1a61: Unknown result type (might be due to invalid IL or missing references) //IL_1a6c: Unknown result type (might be due to invalid IL or missing references) //IL_1a73: Unknown result type (might be due to invalid IL or missing references) //IL_1a7a: Unknown result type (might be due to invalid IL or missing references) //IL_1a81: Unknown result type (might be due to invalid IL or missing references) //IL_1a8d: Expected O, but got Unknown //IL_1a9a: Unknown result type (might be due to invalid IL or missing references) //IL_1a9f: Unknown result type (might be due to invalid IL or missing references) //IL_1aa7: Unknown result type (might be due to invalid IL or missing references) //IL_1ab2: Unknown result type (might be due to invalid IL or missing references) //IL_1ab9: Unknown result type (might be due to invalid IL or missing references) //IL_1ac0: Unknown result type (might be due to invalid IL or missing references) //IL_1ac7: Unknown result type (might be due to invalid IL or missing references) //IL_1ad3: Expected O, but got Unknown try { GameObject prefab = PrefabManager.Instance.GetPrefab("Boar"); GameObject prefab2 = PrefabManager.Instance.GetPrefab("MeadowsAirS_RtD"); GameObject prefab3 = PrefabManager.Instance.GetPrefab("MeadowsNatureS_RtD"); prefab.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab2, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab3, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab4 = PrefabManager.Instance.GetPrefab("Neck"); GameObject prefab5 = PrefabManager.Instance.GetPrefab("MeadowsAirS_RtD"); GameObject prefab6 = PrefabManager.Instance.GetPrefab("MeadowsNatureS_RtD"); prefab4.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab5, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab4.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab6, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab7 = PrefabManager.Instance.GetPrefab("Greyling"); GameObject prefab8 = PrefabManager.Instance.GetPrefab("MeadowsAirS_RtD"); GameObject prefab9 = PrefabManager.Instance.GetPrefab("MeadowsNatureS_RtD"); prefab7.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab8, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab7.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab9, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab10 = PrefabManager.Instance.GetPrefab("Greydwarf"); GameObject prefab11 = PrefabManager.Instance.GetPrefab("BlackForestNatureS_RtD"); GameObject prefab12 = PrefabManager.Instance.GetPrefab("BlackForestShockG_RtD"); prefab10.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab11, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab10.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab12, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab13 = PrefabManager.Instance.GetPrefab("Greydwarf_Elite"); GameObject prefab14 = PrefabManager.Instance.GetPrefab("BlackForestNatureS_RtD"); GameObject prefab15 = PrefabManager.Instance.GetPrefab("BlackForestShockG_RtD"); prefab13.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab14, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab13.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab15, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab16 = PrefabManager.Instance.GetPrefab("Greydwarf_Shaman"); GameObject prefab17 = PrefabManager.Instance.GetPrefab("BlackForestNatureS_RtD"); GameObject prefab18 = PrefabManager.Instance.GetPrefab("BlackForestShockG_RtD"); prefab16.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab17, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab16.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab18, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab19 = PrefabManager.Instance.GetPrefab("Troll"); GameObject prefab20 = PrefabManager.Instance.GetPrefab("BlackForestNatureS_RtD"); GameObject prefab21 = PrefabManager.Instance.GetPrefab("BlackForestShockG_RtD"); prefab19.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab20, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab19.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab21, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab22 = PrefabManager.Instance.GetPrefab("Skeleton"); GameObject prefab23 = PrefabManager.Instance.GetPrefab("BlackForestNatureS_RtD"); GameObject prefab24 = PrefabManager.Instance.GetPrefab("BlackForestShockG_RtD"); prefab22.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab23, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab22.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab24, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab25 = PrefabManager.Instance.GetPrefab("Blob"); GameObject prefab26 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab27 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab25.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab26, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab25.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab27, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab28 = PrefabManager.Instance.GetPrefab("BlobElite"); GameObject prefab29 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab30 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab28.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab29, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab28.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab30, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab31 = PrefabManager.Instance.GetPrefab("Draugr"); GameObject prefab32 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab33 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab31.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab32, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab31.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab33, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab34 = PrefabManager.Instance.GetPrefab("Draugr_Elite"); GameObject prefab35 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab36 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab34.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab35, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab34.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab36, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab37 = PrefabManager.Instance.GetPrefab("Leech"); GameObject prefab38 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab39 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab37.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab38, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab37.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab39, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab40 = PrefabManager.Instance.GetPrefab("Surtling"); GameObject prefab41 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab42 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab40.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab41, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab40.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab42, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab43 = PrefabManager.Instance.GetPrefab("Wraith"); GameObject prefab44 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab45 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab43.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab44, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab43.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab45, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab46 = PrefabManager.Instance.GetPrefab("Abomination"); GameObject prefab47 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab48 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); prefab46.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab47, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab46.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab48, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab49 = PrefabManager.Instance.GetPrefab("Wolf"); GameObject prefab50 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab51 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab49.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab50, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab49.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab51, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab52 = PrefabManager.Instance.GetPrefab("Hatchling"); GameObject prefab53 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab54 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab52.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab53, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab52.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab54, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab55 = PrefabManager.Instance.GetPrefab("StoneGolem"); GameObject prefab56 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab57 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab55.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab56, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab55.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab57, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab58 = PrefabManager.Instance.GetPrefab("Fenring"); GameObject prefab59 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab60 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab58.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab59, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab58.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab60, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab61 = PrefabManager.Instance.GetPrefab("Fenring_Cultist"); GameObject prefab62 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab63 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab61.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab62, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab61.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab63, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab64 = PrefabManager.Instance.GetPrefab("Ulv"); GameObject prefab65 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab66 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab64.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab65, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab64.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab66, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab67 = PrefabManager.Instance.GetPrefab("Bat"); GameObject prefab68 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab69 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); prefab67.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab68, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab67.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab69, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab70 = PrefabManager.Instance.GetPrefab("Goblin"); GameObject prefab71 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab72 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); prefab70.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab71, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab70.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab72, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab73 = PrefabManager.Instance.GetPrefab("GoblinBrute"); GameObject prefab74 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab75 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); prefab73.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab74, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab73.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab75, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab76 = PrefabManager.Instance.GetPrefab("GoblinShaman"); GameObject prefab77 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab78 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); prefab76.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab77, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab76.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab78, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab79 = PrefabManager.Instance.GetPrefab("Lox"); GameObject prefab80 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab81 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); prefab79.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab80, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab79.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab81, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab82 = PrefabManager.Instance.GetPrefab("Deathsquito"); GameObject prefab83 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab84 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); prefab82.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab83, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab82.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab84, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab85 = PrefabManager.Instance.GetPrefab("BlobTar"); GameObject prefab86 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab87 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); prefab85.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab86, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab85.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab87, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab88 = PrefabManager.Instance.GetPrefab("Dverger"); GameObject prefab89 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab90 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab88.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab89, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab88.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab90, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab91 = PrefabManager.Instance.GetPrefab("Hare"); GameObject prefab92 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab93 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab91.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab92, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab91.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab93, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab94 = PrefabManager.Instance.GetPrefab("Tick"); GameObject prefab95 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab96 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab94.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab95, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab94.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab96, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab97 = PrefabManager.Instance.GetPrefab("Gjall"); GameObject prefab98 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab99 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab97.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab98, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab97.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab99, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab100 = PrefabManager.Instance.GetPrefab("SeekerBrute"); GameObject prefab101 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab102 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab100.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab101, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab100.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab102, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab103 = PrefabManager.Instance.GetPrefab("SeekerBrood"); GameObject prefab104 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab105 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab103.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab104, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab103.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab105, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); GameObject prefab106 = PrefabManager.Instance.GetPrefab("Seeker"); GameObject prefab107 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab108 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); prefab106.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab107, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab106.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab108, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundle: {arg}"); } finally { PrefabManager.OnPrefabsRegistered -= VanillaMonstersDrops; } } private void SpiritDrops() { //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Expected O, but got Unknown //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01a9: Unknown result type (might be due to invalid IL or missing references) //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Expected O, but got Unknown //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01fc: Unknown result type (might be due to invalid IL or missing references) //IL_0203: Unknown result type (might be due to invalid IL or missing references) //IL_020f: Expected O, but got Unknown //IL_021b: Unknown result type (might be due to invalid IL or missing references) //IL_0220: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_0248: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Expected O, but got Unknown //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_0279: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Unknown result type (might be due to invalid IL or missing references) //IL_0287: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_029a: Expected O, but got Unknown //IL_02a7: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02b4: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Unknown result type (might be due to invalid IL or missing references) //IL_02c6: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Expected O, but got Unknown //IL_02ed: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: Unknown result type (might be due to invalid IL or missing references) //IL_02fa: Unknown result type (might be due to invalid IL or missing references) //IL_0305: Unknown result type (might be due to invalid IL or missing references) //IL_030c: Unknown result type (might be due to invalid IL or missing references) //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_0326: Expected O, but got Unknown //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0352: 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_0360: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Expected O, but got Unknown //IL_0379: Unknown result type (might be due to invalid IL or missing references) //IL_037e: Unknown result type (might be due to invalid IL or missing references) //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_0391: Unknown result type (might be due to invalid IL or missing references) //IL_0398: Unknown result type (might be due to invalid IL or missing references) //IL_039f: Unknown result type (might be due to invalid IL or missing references) //IL_03a6: Unknown result type (might be due to invalid IL or missing references) //IL_03b2: Expected O, but got Unknown //IL_03bf: Unknown result type (might be due to invalid IL or missing references) //IL_03c4: Unknown result type (might be due to invalid IL or missing references) //IL_03cc: Unknown result type (might be due to invalid IL or missing references) //IL_03d7: Unknown result type (might be due to invalid IL or missing references) //IL_03de: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Expected O, but got Unknown //IL_0405: Unknown result type (might be due to invalid IL or missing references) //IL_040a: Unknown result type (might be due to invalid IL or missing references) //IL_0412: Unknown result type (might be due to invalid IL or missing references) //IL_041d: Unknown result type (might be due to invalid IL or missing references) //IL_0424: Unknown result type (might be due to invalid IL or missing references) //IL_042b: Unknown result type (might be due to invalid IL or missing references) //IL_0432: Unknown result type (might be due to invalid IL or missing references) //IL_043e: Expected O, but got Unknown //IL_044b: Unknown result type (might be due to invalid IL or missing references) //IL_0450: Unknown result type (might be due to invalid IL or missing references) //IL_0458: 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_046a: Unknown result type (might be due to invalid IL or missing references) //IL_0471: Unknown result type (might be due to invalid IL or missing references) //IL_0478: Unknown result type (might be due to invalid IL or missing references) //IL_0484: Expected O, but got Unknown //IL_0491: Unknown result type (might be due to invalid IL or missing references) //IL_0496: Unknown result type (might be due to invalid IL or missing references) //IL_049e: Unknown result type (might be due to invalid IL or missing references) //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04b0: Unknown result type (might be due to invalid IL or missing references) //IL_04b7: Unknown result type (might be due to invalid IL or missing references) //IL_04be: Unknown result type (might be due to invalid IL or missing references) //IL_04ca: Expected O, but got Unknown //IL_04d7: Unknown result type (might be due to invalid IL or missing references) //IL_04dc: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Unknown result type (might be due to invalid IL or missing references) //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_04f6: Unknown result type (might be due to invalid IL or missing references) //IL_04fd: Unknown result type (might be due to invalid IL or missing references) //IL_0504: Unknown result type (might be due to invalid IL or missing references) //IL_0510: Expected O, but got Unknown //IL_051d: Unknown result type (might be due to invalid IL or missing references) //IL_0522: Unknown result type (might be due to invalid IL or missing references) //IL_052a: Unknown result type (might be due to invalid IL or missing references) //IL_0535: Unknown result type (might be due to invalid IL or missing references) //IL_053c: Unknown result type (might be due to invalid IL or missing references) //IL_0543: Unknown result type (might be due to invalid IL or missing references) //IL_054a: Unknown result type (might be due to invalid IL or missing references) //IL_0556: Expected O, but got Unknown //IL_0563: Unknown result type (might be due to invalid IL or missing references) //IL_0568: Unknown result type (might be due to invalid IL or missing references) //IL_0570: Unknown result type (might be due to invalid IL or missing references) //IL_057b: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Unknown result type (might be due to invalid IL or missing references) //IL_0589: Unknown result type (might be due to invalid IL or missing references) //IL_0590: Unknown result type (might be due to invalid IL or missing references) //IL_059c: Expected O, but got Unknown //IL_05a9: Unknown result type (might be due to invalid IL or missing references) //IL_05ae: Unknown result type (might be due to invalid IL or missing references) //IL_05b6: Unknown result type (might be due to invalid IL or missing references) //IL_05c1: Unknown result type (might be due to invalid IL or missing references) //IL_05c8: Unknown result type (might be due to invalid IL or missing references) //IL_05cf: Unknown result type (might be due to invalid IL or missing references) //IL_05d6: Unknown result type (might be due to invalid IL or missing references) //IL_05e2: Expected O, but got Unknown //IL_05ef: Unknown result type (might be due to invalid IL or missing references) //IL_05f4: Unknown result type (might be due to invalid IL or missing references) //IL_05fc: Unknown result type (might be due to invalid IL or missing references) //IL_0607: Unknown result type (might be due to invalid IL or missing references) //IL_060e: Unknown result type (might be due to invalid IL or missing references) //IL_0615: Unknown result type (might be due to invalid IL or missing references) //IL_061c: Unknown result type (might be due to invalid IL or missing references) //IL_0628: Expected O, but got Unknown try { GameObject prefab = PrefabManager.Instance.GetPrefab("AshLandsDarkS_RtD"); GameObject prefab2 = PrefabManager.Instance.GetPrefab("AshLandsFairyS_RtD"); GameObject prefab3 = PrefabManager.Instance.GetPrefab("BlackForestNatureS_RtD"); GameObject prefab4 = PrefabManager.Instance.GetPrefab("BlackForestShockG_RtD"); GameObject prefab5 = PrefabManager.Instance.GetPrefab("DeepNorthArcaneS_RtD"); GameObject prefab6 = PrefabManager.Instance.GetPrefab("DeepNorthFairyS_RtD"); GameObject prefab7 = PrefabManager.Instance.GetPrefab("MeadowsAirS_RtD"); GameObject prefab8 = PrefabManager.Instance.GetPrefab("MeadowsNatureS_RtD"); GameObject prefab9 = PrefabManager.Instance.GetPrefab("MistlandsFairyS_RtD"); GameObject prefab10 = PrefabManager.Instance.GetPrefab("MistlandsUniverseS_RtD"); GameObject prefab11 = PrefabManager.Instance.GetPrefab("MountainHolyS_RtD"); GameObject prefab12 = PrefabManager.Instance.GetPrefab("MountainIceS_RtD"); GameObject prefab13 = PrefabManager.Instance.GetPrefab("OceanHolyS_RtD"); GameObject prefab14 = PrefabManager.Instance.GetPrefab("OceanWaterS_RtD"); GameObject prefab15 = PrefabManager.Instance.GetPrefab("PlainsVoidS_RtD"); GameObject prefab16 = PrefabManager.Instance.GetPrefab("PlainsHolyS_RtD"); GameObject prefab17 = PrefabManager.Instance.GetPrefab("SwampDarkS_RtD"); GameObject prefab18 = PrefabManager.Instance.GetPrefab("SwampNatureS_RtD"); GameObject prefab19 = PrefabManager.Instance.GetPrefab("SpiritEssense_RtD"); prefab.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab2.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab3.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab4.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab5.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab6.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab7.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab8.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab9.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab10.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab11.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab12.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab13.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab14.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab15.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab16.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab17.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); prefab18.GetComponent<CharacterDrop>().m_drops.Add(new Drop { m_prefab = prefab19, m_chance = 0.05f, m_amountMin = 1, m_amountMax = 1, m_levelMultiplier = false, m_onePerPlayer = false }); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundle: {arg}"); } finally { PrefabManager.OnPrefabsRegistered -= SpiritDrops; } } private void AddDropsCheck() { try { GameObject prefab = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); if (!Object.op_Implicit((Object)(object)prefab)) { ((BaseUnityPlugin)this).Logger.LogMessage((object)"RtDMonstrum was not installed, skipping drops related to this mod."); } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding Spirit Essence: {arg}"); } finally { PrefabManager.OnPrefabsRegistered -= AddDropsCheck; } } private void FixSFX() { try { AudioSource prefab = Cache.GetPrefab<AudioSource>("sfx_arrow_hit"); string[] sFXList = SFXList; foreach (string text in sFXList) { GameObject prefab2 = Cache.GetPrefab<GameObject>(text); prefab2.GetComponentInChildren<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup; if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Audio Mixer set on: " + text)); } } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while fixing custom audio: {arg}"); } finally { PrefabManager.OnPrefabsRegistered -= FixSFX; } } private void AddSFX() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Expected O, but got Unknown try { string[] sFXList = SFXList; foreach (string text in sFXList) { GameObject val = MyAssets.LoadAsset<GameObject>(text); if ((Object)(object)val != (Object)null) { GameObject prefab = Cache.GetPrefab<GameObject>(text); if ((Object)(object)prefab == (Object)null) { CustomPrefab val2 = new CustomPrefab(val, false); 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 sfx prefabs: {arg}"); } } } }