Decompiled source of Skittering Madness v0.1.5

SkitteringMadness.dll

Decompiled 4 months ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using Jotunn.Configs;
using Jotunn.Entities;
using Jotunn.Managers;
using Jotunn.Utils;
using SpawnThat.Spawners;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Wildlife")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Wildlife")]
[assembly: AssemblyCopyright("Copyright ©  2022")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f247181f-9da0-443a-8cd2-7b38a43a08c5")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SkitteringMadness;

[BepInPlugin("horemvore.SkitteringMadness", "SkitteringMadness", "0.1.5")]
[BepInIncompatibility("Azumatt.AzuDevMod")]
[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
internal class scorpionBundle : BaseUnityPlugin
{
	public const string PluginGUID = "horemvore.SkitteringMadness";

	public const string PluginName = "SkitteringMadness";

	public const string PluginVersion = "0.1.5";

	public static bool isModded = true;

	public static GameObject Scorpion1;

	public static GameObject Scorpion2;

	public static GameObject Scorpion3;

	public static GameObject Scorpion4;

	public static GameObject Scorpion5;

	public static GameObject Scorpion6;

	public static GameObject Scorpion7;

	public static GameObject Scorpion8;

	public static GameObject Scorpion9;

	public static GameObject ScorpionBoss;

	public static GameObject Scorpion1RD;

	public static GameObject Scorpion2RD;

	public static GameObject Scorpion3RD;

	public static GameObject Scorpion4RD;

	public static GameObject Scorpion5RD;

	public static GameObject Scorpion6RD;

	public static GameObject Scorpion7RD;

	public static GameObject Scorpion8RD;

	public static GameObject Scorpion9RD;

	public static GameObject ScorpionBossRD;

	public static GameObject SFX1;

	public static GameObject SFX2;

	public static GameObject SFX3;

	public static GameObject SFX4;

	public static GameObject SFX5;

	public static GameObject SFX6;

	public static GameObject VFX1;

	public static GameObject VFX2;

	public static GameObject VFX3;

	public static GameObject VFX4;

	public static GameObject VFX5;

	public static GameObject ScorpionA1;

	public static GameObject ScorpionA2;

	public static GameObject ScorpionA3;

	public static GameObject ScorpionA1M;

	public static GameObject ScorpionA2M;

	public static GameObject ScorpionA3M;

	public static GameObject ScorpionA1DN;

	public static GameObject ScorpionA2DN;

	public static GameObject ScorpionA3DN;

	public static GameObject ScorpionA1AL;

	public static GameObject ScorpionA2AL;

	public static GameObject ScorpionA3AL;

	public static GameObject ScorpionBossA1;

	public static GameObject ScorpionBossA2;

	public static GameObject ScorpionBossA3;

	public static GameObject ScorpionBossA4;

	public static GameObject ScorpionBossA5;

	public static GameObject ScorpionBossA6;

	public static GameObject ScorpionBossA1U;

	public static GameObject ScorpionBossA2U;

	public static GameObject Trophy1;

	public static GameObject Trophy2;

	public static GameObject Trophy3;

	public static GameObject Trophy4;

	public static GameObject Trophy5;

	public static GameObject Trophy6;

	public static GameObject Trophy7;

	public static GameObject Trophy8;

	public static GameObject Trophy9;

	public static GameObject Trophy10;

	public AssetBundle ScorpionBundle;

	public AssetBundle ScorpionLocBundle;

	public static GameObject LocSpawner;

	private CustomLocalization Localization;

	internal static ManualLogSource Log;

	private void Awake()
	{
		Log = ((BaseUnityPlugin)this).Logger;
		AddLocalizations();
		LoadBundle();
		LoadAssets();
		AddScorpions();
		PrefabManager.OnVanillaPrefabsAvailable += FixSFX;
		try
		{
			SpawnerConfigurationManager.OnConfigure += ConfigureBiomeSpawners;
		}
		catch (Exception value)
		{
			Console.WriteLine(value);
		}
	}

	private void AddLocalizations()
	{
		try
		{
			Localization = LocalizationManager.Instance.GetLocalization();
			CustomLocalization localization = Localization;
			string text = "English";
			localization.AddTranslation(ref text, new Dictionary<string, string>
			{
				{ "item_trophy_scorpionred_sm", "Scorpion" },
				{ "item_trophy_scorpionred_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionbrown_sm", "Scorpion" },
				{ "item_trophy_scorpionbrown_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionblue_sm", "Scorpion" },
				{ "item_trophy_scorpionblue_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpiongreen_sm", "Scorpion" },
				{ "item_trophy_scorpiongreen_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionpink_sm", "Scorpion" },
				{ "item_trophy_scorpionpink_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionpurple_sm", "Scorpion" },
				{ "item_trophy_scorpionpurple_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionwhite_sm", "Scorpion" },
				{ "item_trophy_scorpionwhite_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionyellow_sm", "Scorpion" },
				{ "item_trophy_scorpionyellow_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionblack_sm", "Scorpion" },
				{ "item_trophy_scorpionblack_desc_sm", "Animated Trophy of a Scorpion" },
				{ "item_trophy_scorpionboss_sm", "Scorpion" },
				{ "item_trophy_scorpionboss_desc_sm", "Animated Trophy of a Sarkoth" },
				{ "enemy_scorpion_sm", "Scorpion" },
				{ "enemy_scorpionboss_sm", "Sarkoth" }
			});
			CustomLocalization localization2 = Localization;
			text = "Russian";
			localization2.AddTranslation(ref text, new Dictionary<string, string>
			{
				{ "item_trophy_scorpionred_sm", "Скорпион" },
				{ "item_trophy_scorpionred_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionbrown_sm", "Скорпион" },
				{ "item_trophy_scorpionbrown_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionblue_sm", "Скорпион" },
				{ "item_trophy_scorpionblue_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpiongreen_sm", "Скорпион" },
				{ "item_trophy_scorpiongreen_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionpink_sm", "Скорпион" },
				{ "item_trophy_scorpionpink_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionpurple_sm", "Скорпион" },
				{ "item_trophy_scorpionpurple_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionwhite_sm", "Скорпион" },
				{ "item_trophy_scorpionwhite_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionyellow_sm", "Скорпион" },
				{ "item_trophy_scorpionyellow_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionblack_sm", "Скорпион" },
				{ "item_trophy_scorpionblack_desc_sm", "Анимированный трофей скорпиона" },
				{ "item_trophy_scorpionboss_sm", "Скорпион" },
				{ "item_trophy_scorpionboss_desc_sm", "Анимированный трофей Саркота" },
				{ "enemy_scorpion_sm", "Скорпион" },
				{ "enemy_scorpionboss_sm", "Саркот" }
			});
			CustomLocalization localization3 = Localization;
			text = "German";
			localization3.AddTranslation(ref text, new Dictionary<string, string>
			{
				{ "item_trophy_scorpionred_sm", "Skorpion" },
				{ "item_trophy_scorpionred_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionbrown_sm", "Skorpion" },
				{ "item_trophy_scorpionbrown_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionblue_sm", "Skorpion" },
				{ "item_trophy_scorpionblue_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpiongreen_sm", "Skorpion" },
				{ "item_trophy_scorpiongreen_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionpink_sm", "Skorpion" },
				{ "item_trophy_scorpionpink_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionpurple_sm", "Skorpion" },
				{ "item_trophy_scorpionpurple_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionwhite_sm", "Skorpion" },
				{ "item_trophy_scorpionwhite_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionyellow_sm", "Skorpion" },
				{ "item_trophy_scorpionyellow_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionblack_sm", "Skorpion" },
				{ "item_trophy_scorpionblack_desc_sm", "Animierte Trophäe eines Skorpions" },
				{ "item_trophy_scorpionboss_sm", "Skorpion" },
				{ "item_trophy_scorpionboss_desc_sm", "Animierte Trophäe eines Sarkoth" },
				{ "enemy_scorpion_sm", "Skorpion" },
				{ "enemy_scorpionboss_sm", "Sarkoth" }
			});
			CustomLocalization localization4 = Localization;
			text = "Turkish";
			localization4.AddTranslation(ref text, new Dictionary<string, string>
			{
				{ "item_trophy_scorpionred_sm", "Akrep" },
				{ "item_trophy_scorpionred_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionbrown_sm", "Akrep" },
				{ "item_trophy_scorpionbrown_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionblue_sm", "Akrep" },
				{ "item_trophy_scorpionblue_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpiongreen_sm", "Akrep" },
				{ "item_trophy_scorpiongreen_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionpink_sm", "Akrep" },
				{ "item_trophy_scorpionpink_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionpurple_sm", "Akrep" },
				{ "item_trophy_scorpionpurple_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionwhite_sm", "Akrep" },
				{ "item_trophy_scorpionwhite_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionyellow_sm", "Akrep" },
				{ "item_trophy_scorpionyellow_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionblack_sm", "Akrep" },
				{ "item_trophy_scorpionblack_desc_sm", "Bir Akrep Animasyonlu Trophy" },
				{ "item_trophy_scorpionboss_sm", "Akrep" },
				{ "item_trophy_scorpionboss_desc_sm", "Bir Sarkoth Animasyonlu Trophy" },
				{ "enemy_scorpion_sm", "Akrep" },
				{ "enemy_scorpionboss_sm", "Sarkoth" }
			});
		}
		catch (Exception arg)
		{
			((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding Localication for Deds Army: {arg}");
		}
	}

	public void LoadBundle()
	{
		ScorpionBundle = AssetUtils.LoadAssetBundleFromResources("scorpions", Assembly.GetExecutingAssembly());
	}

	private void LoadAssets()
	{
		//IL_0032: Unknown result type (might be due to invalid IL or missing references)
		//IL_0038: Expected O, but got Unknown
		//IL_005f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0065: Expected O, but got Unknown
		//IL_008c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0092: Expected O, but got Unknown
		//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bf: Expected O, but got Unknown
		//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ed: Expected O, but got Unknown
		//IL_0115: Unknown result type (might be due to invalid IL or missing references)
		//IL_011c: Expected O, but got Unknown
		//IL_0144: Unknown result type (might be due to invalid IL or missing references)
		//IL_014b: Expected O, but got Unknown
		//IL_0173: Unknown result type (might be due to invalid IL or missing references)
		//IL_017a: Expected O, but got Unknown
		//IL_01a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a9: Expected O, but got Unknown
		//IL_01d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_01d8: Expected O, but got Unknown
		//IL_02d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d9: Expected O, but got Unknown
		//IL_0301: Unknown result type (might be due to invalid IL or missing references)
		//IL_0308: Expected O, but got Unknown
		//IL_0330: Unknown result type (might be due to invalid IL or missing references)
		//IL_0337: Expected O, but got Unknown
		//IL_035f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0366: Expected O, but got Unknown
		//IL_038e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0395: Expected O, but got Unknown
		//IL_03bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c4: Expected O, but got Unknown
		//IL_03ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f3: Expected O, but got Unknown
		//IL_041b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0422: Expected O, but got Unknown
		//IL_044a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0451: Expected O, but got Unknown
		//IL_0479: Unknown result type (might be due to invalid IL or missing references)
		//IL_0480: Expected O, but got Unknown
		//IL_04a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_04af: Expected O, but got Unknown
		//IL_04d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_04de: Expected O, but got Unknown
		//IL_0506: Unknown result type (might be due to invalid IL or missing references)
		//IL_050d: Expected O, but got Unknown
		//IL_0535: Unknown result type (might be due to invalid IL or missing references)
		//IL_053c: Expected O, but got Unknown
		//IL_0564: Unknown result type (might be due to invalid IL or missing references)
		//IL_056b: Expected O, but got Unknown
		//IL_0593: Unknown result type (might be due to invalid IL or missing references)
		//IL_059a: Expected O, but got Unknown
		//IL_05c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_05c9: Expected O, but got Unknown
		//IL_05f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_05f8: Expected O, but got Unknown
		//IL_0620: Unknown result type (might be due to invalid IL or missing references)
		//IL_0627: Expected O, but got Unknown
		//IL_064f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0656: Expected O, but got Unknown
		//IL_067e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0685: Expected O, but got Unknown
		//IL_06ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_06b4: Expected O, but got Unknown
		//IL_06dc: Unknown result type (might be due to invalid IL or missing references)
		//IL_06e3: Expected O, but got Unknown
		//IL_070b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0712: Expected O, but got Unknown
		//IL_073a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0741: Expected O, but got Unknown
		//IL_0769: Unknown result type (might be due to invalid IL or missing references)
		//IL_0770: Expected O, but got Unknown
		//IL_0798: Unknown result type (might be due to invalid IL or missing references)
		//IL_079f: Expected O, but got Unknown
		//IL_07c7: Unknown result type (might be due to invalid IL or missing references)
		//IL_07ce: Expected O, but got Unknown
		//IL_07f6: Unknown result type (might be due to invalid IL or missing references)
		//IL_07fd: Expected O, but got Unknown
		//IL_0825: Unknown result type (might be due to invalid IL or missing references)
		//IL_082c: Expected O, but got Unknown
		//IL_0854: Unknown result type (might be due to invalid IL or missing references)
		//IL_085b: Expected O, but got Unknown
		//IL_0883: Unknown result type (might be due to invalid IL or missing references)
		//IL_088a: Expected O, but got Unknown
		//IL_08b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_08b9: Expected O, but got Unknown
		//IL_08e1: Unknown result type (might be due to invalid IL or missing references)
		//IL_08e8: Expected O, but got Unknown
		//IL_0910: Unknown result type (might be due to invalid IL or missing references)
		//IL_0917: Expected O, but got Unknown
		//IL_093f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0946: Expected O, but got Unknown
		//IL_096e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0975: Expected O, but got Unknown
		//IL_099d: Unknown result type (might be due to invalid IL or missing references)
		//IL_09a4: Expected O, but got Unknown
		//IL_09cc: Unknown result type (might be due to invalid IL or missing references)
		//IL_09d3: Expected O, but got Unknown
		//IL_09fb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a02: Expected O, but got Unknown
		//IL_0a2a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a31: Expected O, but got Unknown
		try
		{
			LocSpawner = ScorpionBundle.LoadAsset<GameObject>("Spawner_Scorpion_SM");
			Trophy1 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionRed_SM");
			CustomItem val = new CustomItem(Trophy1, false);
			ItemManager.Instance.AddItem(val);
			Trophy2 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionBrown_SM");
			CustomItem val2 = new CustomItem(Trophy2, false);
			ItemManager.Instance.AddItem(val2);
			Trophy3 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionGreen_SM");
			CustomItem val3 = new CustomItem(Trophy3, false);
			ItemManager.Instance.AddItem(val3);
			Trophy4 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionBlue_SM");
			CustomItem val4 = new CustomItem(Trophy4, false);
			ItemManager.Instance.AddItem(val4);
			Trophy5 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionPink_SM");
			CustomItem val5 = new CustomItem(Trophy5, false);
			ItemManager.Instance.AddItem(val5);
			Trophy6 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionPurple_SM");
			CustomItem val6 = new CustomItem(Trophy6, false);
			ItemManager.Instance.AddItem(val6);
			Trophy7 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionWhite_SM");
			CustomItem val7 = new CustomItem(Trophy7, false);
			ItemManager.Instance.AddItem(val7);
			Trophy8 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionYellow_SM");
			CustomItem val8 = new CustomItem(Trophy8, false);
			ItemManager.Instance.AddItem(val8);
			Trophy9 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionBlack_SM");
			CustomItem val9 = new CustomItem(Trophy9, false);
			ItemManager.Instance.AddItem(val9);
			Trophy10 = ScorpionBundle.LoadAsset<GameObject>("Trophy_ScorpionBoss_SM");
			CustomItem val10 = new CustomItem(Trophy10, false);
			ItemManager.Instance.AddItem(val10);
			Scorpion1 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBlack_SM");
			Scorpion2 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBlue_SM");
			Scorpion3 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBrown_SM");
			Scorpion4 = ScorpionBundle.LoadAsset<GameObject>("ScorpionGreen_SM");
			Scorpion5 = ScorpionBundle.LoadAsset<GameObject>("ScorpionPink_SM");
			Scorpion6 = ScorpionBundle.LoadAsset<GameObject>("ScorpionPurple_SM");
			Scorpion7 = ScorpionBundle.LoadAsset<GameObject>("ScorpionRed_SM");
			Scorpion8 = ScorpionBundle.LoadAsset<GameObject>("ScorpionWhite_SM");
			Scorpion9 = ScorpionBundle.LoadAsset<GameObject>("ScorpionYellow_SM");
			ScorpionBoss = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_SM");
			Scorpion1RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionBlack_RD_SM");
			CustomPrefab val11 = new CustomPrefab(Scorpion1RD, true);
			PrefabManager.Instance.AddPrefab(val11);
			Scorpion2RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionBlue_RD_SM");
			CustomPrefab val12 = new CustomPrefab(Scorpion2RD, true);
			PrefabManager.Instance.AddPrefab(val12);
			Scorpion3RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionBrown_RD_SM");
			CustomPrefab val13 = new CustomPrefab(Scorpion3RD, true);
			PrefabManager.Instance.AddPrefab(val13);
			Scorpion4RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionGreen_RD_SM");
			CustomPrefab val14 = new CustomPrefab(Scorpion4RD, true);
			PrefabManager.Instance.AddPrefab(val14);
			Scorpion5RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionPink_RD_SM");
			CustomPrefab val15 = new CustomPrefab(Scorpion5RD, true);
			PrefabManager.Instance.AddPrefab(val15);
			Scorpion6RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionPurple_RD_SM");
			CustomPrefab val16 = new CustomPrefab(Scorpion6RD, true);
			PrefabManager.Instance.AddPrefab(val16);
			Scorpion7RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionRed_RD_SM");
			CustomPrefab val17 = new CustomPrefab(Scorpion7RD, true);
			PrefabManager.Instance.AddPrefab(val17);
			Scorpion8RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionWhite_RD_SM");
			CustomPrefab val18 = new CustomPrefab(Scorpion8RD, true);
			PrefabManager.Instance.AddPrefab(val18);
			Scorpion9RD = ScorpionBundle.LoadAsset<GameObject>("ScorpionYellow_RD_SM");
			CustomPrefab val19 = new CustomPrefab(Scorpion9RD, true);
			PrefabManager.Instance.AddPrefab(val19);
			ScorpionBossRD = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_RD_SM");
			CustomPrefab val20 = new CustomPrefab(ScorpionBossRD, true);
			PrefabManager.Instance.AddPrefab(val20);
			SFX1 = ScorpionBundle.LoadAsset<GameObject>("SFX_ScorpionAlert_SM");
			CustomPrefab val21 = new CustomPrefab(SFX1, false);
			PrefabManager.Instance.AddPrefab(val21);
			SFX2 = ScorpionBundle.LoadAsset<GameObject>("SFX_ScorpionAttack1_SM");
			CustomPrefab val22 = new CustomPrefab(SFX2, false);
			PrefabManager.Instance.AddPrefab(val22);
			SFX3 = ScorpionBundle.LoadAsset<GameObject>("SFX_ScorpionDeath_SM");
			CustomPrefab val23 = new CustomPrefab(SFX3, false);
			PrefabManager.Instance.AddPrefab(val23);
			SFX4 = ScorpionBundle.LoadAsset<GameObject>("SFX_ScorpionHit_SM");
			CustomPrefab val24 = new CustomPrefab(SFX4, false);
			PrefabManager.Instance.AddPrefab(val24);
			SFX5 = ScorpionBundle.LoadAsset<GameObject>("SFX_ScorpionIdle_SM");
			CustomPrefab val25 = new CustomPrefab(SFX5, false);
			PrefabManager.Instance.AddPrefab(val25);
			SFX6 = ScorpionBundle.LoadAsset<GameObject>("SFX_BossAttackSpawn_SM");
			CustomPrefab val26 = new CustomPrefab(SFX6, false);
			PrefabManager.Instance.AddPrefab(val26);
			VFX1 = ScorpionBundle.LoadAsset<GameObject>("FX_Backstab_SM");
			CustomPrefab val27 = new CustomPrefab(VFX1, false);
			PrefabManager.Instance.AddPrefab(val27);
			VFX2 = ScorpionBundle.LoadAsset<GameObject>("FX_Crit_SM");
			CustomPrefab val28 = new CustomPrefab(VFX2, false);
			PrefabManager.Instance.AddPrefab(val28);
			VFX3 = ScorpionBundle.LoadAsset<GameObject>("VFX_GetHit_SM");
			CustomPrefab val29 = new CustomPrefab(VFX3, false);
			PrefabManager.Instance.AddPrefab(val29);
			VFX4 = ScorpionBundle.LoadAsset<GameObject>("VFX_SpawnArrive_SM");
			CustomPrefab val30 = new CustomPrefab(VFX4, false);
			PrefabManager.Instance.AddPrefab(val30);
			VFX5 = ScorpionBundle.LoadAsset<GameObject>("VFX_HitSparks_SM");
			CustomPrefab val31 = new CustomPrefab(VFX5, false);
			PrefabManager.Instance.AddPrefab(val31);
			ScorpionA1 = ScorpionBundle.LoadAsset<GameObject>("Scorpion_Attack1_SM");
			CustomItem val32 = new CustomItem(ScorpionA1, false);
			ItemManager.Instance.AddItem(val32);
			ScorpionA2 = ScorpionBundle.LoadAsset<GameObject>("Scorpion_Attack2_SM");
			CustomItem val33 = new CustomItem(ScorpionA2, false);
			ItemManager.Instance.AddItem(val33);
			ScorpionA3 = ScorpionBundle.LoadAsset<GameObject>("Scorpion_AttackSting_SM");
			CustomItem val34 = new CustomItem(ScorpionA3, false);
			ItemManager.Instance.AddItem(val34);
			ScorpionA1M = ScorpionBundle.LoadAsset<GameObject>("ScorpionM_Attack1_SM");
			CustomItem val35 = new CustomItem(ScorpionA1M, false);
			ItemManager.Instance.AddItem(val35);
			ScorpionA2M = ScorpionBundle.LoadAsset<GameObject>("ScorpionM_Attack2_SM");
			CustomItem val36 = new CustomItem(ScorpionA2M, false);
			ItemManager.Instance.AddItem(val36);
			ScorpionA3M = ScorpionBundle.LoadAsset<GameObject>("ScorpionM_AttackSting_SM");
			CustomItem val37 = new CustomItem(ScorpionA3M, false);
			ItemManager.Instance.AddItem(val37);
			ScorpionA1DN = ScorpionBundle.LoadAsset<GameObject>("ScorpionDN_Attack1_SM");
			CustomItem val38 = new CustomItem(ScorpionA1DN, false);
			ItemManager.Instance.AddItem(val38);
			ScorpionA2DN = ScorpionBundle.LoadAsset<GameObject>("ScorpionDN_Attack2_SM");
			CustomItem val39 = new CustomItem(ScorpionA2DN, false);
			ItemManager.Instance.AddItem(val39);
			ScorpionA3DN = ScorpionBundle.LoadAsset<GameObject>("ScorpionDN_AttackSting_SM");
			CustomItem val40 = new CustomItem(ScorpionA3DN, false);
			ItemManager.Instance.AddItem(val40);
			ScorpionA1AL = ScorpionBundle.LoadAsset<GameObject>("ScorpionAL_Attack1_SM");
			CustomItem val41 = new CustomItem(ScorpionA1AL, false);
			ItemManager.Instance.AddItem(val41);
			ScorpionA2AL = ScorpionBundle.LoadAsset<GameObject>("ScorpionAL_Attack2_SM");
			CustomItem val42 = new CustomItem(ScorpionA2AL, false);
			ItemManager.Instance.AddItem(val42);
			ScorpionA3AL = ScorpionBundle.LoadAsset<GameObject>("ScorpionAL_AttackSting_SM");
			CustomItem val43 = new CustomItem(ScorpionA3AL, false);
			ItemManager.Instance.AddItem(val43);
			ScorpionBossA1 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_Attack1_SM");
			CustomItem val44 = new CustomItem(ScorpionBossA1, false);
			ItemManager.Instance.AddItem(val44);
			ScorpionBossA2 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_Attack2_SM");
			CustomItem val45 = new CustomItem(ScorpionBossA2, false);
			ItemManager.Instance.AddItem(val45);
			ScorpionBossA3 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_AttackSting_SM");
			CustomItem val46 = new CustomItem(ScorpionBossA3, false);
			ItemManager.Instance.AddItem(val46);
			ScorpionBossA4 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_AttackCombo_SM");
			CustomItem val47 = new CustomItem(ScorpionBossA4, false);
			ItemManager.Instance.AddItem(val47);
			ScorpionBossA5 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_AttackAoE_SM");
			CustomItem val48 = new CustomItem(ScorpionBossA5, false);
			ItemManager.Instance.AddItem(val48);
			ScorpionBossA6 = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_AttackSpawn_SM");
			CustomItem val49 = new CustomItem(ScorpionBossA6, false);
			ItemManager.Instance.AddItem(val49);
			ScorpionBossA1U = ScorpionBundle.LoadAsset<GameObject>("AoE_ScorpionBoss_SM");
			CustomPrefab val50 = new CustomPrefab(ScorpionBossA1U, false);
			PrefabManager.Instance.AddPrefab(val50);
			ScorpionBossA2U = ScorpionBundle.LoadAsset<GameObject>("ScorpionBoss_Spawn_SM");
			CustomPrefab val51 = new CustomPrefab(ScorpionBossA2U, false);
			PrefabManager.Instance.AddPrefab(val51);
		}
		catch (Exception arg)
		{
			((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding Skittering Mandess assets: {arg}");
		}
		finally
		{
			ScorpionBundle.Unload(false);
		}
	}

	private void AddScorpions()
	{
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_000f: Expected O, but got Unknown
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0033: Unknown result type (might be due to invalid IL or missing references)
		//IL_003c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0049: Expected O, but got Unknown
		//IL_004b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0050: Unknown result type (might be due to invalid IL or missing references)
		//IL_005c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0064: Unknown result type (might be due to invalid IL or missing references)
		//IL_006c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0079: Expected O, but got Unknown
		//IL_0080: Unknown result type (might be due to invalid IL or missing references)
		//IL_0086: Expected O, but got Unknown
		//IL_0098: Unknown result type (might be due to invalid IL or missing references)
		//IL_009f: Expected O, but got Unknown
		//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
		//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d9: Expected O, but got Unknown
		//IL_00db: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f4: 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_0109: Expected O, but got Unknown
		//IL_0110: Unknown result type (might be due to invalid IL or missing references)
		//IL_0116: Expected O, but got Unknown
		//IL_0128: Unknown result type (might be due to invalid IL or missing references)
		//IL_012f: Expected O, but got Unknown
		//IL_0139: Unknown result type (might be due to invalid IL or missing references)
		//IL_013e: Unknown result type (might be due to invalid IL or missing references)
		//IL_014a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0153: Unknown result type (might be due to invalid IL or missing references)
		//IL_015c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0169: Expected O, but got Unknown
		//IL_016b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0170: Unknown result type (might be due to invalid IL or missing references)
		//IL_017c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0184: Unknown result type (might be due to invalid IL or missing references)
		//IL_018c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0199: Expected O, but got Unknown
		//IL_01a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a6: Expected O, but got Unknown
		//IL_01b8: Unknown result type (might be due to invalid IL or missing references)
		//IL_01bf: Expected O, but got Unknown
		//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_01da: 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_01ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f9: 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_020c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0214: Unknown result type (might be due to invalid IL or missing references)
		//IL_021c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0229: Expected O, but got Unknown
		//IL_0230: Unknown result type (might be due to invalid IL or missing references)
		//IL_0236: Expected O, but got Unknown
		//IL_0248: Unknown result type (might be due to invalid IL or missing references)
		//IL_024f: Expected O, but got Unknown
		//IL_0259: Unknown result type (might be due to invalid IL or missing references)
		//IL_025e: Unknown result type (might be due to invalid IL or missing references)
		//IL_026a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0273: Unknown result type (might be due to invalid IL or missing references)
		//IL_027c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0289: Expected O, but got Unknown
		//IL_028b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0290: Unknown result type (might be due to invalid IL or missing references)
		//IL_029c: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a4: 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_02b9: Expected O, but got Unknown
		//IL_02c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c7: Expected O, but got Unknown
		//IL_02da: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e1: Expected O, but got Unknown
		//IL_02eb: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_02fc: 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_030e: Unknown result type (might be due to invalid IL or missing references)
		//IL_031b: Expected O, but got Unknown
		//IL_031d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0322: Unknown result type (might be due to invalid IL or missing references)
		//IL_032e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0336: Unknown result type (might be due to invalid IL or missing references)
		//IL_033e: Unknown result type (might be due to invalid IL or missing references)
		//IL_034b: Expected O, but got Unknown
		//IL_0352: Unknown result type (might be due to invalid IL or missing references)
		//IL_0359: Expected O, but got Unknown
		//IL_036c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0373: Expected O, but got Unknown
		//IL_037d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0382: Unknown result type (might be due to invalid IL or missing references)
		//IL_038e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0397: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ad: Expected O, but got Unknown
		//IL_03af: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c8: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03dd: Expected O, but got Unknown
		//IL_03e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_03eb: Expected O, but got Unknown
		//IL_03fe: Unknown result type (might be due to invalid IL or missing references)
		//IL_0405: Expected O, but got Unknown
		//IL_040f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0414: Unknown result type (might be due to invalid IL or missing references)
		//IL_0420: Unknown result type (might be due to invalid IL or missing references)
		//IL_0429: 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_043f: Expected O, but got Unknown
		//IL_0441: Unknown result type (might be due to invalid IL or missing references)
		//IL_0446: Unknown result type (might be due to invalid IL or missing references)
		//IL_0452: Unknown result type (might be due to invalid IL or missing references)
		//IL_045a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0462: Unknown result type (might be due to invalid IL or missing references)
		//IL_046f: Expected O, but got Unknown
		//IL_0476: Unknown result type (might be due to invalid IL or missing references)
		//IL_047d: Expected O, but got Unknown
		//IL_0490: Unknown result type (might be due to invalid IL or missing references)
		//IL_0497: Expected O, but got Unknown
		//IL_04a1: Unknown result type (might be due to invalid IL or missing references)
		//IL_04a6: Unknown result type (might be due to invalid IL or missing references)
		//IL_04b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_04bb: Unknown result type (might be due to invalid IL or missing references)
		//IL_04c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d1: Expected O, but got Unknown
		//IL_04d3: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d8: 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_04ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_04f4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0501: Expected O, but got Unknown
		//IL_0508: Unknown result type (might be due to invalid IL or missing references)
		//IL_050f: Expected O, but got Unknown
		//IL_0522: Unknown result type (might be due to invalid IL or missing references)
		//IL_0529: Expected O, but got Unknown
		//IL_0533: Unknown result type (might be due to invalid IL or missing references)
		//IL_0538: Unknown result type (might be due to invalid IL or missing references)
		//IL_0544: Unknown result type (might be due to invalid IL or missing references)
		//IL_054d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0556: Unknown result type (might be due to invalid IL or missing references)
		//IL_0563: Expected O, but got Unknown
		//IL_0565: Unknown result type (might be due to invalid IL or missing references)
		//IL_056a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0576: Unknown result type (might be due to invalid IL or missing references)
		//IL_057e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0586: Unknown result type (might be due to invalid IL or missing references)
		//IL_0593: Expected O, but got Unknown
		//IL_059a: Unknown result type (might be due to invalid IL or missing references)
		//IL_05a1: Expected O, but got Unknown
		try
		{
			GameObject scorpion = Scorpion1;
			CreatureConfig val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionBlack_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val2 = new CustomCreature(scorpion, false, val);
			CreatureManager.Instance.AddCreature(val2);
			GameObject scorpion2 = Scorpion2;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionBlue_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val3 = new CustomCreature(scorpion2, false, val);
			CreatureManager.Instance.AddCreature(val3);
			GameObject scorpion3 = Scorpion3;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionBrown_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val4 = new CustomCreature(scorpion3, false, val);
			CreatureManager.Instance.AddCreature(val4);
			GameObject scorpion4 = Scorpion4;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionGreen_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val5 = new CustomCreature(scorpion4, false, val);
			CreatureManager.Instance.AddCreature(val5);
			GameObject scorpion5 = Scorpion5;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionPink_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val6 = new CustomCreature(scorpion5, false, val);
			CreatureManager.Instance.AddCreature(val6);
			GameObject scorpion6 = Scorpion6;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionPurple_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val7 = new CustomCreature(scorpion6, false, val);
			CreatureManager.Instance.AddCreature(val7);
			GameObject scorpion7 = Scorpion7;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionRed_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val8 = new CustomCreature(scorpion7, false, val);
			CreatureManager.Instance.AddCreature(val8);
			GameObject scorpion8 = Scorpion8;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionWhite_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val9 = new CustomCreature(scorpion8, false, val);
			CreatureManager.Instance.AddCreature(val9);
			GameObject scorpion9 = Scorpion9;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionYellow_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 2f
				}
			};
			CustomCreature val10 = new CustomCreature(scorpion9, false, val);
			CreatureManager.Instance.AddCreature(val10);
			GameObject scorpionBoss = ScorpionBoss;
			val = new CreatureConfig();
			val.DropConfigs = (DropConfig[])(object)new DropConfig[2]
			{
				new DropConfig
				{
					Item = "Coins",
					MinAmount = 17,
					MaxAmount = 34,
					Chance = 100f
				},
				new DropConfig
				{
					Item = "Trophy_ScorpionBoss_SM",
					MinAmount = 1,
					MaxAmount = 1,
					Chance = 25f
				}
			};
			CustomCreature val11 = new CustomCreature(scorpionBoss, false, val);
			CreatureManager.Instance.AddCreature(val11);
		}
		catch (Exception arg)
		{
			((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding Skittering Madness creatures: {arg}");
		}
	}

	private void AddLocations()
	{
		//IL_0039: Unknown result type (might be due to invalid IL or missing references)
		//IL_003e: Unknown result type (might be due to invalid IL or missing references)
		//IL_004a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_005a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0066: Unknown result type (might be due to invalid IL or missing references)
		//IL_0072: Unknown result type (might be due to invalid IL or missing references)
		//IL_007a: Unknown result type (might be due to invalid IL or missing references)
		//IL_008b: Expected O, but got Unknown
		//IL_0086: Unknown result type (might be due to invalid IL or missing references)
		//IL_0090: Expected O, but got Unknown
		ScorpionLocBundle = AssetUtils.LoadAssetBundleFromResources("scorpionsloc", Assembly.GetExecutingAssembly());
		try
		{
			GameObject val = ZoneManager.Instance.CreateLocationContainer(ScorpionLocBundle.LoadAsset<GameObject>("Loc_ScorpionBoss_SM"));
			ZoneManager.Instance.AddCustomLocation(new CustomLocation(val, true, new LocationConfig
			{
				Biome = (Biome)512,
				Quantity = 4,
				Priotized = true,
				ExteriorRadius = 12f,
				MinAltitude = 2f,
				ClearArea = true,
				MinDistanceFromSimilar = 1000f
			}));
		}
		catch (Exception arg)
		{
			((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding Skittering Madness Locations: {arg}");
		}
		finally
		{
			ScorpionLocBundle.Unload(false);
		}
	}

	private void AddSpawners()
	{
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_000e: Expected O, but got Unknown
		try
		{
			CustomPrefab val = new CustomPrefab(LocSpawner, false);
			PrefabManager.Instance.AddPrefab(val);
		}
		catch (Exception arg)
		{
			((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding Skittering Madness spawner prefabs: {arg}");
		}
	}

	private void FixSFX()
	{
		try
		{
			AudioSource prefab = Cache.GetPrefab<AudioSource>("sfx_arrow_hit");
			GameObject prefab2 = Cache.GetPrefab<GameObject>("SFX_ScorpionAlert_SM");
			GameObject prefab3 = Cache.GetPrefab<GameObject>("SFX_ScorpionAttack1_SM");
			GameObject prefab4 = Cache.GetPrefab<GameObject>("SFX_ScorpionDeath_SM");
			GameObject prefab5 = Cache.GetPrefab<GameObject>("SFX_ScorpionHit_SM");
			GameObject prefab6 = Cache.GetPrefab<GameObject>("SFX_ScorpionIdle_SM");
			GameObject prefab7 = Cache.GetPrefab<GameObject>("SFX_BossAttackSpawn_SM");
			if ((Object)(object)prefab2 != (Object)null)
			{
				prefab2.GetComponent<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup;
			}
			if ((Object)(object)prefab3 != (Object)null)
			{
				prefab3.GetComponent<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup;
			}
			if ((Object)(object)prefab4 != (Object)null)
			{
				prefab4.GetComponent<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup;
			}
			if ((Object)(object)prefab5 != (Object)null)
			{
				prefab5.GetComponent<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup;
			}
			if ((Object)(object)prefab6 != (Object)null)
			{
				prefab6.GetComponent<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup;
			}
			if ((Object)(object)prefab7 != (Object)null)
			{
				prefab7.GetComponent<AudioSource>().outputAudioMixerGroup = prefab.outputAudioMixerGroup;
			}
		}
		catch
		{
			Debug.LogWarning((object)"Naga Tribes: SFX Fix Failed");
		}
	}

	public static void ConfigureBiomeSpawners(ISpawnerConfigurationCollection config)
	{
		try
		{
			ConfigureWorldSpawner(config);
		}
		catch (Exception ex)
		{
			Console.WriteLine("Something went horribly wrong adding spawners for There Be Orcs: " + ex.Message + "\nStackTrace:\n" + ex.StackTrace);
		}
	}

	private static void ConfigureWorldSpawner(ISpawnerConfigurationCollection config)
	{
		try
		{
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26709u).SetPrefabName("ScorpionRed_SM").SetTemplateName("Red Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)1 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("defeated_goblinking");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26708u).SetPrefabName("ScorpionBrown_SM").SetTemplateName("Brown Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)8 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionred");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26707u).SetPrefabName("ScorpionGreen_SM").SetTemplateName("Green Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)2 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionbrown");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26706u).SetPrefabName("ScorpionBlue_SM").SetTemplateName("Blue Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)4 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpiongreen");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26705u).SetPrefabName("ScorpionPink_SM").SetTemplateName("Pink Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)16 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionblue");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26704u).SetPrefabName("ScorpionPurple_SM").SetTemplateName("Purple Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)16 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionpink");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26703u).SetPrefabName("ScorpionYellow_SM").SetTemplateName("Yellow Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)512 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionpurple");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26702u).SetPrefabName("ScorpionWhite_SM").SetTemplateName("White Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)64 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionyellow");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26701u).SetPrefabName("ScorpionBlack_SM").SetTemplateName("Black Scorpion")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)32 })
				.SetSpawnChance(18f)
				.SetSpawnInterval(TimeSpan.FromSeconds(300.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(2u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetConditionRequiredGlobalKey("killed_scorpionwhite");
			ISpawnerConfigurationCollectionWorldSpawnerExtensions.ConfigureWorldSpawner(config, 26700u).SetPrefabName("ScorpionBoss_SM").SetTemplateName("Sarkoth")
				.SetConditionBiomes((Biome[])(object)new Biome[1] { (Biome)32 })
				.SetSpawnChance(100f)
				.SetSpawnInterval(TimeSpan.FromSeconds(14400.0))
				.SetPackSizeMin(1u)
				.SetPackSizeMax(1u)
				.SetMaxSpawned(1u)
				.SetConditionAltitudeMin(1f)
				.SetMinDistanceToOther(1250f)
				.SetConditionRequiredGlobalKey("killed_scorpionblack");
		}
		catch (Exception ex)
		{
			Log.LogError((object)ex);
		}
	}
}