Decompiled source of RtDAdditions v0.4.2

RtDAdditions.dll

Decompiled 2 weeks 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.Configuration;
using BepInEx.Logging;
using Jotunn.Configs;
using Jotunn.Entities;
using Jotunn.Managers;
using Jotunn.Utils;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("RtDAdditions")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RtDAdditions")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c6864c18-84df-4dc3-9f05-d8359493cf59")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[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 rtDAdditions
{
	[BepInPlugin("Soloredis.RtDAdditions", "RtDAdditions", "0.4.2")]
	[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class RtDAdditions : BaseUnityPlugin
	{
		public const string PluginGUID = "Soloredis.RtDAdditions";

		public const string PluginName = "RtDAdditions";

		public const string PluginVersion = "0.4.2";

		public static bool isModded = true;

		internal static ManualLogSource Log;

		public static AssetBundle MyAssets;

		public ConfigEntry<bool> LoggingEnable;

		private CustomLocalization Localization;

		public ItemConfig StuffMagicMushroom;

		public ItemConfig MountainLoxPie;

		public ItemConfig MountainLoxStew;

		public ItemConfig MagicMushroomStew;

		public ItemConfig StuffMagicMushroomCooked;

		public ItemConfig MountainLoxPieCooked;

		public ItemConfig MountainLoxMeatCooked;

		public ItemConfig DeepNorthAtgeirA;

		public ItemConfig DeepNorthAtgeirB;

		public ItemConfig DeepNorthAxe1H1A;

		public ItemConfig DeepNorthAxe1H1B;

		public ItemConfig DeepNorthAxe1H2A;

		public ItemConfig DeepNorthAxe1H2B;

		public ItemConfig DeepNorthAxe2H1A;

		public ItemConfig DeepNorthAxe2H1B;

		public ItemConfig DeepNorthAxe2H2A;

		public ItemConfig DeepNorthAxe2H2B;

		public ItemConfig DeepNorthBowA;

		public ItemConfig DeepNorthBowB;

		public ItemConfig DeepNorthShieldBowA;

		public ItemConfig DeepNorthShieldBowB;

		public ItemConfig DeepNorthClubA;

		public ItemConfig DeepNorthClubB;

		public ItemConfig DeepNorthDaggerA;

		public ItemConfig DeepNorthDaggerB;

		public ItemConfig DeepNorthDefenderA;

		public ItemConfig DeepNorthDefenderB;

		public ItemConfig DeepNorthSledge1A;

		public ItemConfig DeepNorthSledge1B;

		public ItemConfig DeepNorthSledge2A;

		public ItemConfig DeepNorthSledge2B;

		public ItemConfig DeepNorthSpearA;

		public ItemConfig DeepNorthSpearB;

		public ItemConfig DeepNorthSword1H1A;

		public ItemConfig DeepNorthSword1H1B;

		public ItemConfig DeepNorthSword1H2A;

		public ItemConfig DeepNorthSword1H2B;

		public ItemConfig DeepNorthSword2H1A;

		public ItemConfig DeepNorthSword2H1B;

		public ItemConfig DeepNorthSword2H2A;

		public ItemConfig DeepNorthSword2H2B;

		public ItemConfig DeepNorthStaffSO1A;

		public ItemConfig DeepNorthStaffSO1B;

		public ItemConfig DeepNorthStaffSO2A;

		public ItemConfig DeepNorthStaffSO2B;

		public ItemConfig DeepNorthWandSO1A;

		public ItemConfig DeepNorthWandSO1B;

		public ItemConfig DeepNorthShieldSOA;

		public ItemConfig DeepNorthShieldSOB;

		public ItemConfig DeepNorthArcherChestA;

		public ItemConfig DeepNorthArcherChestB;

		public ItemConfig DeepNorthArcherHelmetA;

		public ItemConfig DeepNorthArcherHelmetB;

		public ItemConfig DeepNorthArcherLegsA;

		public ItemConfig DeepNorthArcherLegsB;

		public ItemConfig DeepNorthAssassinChestA;

		public ItemConfig DeepNorthAssassinChestB;

		public ItemConfig DeepNorthAssassinHelmetA;

		public ItemConfig DeepNorthAssassinHelmetB;

		public ItemConfig DeepNorthAssassinLegsA;

		public ItemConfig DeepNorthAssassinLegsB;

		public ItemConfig DeepNorthMonkChestA;

		public ItemConfig DeepNorthMonkChestB;

		public ItemConfig DeepNorthMonkHelmetA;

		public ItemConfig DeepNorthMonkHelmetB;

		public ItemConfig DeepNorthMonkLegsA;

		public ItemConfig DeepNorthMonkLegsB;

		public ItemConfig DeepNorthMonkCapeA;

		public ItemConfig DeepNorthMonkCapeB;

		public ItemConfig DeepNorthHybridCapeA;

		public ItemConfig DeepNorthHybridCapeB;

		public ItemConfig DeepNorthWarriorChestA;

		public ItemConfig DeepNorthWarriorChestB;

		public ItemConfig DeepNorthWarriorHelmetA;

		public ItemConfig DeepNorthWarriorHelmetB;

		public ItemConfig DeepNorthWarriorLegsA;

		public ItemConfig DeepNorthWarriorLegsB;

		public ItemConfig DeepNorthMageChestA;

		public ItemConfig DeepNorthMageChestB;

		public ItemConfig DeepNorthMageHelmetA;

		public ItemConfig DeepNorthMageHelmetB;

		public ItemConfig DeepNorthMageLegsA;

		public ItemConfig DeepNorthMageLegsB;

		public string[] StaticList1;

		public string[] MonsterList;

		public string[] ItemsList;

		public string[] PrefabList;

		public string[] SFXList2;

		public string[] CustomStatusEffectList;

		public string[] VegetationList;

		public static VegetationConfig staticvegetationlist = new VegetationConfig
		{
			Min = 1f,
			Max = 2f,
			ScaleMin = 0.75f,
			ScaleMax = 1.25f,
			MinAltitude = 1f,
			Biome = (Biome)64,
			MaxTilt = 90f,
			MaxTerrainDelta = 2f,
			GroupSizeMin = 1,
			GroupSizeMax = 2
		};

		public static SpawnConfig[] DeepNorthSpawnConfig = (SpawnConfig[])(object)new SpawnConfig[1]
		{
			new SpawnConfig
			{
				SpawnDistance = 100f,
				SpawnInterval = 240f,
				SpawnChance = 15f,
				SpawnAtNight = true,
				SpawnAtDay = true,
				MaxSpawned = 2,
				MaxLevel = 2,
				MaxAltitude = 450f,
				Biome = (Biome)64
			}
		};

		public static CreatureConfig DeepNorthCreatureConfig = new CreatureConfig
		{
			Faction = (Faction)5,
			UseCumulativeLevelEffects = true,
			SpawnConfigs = DeepNorthSpawnConfig
		};

		private void Awake()
		{
			CreateConfigs();
			LoadBundle();
			AddPrefabs();
			AddSE();
			AddSFX();
			AddItems();
			StaticVegetationList();
			AddLocalizations();
			ItemConversion();
			AddMonsters();
			DeepNorthSpawners();
			if (LoggingEnable.Value)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)"Logging is enabled in the config.");
			}
			PrefabManager.OnPrefabsRegistered += FixSFX2;
			PrefabManager.OnPrefabsRegistered += AddSORecipes;
		}

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

		public void CreateConfigs()
		{
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Expected O, but got Unknown
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Expected O, but got Unknown
			try
			{
				((BaseUnityPlugin)this).Config.SaveOnConfigSet = true;
				LoggingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Logging", "Enable", false, new ConfigDescription("Enables logging.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes
				{
					IsAdminOnly = false
				} }));
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
		}

		private void ItemConversion()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Expected O, but got Unknown
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Expected O, but got Unknown
			try
			{
				SmelterConversionConfig val = new SmelterConversionConfig();
				((ConversionConfig)val).Station = Smelters.BlastFurnace;
				((ConversionConfig)val).FromItem = "FrometalOre_RtDS";
				((ConversionConfig)val).ToItem = "FrometalBar_RtDS";
				ItemManager.Instance.AddItemConversion(new CustomItemConversion((ConversionConfig)(object)val));
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}");
			}
		}

		private void DeepNorthSpawners()
		{
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Expected O, but got Unknown
			try
			{
				string[] staticList = StaticList1;
				foreach (string text in staticList)
				{
					GameObject val = MyAssets.LoadAsset<GameObject>(text);
					if ((Object)(object)val != (Object)null)
					{
						CreatureManager.Instance.AddCreature(new CustomCreature(val, true, DeepNorthCreatureConfig));
						if (LoggingEnable.Value)
						{
							((BaseUnityPlugin)this).Logger.LogMessage((object)("Added monster: " + text));
						}
					}
					else
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database"));
					}
				}
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding monsters: {arg}");
			}
		}

		private void AddMonsters()
		{
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Expected O, but got Unknown
			try
			{
				string[] monsterList = MonsterList;
				foreach (string text in monsterList)
				{
					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 AddSORecipes()
		{
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Expected O, but got Unknown
			//IL_0120: Unknown result type (might be due to invalid IL or missing references)
			//IL_0127: Expected O, but got Unknown
			//IL_01f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fa: Expected O, but got Unknown
			//IL_02c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_02cf: Expected O, but got Unknown
			//IL_039d: Unknown result type (might be due to invalid IL or missing references)
			//IL_03a4: Expected O, but got Unknown
			//IL_0472: Unknown result type (might be due to invalid IL or missing references)
			//IL_0479: Expected O, but got Unknown
			//IL_0547: Unknown result type (might be due to invalid IL or missing references)
			//IL_054e: Expected O, but got Unknown
			//IL_061c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0623: Expected O, but got Unknown
			//IL_06f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f8: Expected O, but got Unknown
			//IL_07c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_07cd: Expected O, but got Unknown
			//IL_089b: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a2: Expected O, but got Unknown
			//IL_0970: Unknown result type (might be due to invalid IL or missing references)
			//IL_0977: Expected O, but got Unknown
			//IL_0a45: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a4c: Expected O, but got Unknown
			//IL_0b1a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b21: Expected O, but got Unknown
			//IL_0bef: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bf6: Expected O, but got Unknown
			//IL_0cc4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ccb: Expected O, but got Unknown
			//IL_0d99: Unknown result type (might be due to invalid IL or missing references)
			//IL_0da0: Expected O, but got Unknown
			//IL_0e6e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e75: Expected O, but got Unknown
			//IL_0f43: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f4a: Expected O, but got Unknown
			//IL_1018: Unknown result type (might be due to invalid IL or missing references)
			//IL_101f: Expected O, but got Unknown
			//IL_10ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_10f4: Expected O, but got Unknown
			//IL_11c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_11c9: Expected O, but got Unknown
			//IL_1297: Unknown result type (might be due to invalid IL or missing references)
			//IL_129e: Expected O, but got Unknown
			//IL_136c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1373: Expected O, but got Unknown
			//IL_1441: Unknown result type (might be due to invalid IL or missing references)
			//IL_1448: Expected O, but got Unknown
			//IL_1516: Unknown result type (might be due to invalid IL or missing references)
			//IL_151d: Expected O, but got Unknown
			//IL_15eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_15f2: Expected O, but got Unknown
			//IL_16c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_16c7: Expected O, but got Unknown
			//IL_1795: Unknown result type (might be due to invalid IL or missing references)
			//IL_179c: Expected O, but got Unknown
			//IL_186a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1871: Expected O, but got Unknown
			//IL_193f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1946: Expected O, but got Unknown
			//IL_1a14: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a1b: Expected O, but got Unknown
			//IL_1ae9: Unknown result type (might be due to invalid IL or missing references)
			//IL_1af0: Expected O, but got Unknown
			//IL_1bc6: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bcf: Expected O, but got Unknown
			//IL_1cc3: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ccc: Expected O, but got Unknown
			//IL_1dc0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1dc9: Expected O, but got Unknown
			//IL_1ebd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ec6: Expected O, but got Unknown
			//IL_1fba: Unknown result type (might be due to invalid IL or missing references)
			//IL_1fc3: Expected O, but got Unknown
			//IL_20b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_20c0: Expected O, but got Unknown
			//IL_21b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_21bd: Expected O, but got Unknown
			//IL_22b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_22ba: Expected O, but got Unknown
			//IL_23ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_23b7: Expected O, but got Unknown
			//IL_24ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_24b4: Expected O, but got Unknown
			//IL_25a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_25b1: Expected O, but got Unknown
			try
			{
				GameObject val = MyAssets.LoadAsset<GameObject>("StuffMagicMushroom_RtD");
				if ((Object)(object)val != (Object)null)
				{
					GameObject prefab = Cache.GetPrefab<GameObject>("WinterMageCap_RtD");
					ItemConfig val2 = ((!Object.op_Implicit((Object)(object)prefab)) ? StuffMagicMushroom : StuffMagicMushroom);
					CustomItem val3 = new CustomItem(val, true, val2);
					ItemManager.Instance.AddItem(val3);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val)?.ToString() + " to the Item Table"));
				}
				GameObject val4 = MyAssets.LoadAsset<GameObject>("MountainLoxPie_RtD");
				if ((Object)(object)val4 != (Object)null)
				{
					GameObject prefab2 = Cache.GetPrefab<GameObject>("WinterMageCap_RtD");
					ItemConfig val5 = ((!Object.op_Implicit((Object)(object)prefab2)) ? MountainLoxPie : MountainLoxPie);
					CustomItem val6 = new CustomItem(val4, true, val5);
					ItemManager.Instance.AddItem(val6);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val4)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val4)?.ToString() + " to the Item Table"));
				}
				GameObject val7 = MyAssets.LoadAsset<GameObject>("MountainLoxStew_RtD");
				if ((Object)(object)val7 != (Object)null)
				{
					GameObject prefab3 = Cache.GetPrefab<GameObject>("WinterMageCap_RtD");
					ItemConfig val8 = ((!Object.op_Implicit((Object)(object)prefab3)) ? MountainLoxStew : MountainLoxStew);
					CustomItem val9 = new CustomItem(val7, true, val8);
					ItemManager.Instance.AddItem(val9);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val7)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val7)?.ToString() + " to the Item Table"));
				}
				GameObject val10 = MyAssets.LoadAsset<GameObject>("MagicMushroomStew_RtD");
				if ((Object)(object)val10 != (Object)null)
				{
					GameObject prefab4 = Cache.GetPrefab<GameObject>("WinterMageCap_RtD");
					ItemConfig val11 = ((!Object.op_Implicit((Object)(object)prefab4)) ? MagicMushroomStew : MagicMushroomStew);
					CustomItem val12 = new CustomItem(val10, true, val11);
					ItemManager.Instance.AddItem(val12);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val10)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val10)?.ToString() + " to the Item Table"));
				}
				GameObject val13 = MyAssets.LoadAsset<GameObject>("MountainLoxPieCooked_RtD");
				if ((Object)(object)val13 != (Object)null)
				{
					GameObject prefab5 = Cache.GetPrefab<GameObject>("WinterMageCap_RtD");
					ItemConfig val14 = ((!Object.op_Implicit((Object)(object)prefab5)) ? MountainLoxPieCooked : MountainLoxPieCooked);
					CustomItem val15 = new CustomItem(val13, true, val14);
					ItemManager.Instance.AddItem(val15);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val13)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val13)?.ToString() + " to the Item Table"));
				}
				GameObject val16 = MyAssets.LoadAsset<GameObject>("MountainLoxMeatCooked_RtD");
				if ((Object)(object)val16 != (Object)null)
				{
					GameObject prefab6 = Cache.GetPrefab<GameObject>("WinterMageCap_RtD");
					ItemConfig val17 = ((!Object.op_Implicit((Object)(object)prefab6)) ? MountainLoxMeatCooked : MountainLoxMeatCooked);
					CustomItem val18 = new CustomItem(val16, true, val17);
					ItemManager.Instance.AddItem(val18);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val16)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val16)?.ToString() + " to the Item Table"));
				}
				GameObject val19 = MyAssets.LoadAsset<GameObject>("DeepNorthStaffSO1_RtD");
				if ((Object)(object)val19 != (Object)null)
				{
					GameObject prefab7 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val20 = ((!Object.op_Implicit((Object)(object)prefab7)) ? DeepNorthStaffSO1B : DeepNorthStaffSO1A);
					CustomItem val21 = new CustomItem(val19, true, val20);
					ItemManager.Instance.AddItem(val21);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val19)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val19)?.ToString() + " to the Item Table"));
				}
				GameObject val22 = MyAssets.LoadAsset<GameObject>("DeepNorthStaffSO2_RtD");
				if ((Object)(object)val22 != (Object)null)
				{
					GameObject prefab8 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val23 = ((!Object.op_Implicit((Object)(object)prefab8)) ? DeepNorthStaffSO2B : DeepNorthStaffSO2A);
					CustomItem val24 = new CustomItem(val22, true, val23);
					ItemManager.Instance.AddItem(val24);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val22)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val22)?.ToString() + " to the Item Table"));
				}
				GameObject val25 = MyAssets.LoadAsset<GameObject>("DeepNorthWandSO1_RtD");
				if ((Object)(object)val25 != (Object)null)
				{
					GameObject prefab9 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val26 = ((!Object.op_Implicit((Object)(object)prefab9)) ? DeepNorthWandSO1B : DeepNorthWandSO1A);
					CustomItem val27 = new CustomItem(val25, true, val26);
					ItemManager.Instance.AddItem(val27);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val25)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val25)?.ToString() + " to the Item Table"));
				}
				GameObject val28 = MyAssets.LoadAsset<GameObject>("DeepNorthShieldSO_RtD");
				if ((Object)(object)val28 != (Object)null)
				{
					GameObject prefab10 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val29 = ((!Object.op_Implicit((Object)(object)prefab10)) ? DeepNorthShieldSOB : DeepNorthShieldSOA);
					CustomItem val30 = new CustomItem(val28, true, val29);
					ItemManager.Instance.AddItem(val30);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val28)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val28)?.ToString() + " to the Item Table"));
				}
				GameObject val31 = MyAssets.LoadAsset<GameObject>("DeepNorthMageHoodSO_RtD");
				if ((Object)(object)val31 != (Object)null)
				{
					GameObject prefab11 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val32 = ((!Object.op_Implicit((Object)(object)prefab11)) ? DeepNorthMageHelmetB : DeepNorthMageHelmetA);
					CustomItem val33 = new CustomItem(val31, true, val32);
					ItemManager.Instance.AddItem(val33);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val31)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val31)?.ToString() + " to the Item Table"));
				}
				GameObject val34 = MyAssets.LoadAsset<GameObject>("DeepNorthMageLegsSO_RtD");
				if ((Object)(object)val34 != (Object)null)
				{
					GameObject prefab12 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val35 = ((!Object.op_Implicit((Object)(object)prefab12)) ? DeepNorthMageLegsB : DeepNorthMageLegsA);
					CustomItem val36 = new CustomItem(val34, true, val35);
					ItemManager.Instance.AddItem(val36);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val34)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val34)?.ToString() + " to the Item Table"));
				}
				GameObject val37 = MyAssets.LoadAsset<GameObject>("DeepNorthMageChestSO_RtD");
				if ((Object)(object)val37 != (Object)null)
				{
					GameObject prefab13 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val38 = ((!Object.op_Implicit((Object)(object)prefab13)) ? DeepNorthMageChestB : DeepNorthMageChestA);
					CustomItem val39 = new CustomItem(val37, true, val38);
					ItemManager.Instance.AddItem(val39);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val37)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val37)?.ToString() + " to the Item Table"));
				}
				GameObject val40 = MyAssets.LoadAsset<GameObject>("DeepNorthAtgeirSO_RtD");
				if ((Object)(object)val40 != (Object)null)
				{
					GameObject prefab14 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val41 = ((!Object.op_Implicit((Object)(object)prefab14)) ? DeepNorthAtgeirB : DeepNorthAtgeirA);
					CustomItem val42 = new CustomItem(val40, true, val41);
					ItemManager.Instance.AddItem(val42);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val40)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val40)?.ToString() + " to the Item Table"));
				}
				GameObject val43 = MyAssets.LoadAsset<GameObject>("DeepNorthAxe1HSO1_RtD");
				if ((Object)(object)val43 != (Object)null)
				{
					GameObject prefab15 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val44 = ((!Object.op_Implicit((Object)(object)prefab15)) ? DeepNorthAxe1H1B : DeepNorthAxe1H1A);
					CustomItem val45 = new CustomItem(val43, true, val44);
					ItemManager.Instance.AddItem(val45);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val43)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val43)?.ToString() + " to the Item Table"));
				}
				GameObject val46 = MyAssets.LoadAsset<GameObject>("DeepNorthAxe2HSO1_RtD");
				if ((Object)(object)val46 != (Object)null)
				{
					GameObject prefab16 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val47 = ((!Object.op_Implicit((Object)(object)prefab16)) ? DeepNorthAxe2H1B : DeepNorthAxe2H1A);
					CustomItem val48 = new CustomItem(val46, true, val47);
					ItemManager.Instance.AddItem(val48);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val46)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val46)?.ToString() + " to the Item Table"));
				}
				GameObject val49 = MyAssets.LoadAsset<GameObject>("DeepNorthBowSO_RtD");
				if ((Object)(object)val49 != (Object)null)
				{
					GameObject prefab17 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val50 = ((!Object.op_Implicit((Object)(object)prefab17)) ? DeepNorthBowB : DeepNorthBowA);
					CustomItem val51 = new CustomItem(val49, true, val50);
					ItemManager.Instance.AddItem(val51);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val49)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val49)?.ToString() + " to the Item Table"));
				}
				GameObject val52 = MyAssets.LoadAsset<GameObject>("DeepNorthClubSO_RtD");
				if ((Object)(object)val52 != (Object)null)
				{
					GameObject prefab18 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val53 = ((!Object.op_Implicit((Object)(object)prefab18)) ? DeepNorthClubB : DeepNorthClubA);
					CustomItem val54 = new CustomItem(val52, true, val53);
					ItemManager.Instance.AddItem(val54);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val52)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val52)?.ToString() + " to the Item Table"));
				}
				GameObject val55 = MyAssets.LoadAsset<GameObject>("DeepNorthDaggerSO_RtD");
				if ((Object)(object)val55 != (Object)null)
				{
					GameObject prefab19 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val56 = ((!Object.op_Implicit((Object)(object)prefab19)) ? DeepNorthDaggerB : DeepNorthDaggerA);
					CustomItem val57 = new CustomItem(val55, true, val56);
					ItemManager.Instance.AddItem(val57);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val55)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val55)?.ToString() + " to the Item Table"));
				}
				GameObject val58 = MyAssets.LoadAsset<GameObject>("DeepNorthDefenderSO_RtD");
				if ((Object)(object)val58 != (Object)null)
				{
					GameObject prefab20 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val59 = ((!Object.op_Implicit((Object)(object)prefab20)) ? DeepNorthDefenderB : DeepNorthDefenderA);
					CustomItem val60 = new CustomItem(val58, true, val59);
					ItemManager.Instance.AddItem(val60);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val58)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val58)?.ToString() + " to the Item Table"));
				}
				GameObject val61 = MyAssets.LoadAsset<GameObject>("DeepNorthSledgeSO1_RtD");
				if ((Object)(object)val61 != (Object)null)
				{
					GameObject prefab21 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val62 = ((!Object.op_Implicit((Object)(object)prefab21)) ? DeepNorthSledge1B : DeepNorthSledge1A);
					CustomItem val63 = new CustomItem(val61, true, val62);
					ItemManager.Instance.AddItem(val63);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val61)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val61)?.ToString() + " to the Item Table"));
				}
				GameObject val64 = MyAssets.LoadAsset<GameObject>("DeepNorthSledgeSO2_RtD");
				if ((Object)(object)val64 != (Object)null)
				{
					GameObject prefab22 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val65 = ((!Object.op_Implicit((Object)(object)prefab22)) ? DeepNorthSledge2B : DeepNorthSledge2A);
					CustomItem val66 = new CustomItem(val64, true, val65);
					ItemManager.Instance.AddItem(val66);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val64)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val64)?.ToString() + " to the Item Table"));
				}
				GameObject val67 = MyAssets.LoadAsset<GameObject>("DeepNorthSpearSO_RtD");
				if ((Object)(object)val67 != (Object)null)
				{
					GameObject prefab23 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val68 = ((!Object.op_Implicit((Object)(object)prefab23)) ? DeepNorthSpearB : DeepNorthSpearA);
					CustomItem val69 = new CustomItem(val67, true, val68);
					ItemManager.Instance.AddItem(val69);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val67)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val67)?.ToString() + " to the Item Table"));
				}
				GameObject val70 = MyAssets.LoadAsset<GameObject>("DeepNorthSword1HSO1_RtD");
				if ((Object)(object)val70 != (Object)null)
				{
					GameObject prefab24 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val71 = ((!Object.op_Implicit((Object)(object)prefab24)) ? DeepNorthSword1H1B : DeepNorthSword1H1A);
					CustomItem val72 = new CustomItem(val70, true, val71);
					ItemManager.Instance.AddItem(val72);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val70)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val70)?.ToString() + " to the Item Table"));
				}
				GameObject val73 = MyAssets.LoadAsset<GameObject>("DeepNorthSword1HSO2_RtD");
				if ((Object)(object)val73 != (Object)null)
				{
					GameObject prefab25 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val74 = ((!Object.op_Implicit((Object)(object)prefab25)) ? DeepNorthSword1H2B : DeepNorthSword1H2A);
					CustomItem val75 = new CustomItem(val73, true, val74);
					ItemManager.Instance.AddItem(val75);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val73)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val73)?.ToString() + " to the Item Table"));
				}
				GameObject val76 = MyAssets.LoadAsset<GameObject>("DeepNorthShieldBowSO_RtD");
				if ((Object)(object)val76 != (Object)null)
				{
					GameObject prefab26 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val77 = ((!Object.op_Implicit((Object)(object)prefab26)) ? DeepNorthShieldBowB : DeepNorthShieldBowA);
					CustomItem val78 = new CustomItem(val76, true, val77);
					ItemManager.Instance.AddItem(val78);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val76)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val76)?.ToString() + " to the Item Table"));
				}
				GameObject val79 = MyAssets.LoadAsset<GameObject>("DeepNorthSword2HSO1_RtD");
				if ((Object)(object)val79 != (Object)null)
				{
					GameObject prefab27 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val80 = ((!Object.op_Implicit((Object)(object)prefab27)) ? DeepNorthSword2H1B : DeepNorthSword2H1A);
					CustomItem val81 = new CustomItem(val79, true, val80);
					ItemManager.Instance.AddItem(val81);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val79)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val79)?.ToString() + " to the Item Table"));
				}
				GameObject val82 = MyAssets.LoadAsset<GameObject>("DeepNorthSword2HSO2_RtD");
				if ((Object)(object)val82 != (Object)null)
				{
					GameObject prefab28 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val83 = ((!Object.op_Implicit((Object)(object)prefab28)) ? DeepNorthSword2H2B : DeepNorthSword2H2A);
					CustomItem val84 = new CustomItem(val82, true, val83);
					ItemManager.Instance.AddItem(val84);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val82)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val82)?.ToString() + " to the Item Table"));
				}
				GameObject val85 = MyAssets.LoadAsset<GameObject>("DeepNorthArcherHelmetSO_RtD");
				if ((Object)(object)val85 != (Object)null)
				{
					GameObject prefab29 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val86 = ((!Object.op_Implicit((Object)(object)prefab29)) ? DeepNorthArcherHelmetB : DeepNorthArcherHelmetA);
					CustomItem val87 = new CustomItem(val85, true, val86);
					ItemManager.Instance.AddItem(val87);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val85)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val85)?.ToString() + " to the Item Table"));
				}
				GameObject val88 = MyAssets.LoadAsset<GameObject>("DeepNorthArcherLegsSO_RtD");
				if ((Object)(object)val88 != (Object)null)
				{
					GameObject prefab30 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val89 = ((!Object.op_Implicit((Object)(object)prefab30)) ? DeepNorthArcherLegsB : DeepNorthArcherLegsA);
					CustomItem val90 = new CustomItem(val88, true, val89);
					ItemManager.Instance.AddItem(val90);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val88)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val88)?.ToString() + " to the Item Table"));
				}
				GameObject val91 = MyAssets.LoadAsset<GameObject>("DeepNorthAssassinChestSO_RtD");
				if ((Object)(object)val91 != (Object)null)
				{
					GameObject prefab31 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val92 = ((!Object.op_Implicit((Object)(object)prefab31)) ? DeepNorthAssassinChestB : DeepNorthAssassinChestA);
					CustomItem val93 = new CustomItem(val91, true, val92);
					ItemManager.Instance.AddItem(val93);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val91)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val91)?.ToString() + " to the Item Table"));
				}
				GameObject val94 = MyAssets.LoadAsset<GameObject>("DeepNorthAssassinHelmetSO_RtD");
				if ((Object)(object)val94 != (Object)null)
				{
					GameObject prefab32 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val95 = ((!Object.op_Implicit((Object)(object)prefab32)) ? DeepNorthAssassinHelmetB : DeepNorthAssassinHelmetA);
					CustomItem val96 = new CustomItem(val94, true, val95);
					ItemManager.Instance.AddItem(val96);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val94)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val94)?.ToString() + " to the Item Table"));
				}
				GameObject val97 = MyAssets.LoadAsset<GameObject>("DeepNorthAssassinLegsSO_RtD");
				if ((Object)(object)val97 != (Object)null)
				{
					GameObject prefab33 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val98 = ((!Object.op_Implicit((Object)(object)prefab33)) ? DeepNorthAssassinLegsB : DeepNorthAssassinLegsA);
					CustomItem val99 = new CustomItem(val97, true, val98);
					ItemManager.Instance.AddItem(val99);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val97)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val97)?.ToString() + " to the Item Table"));
				}
				GameObject val100 = MyAssets.LoadAsset<GameObject>("DeepNorthMonkChestSO_RtD");
				if ((Object)(object)val100 != (Object)null)
				{
					GameObject prefab34 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val101 = ((!Object.op_Implicit((Object)(object)prefab34)) ? DeepNorthMonkChestB : DeepNorthMonkChestA);
					CustomItem val102 = new CustomItem(val100, true, val101);
					ItemManager.Instance.AddItem(val102);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val100)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val100)?.ToString() + " to the Item Table"));
				}
				GameObject val103 = MyAssets.LoadAsset<GameObject>("DeepNorthMonkHelmetSO_RtD");
				if ((Object)(object)val103 != (Object)null)
				{
					GameObject prefab35 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val104 = ((!Object.op_Implicit((Object)(object)prefab35)) ? DeepNorthMonkHelmetB : DeepNorthMonkHelmetA);
					CustomItem val105 = new CustomItem(val103, true, val104);
					ItemManager.Instance.AddItem(val105);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val103)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val103)?.ToString() + " to the Item Table"));
				}
				GameObject val106 = MyAssets.LoadAsset<GameObject>("DeepNorthMonkLegsSO_RtD");
				if ((Object)(object)val106 != (Object)null)
				{
					GameObject prefab36 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val107 = ((!Object.op_Implicit((Object)(object)prefab36)) ? DeepNorthMonkLegsB : DeepNorthMonkLegsA);
					CustomItem val108 = new CustomItem(val106, true, val107);
					ItemManager.Instance.AddItem(val108);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val106)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val106)?.ToString() + " to the Item Table"));
				}
				GameObject val109 = MyAssets.LoadAsset<GameObject>("DeepNorthMonkCapeSO_RtD");
				if ((Object)(object)val109 != (Object)null)
				{
					GameObject prefab37 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val110 = ((!Object.op_Implicit((Object)(object)prefab37)) ? DeepNorthMonkCapeB : DeepNorthMonkCapeA);
					CustomItem val111 = new CustomItem(val109, true, val110);
					ItemManager.Instance.AddItem(val111);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val109)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val109)?.ToString() + " to the Item Table"));
				}
				GameObject val112 = MyAssets.LoadAsset<GameObject>("DeepNorthHybridCapeSO_RtD");
				if ((Object)(object)val112 != (Object)null)
				{
					GameObject prefab38 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val113 = ((!Object.op_Implicit((Object)(object)prefab38)) ? DeepNorthHybridCapeB : DeepNorthHybridCapeA);
					CustomItem val114 = new CustomItem(val112, true, val113);
					ItemManager.Instance.AddItem(val114);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val112)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val112)?.ToString() + " to the Item Table"));
				}
				GameObject val115 = MyAssets.LoadAsset<GameObject>("DeepNorthWarriorChestSO_RtD");
				if ((Object)(object)val115 != (Object)null)
				{
					GameObject prefab39 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val116 = ((!Object.op_Implicit((Object)(object)prefab39)) ? DeepNorthWarriorChestB : DeepNorthWarriorChestA);
					CustomItem val117 = new CustomItem(val115, true, val116);
					ItemManager.Instance.AddItem(val117);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val115)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val115)?.ToString() + " to the Item Table"));
				}
				GameObject val118 = MyAssets.LoadAsset<GameObject>("DeepNorthWarriorHelmetSO_RtD");
				if ((Object)(object)val118 != (Object)null)
				{
					GameObject prefab40 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val119 = ((!Object.op_Implicit((Object)(object)prefab40)) ? DeepNorthWarriorHelmetB : DeepNorthWarriorHelmetA);
					CustomItem val120 = new CustomItem(val118, true, val119);
					ItemManager.Instance.AddItem(val120);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val118)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val118)?.ToString() + " to the Item Table"));
				}
				GameObject val121 = MyAssets.LoadAsset<GameObject>("DeepNorthWarriorLegsSO_RtD");
				if ((Object)(object)val121 != (Object)null)
				{
					GameObject prefab41 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val122 = ((!Object.op_Implicit((Object)(object)prefab41)) ? DeepNorthWarriorLegsB : DeepNorthWarriorLegsA);
					CustomItem val123 = new CustomItem(val121, true, val122);
					ItemManager.Instance.AddItem(val123);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val121)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val121)?.ToString() + " to the Item Table"));
				}
				GameObject val124 = MyAssets.LoadAsset<GameObject>("DeepNorthAxe1HSO2_RtD");
				if ((Object)(object)val124 != (Object)null)
				{
					GameObject prefab42 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val125 = ((!Object.op_Implicit((Object)(object)prefab42)) ? DeepNorthAxe1H2B : DeepNorthAxe1H2A);
					CustomItem val126 = new CustomItem(val124, true, val125);
					ItemManager.Instance.AddItem(val126);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val124)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val124)?.ToString() + " to the Item Table"));
				}
				GameObject val127 = MyAssets.LoadAsset<GameObject>("DeepNorthAxe2HSO2_RtD");
				if ((Object)(object)val127 != (Object)null)
				{
					GameObject prefab43 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val128 = ((!Object.op_Implicit((Object)(object)prefab43)) ? DeepNorthAxe2H2B : DeepNorthAxe2H2A);
					CustomItem val129 = new CustomItem(val127, true, val128);
					ItemManager.Instance.AddItem(val129);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val127)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val127)?.ToString() + " to the Item Table"));
				}
				GameObject val130 = MyAssets.LoadAsset<GameObject>("DeepNorthArcherChestSO_RtD");
				if ((Object)(object)val130 != (Object)null)
				{
					GameObject prefab44 = Cache.GetPrefab<GameObject>("BurningGland_RtD");
					ItemConfig val131 = ((!Object.op_Implicit((Object)(object)prefab44)) ? DeepNorthArcherChestB : DeepNorthArcherChestA);
					CustomItem val132 = new CustomItem(val130, true, val131);
					ItemManager.Instance.AddItem(val132);
					if (LoggingEnable.Value)
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val130)?.ToString() + " to the Prefab database"));
					}
				}
				else
				{
					((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + ((object)val130)?.ToString() + " to the Item Table"));
				}
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"A pixel was found in the matrix: {arg}");
			}
			finally
			{
				PrefabManager.OnPrefabsRegistered -= AddSORecipes;
			}
		}

		private void AddLocalizations()
		{
			Localization = LocalizationManager.Instance.GetLocalization();
			CustomLocalization localization = Localization;
			string text = "English";
			localization.AddTranslation(ref text, new Dictionary<string, string>
			{
				{ "DeepNorthArcherChestSO_RtD", "<#00A866>Archer Deep North Vestment" },
				{ "DeepNorthArcherChestSO_desc_RtD", "A vestment specially crafted for Archers in the Deep North." },
				{ "DeepNorthArcherHoodSO_RtD", "<#00A866>Archer Deep North Hood" },
				{ "DeepNorthArcherHoodSO_desc_RtD", "A hood specially crafted for Archers in the Deep North" },
				{ "DeepNorthArcherLegsSO_RtD", "<#00A866>Archer Deep North Legguards" },
				{ "DeepNorthArcherLegsSO_desc_RtD", "Legguards specially crafted for Archers in the Deep North" },
				{ "DeepNorthAssassinChestSO_RtD", "<#8C0404>Assassin Deep North Chest" },
				{ "DeepNorthAssassinChestSO_desc_RtD", "A chest piece specially crafted for Assasssins in the Deep North." },
				{ "DeepNorthAssassinHoodSO_RtD", "<#8C0404>Assassin Deep North Hood" },
				{ "DeepNorthAssassinHoodSO_desc_RtD", "A hood specially crafted for Assassins in the Deep North." },
				{ "DeepNorthAssassinLegsSO_RtD", "<#8C0404>Assassin Deep North Pants" },
				{ "DeepNorthAssassinLegsSO_desc_RtD", "A pair of pants specially crafted for Assassins in the Deep North." },
				{ "DeepNorthHybridCapeSO_RtD", "Deep North Hybrid Cloak" },
				{ "DeepNorthHybridCapeSO_desc_RtD", "Fit for all warriors in the Deep North." },
				{ "DeepNorthMonkCapeSO_RtD", "<#FF8645>Monk Deep North Cloak" },
				{ "DeepNorthMonkCapeSO_desc_RtD", "A cloak crafted for Odin's Monks in the Deep North." },
				{ "DeepNorthMonkChestSO_RtD", "<#FF8645>Monk Deep North Robes" },
				{ "DeepNorthMonkChestSO_desc_RtD", "A robe crafted for Odin's Monks in the Deep North." },
				{ "DeepNorthMonkHoodSO_RtD", "<#FF8645>Monk Deep North Hood" },
				{ "DeepNorthMonkHoodSO_desc_RtD", "A hood crafted for Odin's Monks in the Deep North." },
				{ "DeepNorthMonkLegsSO_RtD", "<#FF8645>Monk Deep North Pants" },
				{ "DeepNorthMonkLegsSO_desc_RtD", "A pair of pants crafted for Odin's Monks in the Deep North." },
				{ "DeepNorthWarriorChestSO_RtD", "<#DCA44C>Warrior Deep North Battleplate" },
				{ "DeepNorthWarriorChestSO_desc_RtD", "A battleplate crafted for Warriors in the Deep North." },
				{ "DeepNorthWarriorHelmetSO_RtD", "<#DCA44C>Warrior Deep North Helmet" },
				{ "DeepNorthWarriorHelmetSO_desc_RtD", "A helmet crafted for Warriors in the Deep North." },
				{ "DeepNorthWarriorLegsSO_RtD", "<#DCA44C>Warrior Deep North Greaves" },
				{ "DeepNorthWarriorLegsSO_desc_RtD", "Greaves crafted for Warriors in the Deep North." },
				{ "DeepNorthAtgeirSO_RtD", "<#0892D0>Frometal Atgeir" },
				{ "DeepNorthAtgeirSO_desc_RtD", "A strong and effective long range mail-piercing type of pole arm." },
				{ "DeepNorthAxe1HSO1_RtD", "<#0892D0>Frometal Axe" },
				{ "DeepNorthAxe1HSO1_desc_RtD", "A great one handed Axe" },
				{ "DeepNorthAxe1HSO2_RtD", "<#0892D0>Frometal Axe" },
				{ "DeepNorthAxe1HSO2_desc_RtD", "A great one handed Axe" },
				{ "DeepNorthAxe2HSO1_RtD", "<#0892D0>Frometal GreatAxe" },
				{ "DeepNorthAxe2HSO1_desc_RtD", "A powerful BattleAxe" },
				{ "DeepNorthAxe2HSO2_RtD", "<#0892D0>Frometal GreatAxe" },
				{ "DeepNorthAxe2HSO2_desc_RtD", "A powerful BattleAxe" },
				{ "DeepNorthBowSO_RtD", "<#0892D0>Frometal Bow" },
				{ "DeepNorthBowSO_desc_RtD", "A light bow" },
				{ "DeepNorthClubSO_RtD", "<#0892D0>Frometal Mace" },
				{ "DeepNorthClubSO_desc_RtD", "A strong mace" },
				{ "DeepNorthDaggerSO_RtD", "<#0892D0>Frometal Dagger" },
				{ "DeepNorthDaggerSO_desc_RtD", "A strong dagger" },
				{ "DeepNorthShieldSO_RtD", "<#0892D0>Frometal Shield" },
				{ "DeepNorthShieldSO_desc_RtD", "A Strong Shield" },
				{ "DeepNorthShieldBowSO_RtD", "<#0892D0>Frometal ShieldBow" },
				{ "DeepNorthShieldBowSO_desc_RtD", "Its a very defensive bow" },
				{ "DeepNorthSledgeSO1_RtD", "<#0892D0>Frometal Sledge" },
				{ "DeepNorthSledgeSO1_desc_RtD", "An extremely heavy Sledge" },
				{ "DeepNorthSledgeSO2_RtD", "<#0892D0>Frometal Sledge" },
				{ "DeepNorthSledgeSO2_desc_RtD", "An extremely heavy Sledge" },
				{ "DeepNorthSpearSO_RtD", "<#0892D0>Frometal Spear" },
				{ "DeepNorthSpearSO_desc_RtD", "The tip of the spear is very sharp" },
				{ "DeepNorthSword1HSO1_RtD", "<#0892D0>Frometal Sword" },
				{ "DeepNorthSword1HSO1_desc_RtD", "A very sharp one handed Sword" },
				{ "DeepNorthSword1HSO2_RtD", "<#0892D0>Frometal Sword" },
				{ "DeepNorthSword1HSO2_desc_RtD", "A very sharp one handed Sword" },
				{ "DeepNorthSword2HSO1_RtD", "<#0892D0>Frometal GreatSword" },
				{ "DeepNorthSword2HSO1_desc_RtD", "A very sharp two handed Sword" },
				{ "DeepNorthSword2HSO2_RtD", "<#0892D0>Frometal GreatSword" },
				{ "DeepNorthSword2HSO2_desc_RtD", "A very sharp two handed Sword" },
				{ "DeepNorthStaffSO1_RtD", "<#0892D0>Frometal Staff T1" },
				{ "DeepNorthStaffSO1_desc_RtD", "A powerful Staff" },
				{ "DeepNorthStaffSO2_RtD", "<#0892D0>Frometal Staff T2" },
				{ "DeepNorthStaffSO2_desc_RtD", "A powerful Staff" },
				{ "DeepNorthWandSO1_RtD", "<#0892D0>Frometal Wand" },
				{ "DeepNorthWandSO1_desc_RtD", "Humming with power" },
				{ "DeepNorthDefenderSO_RtD", "<#0892D0>Frometal Defender" },
				{ "DeepNorthDefenderSO_desc_RtD", "Cold to the touch" },
				{ "SE_ArcherDeepNorthSO_RtD", "Archery" },
				{ "SE_ArcherDeepNorthSO_desc_RtD", "Archery Set" },
				{ "SE_AssassinDeepNorthSO_RtD", "Stealthy" },
				{ "SE_AssassinDeepNorthSO_desc_RtD", "Assassins Set" },
				{ "SE_MonkArmorDeepNorthSO_RtD", "Monk" },
				{ "SE_MonkArmorDeepNorthSO_desc_RtD", "Monk Set" },
				{ "SE_WarriorArmorDeepNorthSO_RtD", "Warrior" },
				{ "SE_WarriorArmorDeepNorthSO_desc_RtD", "Warriors Set" },
				{ "MagicMushroomStew_RtD", "Magic Mushroom Stew" },
				{ "MagicMushroomStew_desc_RtD", "It won't make you see anything strange. I think." },
				{ "MountainLoxMeatCooked_RtD", "Cooked Mountain Lox Meat" },
				{ "MountainLoxMeatCooked_desc_RtD", "Its cooked, not baked." },
				{ "MountainLoxPie_RtD", "Mountain Lox Pie" },
				{ "MountainLoxPie_desc_RtD", "Bake this in the oven." },
				{ "MountainLoxPieCooked_RtD", "Baked Mountain Lox Pie" },
				{ "MountainLoxPieCooked_desc_RtD", "Its baked, not cooked" },
				{ "MountainLoxStew_RtD", "Mountain Lox Stew" },
				{ "MountainLoxStew_desc_RtD", "Hearty Stew" },
				{ "StuffedMagicMushroomCooked_RtD", "Baked Stuffed Shroom" },
				{ "StuffedMagicMushroomCooked_desc_RtD", "Stuffed with good ingredients." },
				{ "StuffMagicMushroom_RtD", "Stuffed Shroom" },
				{ "StuffMagicMushroom_desc_RtD", "Bake this in the oven." },
				{ "AlphaWolfHairBundle_RtD", "Alpha Wolf Hair" },
				{ "AlphaWolfHairBundle_desc_RtD", "The hair from an Alpha Fenrir." },
				{ "FroEssence_RtD", "Fro Essence" },
				{ "FroEssence_desc_RtD", "Essence from an enchanted Fenrir." },
				{ "MountainLoxMeatRaw_RtD", "Mountain Lox Meat" },
				{ "MountainLoxMeatRaw_desc_RtD", "This needs to be cooked." },
				{ "MountainLoxPelt_RtD", "Mountain Lox Pelt" },
				{ "MountainLoxPelt_desc_RtD", "Strong and Warm fur hide" },
				{ "WinterGrain_RtD", "Winter Grain" },
				{ "WinterGrain_desc_RtD", "Great for winter foods." },
				{ "WinterMageCap_RtD", "Winter MageCap" },
				{ "WinterMageCap_desc_RtD", "A magical mushroom, found in the Deep North." },
				{ "FrometalBar_DoD", "FroMetal Bar" },
				{ "FrometalBar_desc_DoD", "Used for powerful armor and weapons" },
				{ "FroMetalOre_RtD", "FroMetal Ore" },
				{ "FroMetalOre_desc_RtD", "Smelted in the Blast Furnace." },
				{ "MountainLox_RtD", "Mountain Lox" },
				{ "Lox_Calf_RtD", "Mountain Lox Calf" },
				{ "MountainLoxTamed_RtD", "Mountain Lox" },
				{ "FrometalOre_RtDS", "Frometal Ore" },
				{ "FrometalOre_desc_RtDS", "Its cold to the touch." },
				{ "FrometalBar_RtDS", "Frometal Bar" },
				{ "FrometalBar_desc_RtDS", "Its shiny." },
				{ "Fenring_Alpha_RtD", "Werewolf" },
				{ "Fenring_Cultist_RtD", "Werewolf" }
			});
		}

		private void AddItems()
		{
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Expected O, but got Unknown
			try
			{
				string[] itemsList = ItemsList;
				foreach (string text in itemsList)
				{
					GameObject val = MyAssets.LoadAsset<GameObject>(text);
					if ((Object)(object)val != (Object)null)
					{
						CustomItem val2 = new CustomItem(val, true);
						ItemManager.Instance.AddItem(val2);
						if (LoggingEnable.Value)
						{
							((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + text + " to the Object database"));
						}
					}
					else
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database"));
					}
				}
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding prefabs: {arg}");
			}
		}

		private void AddPrefabs()
		{
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: 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 StaticVegetationList()
		{
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Expected O, but got Unknown
			try
			{
				string[] vegetationList = VegetationList;
				foreach (string text in vegetationList)
				{
					GameObject val = MyAssets.LoadAsset<GameObject>(text);
					if ((Object)(object)val != (Object)null)
					{
						ZoneManager.Instance.AddCustomVegetation(new CustomVegetation(val, true, staticvegetationlist));
						if (LoggingEnable.Value)
						{
							((BaseUnityPlugin)this).Logger.LogMessage((object)("Added Vegetation: " + text));
						}
					}
					else
					{
						((BaseUnityPlugin)this).Logger.LogMessage((object)("Failed to add: " + text + " to the object database"));
					}
				}
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding monsters: {arg}");
			}
		}

		private void AddSFX()
		{
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Expected O, but got Unknown
			try
			{
				string[] sFXList = SFXList2;
				foreach (string text in sFXList)
				{
					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 FixSFX2()
		{
			try
			{
				AudioSource prefab = Cache.GetPrefab<AudioSource>("sfx_arrow_hit");
				string[] sFXList = SFXList2;
				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 -= FixSFX2;
			}
		}

		public void AddSE()
		{
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Expected O, but got Unknown
			try
			{
				string[] customStatusEffectList = CustomStatusEffectList;
				foreach (string text in customStatusEffectList)
				{
					SE_Stats val = MyAssets.LoadAsset<SE_Stats>(text);
					if ((Object)(object)val != (Object)null)
					{
						CustomStatusEffect val2 = new CustomStatusEffect((StatusEffect)(object)val, true);
						ItemManager.Instance.AddStatusEffect(val2);
						if (LoggingEnable.Value)
						{
							((BaseUnityPlugin)this).Logger.LogMessage((object)("Added: " + ((object)val)?.ToString() + " to the Object database"));
						}
					}
				}
			}
			catch (Exception arg)
			{
				((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding SE_Stats Effects: {arg}");
			}
		}

		public RtDAdditions()
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Expected O, but got Unknown
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Expected O, but got Unknown
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			//IL_0045: Unknown result type (might be due to invalid IL or missing references)
			//IL_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: Expected O, but got Unknown
			//IL_0064: 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: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0086: Expected O, but got Unknown
			//IL_0093: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Expected O, but got Unknown
			//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d0: Expected O, but got Unknown
			//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Expected O, but got Unknown
			//IL_00f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0107: 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_0118: Expected O, but got Unknown
			//IL_011a: Unknown result type (might be due to invalid IL or missing references)
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_012b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0133: Unknown result type (might be due to invalid IL or missing references)
			//IL_013c: Expected O, but got Unknown
			//IL_0149: Unknown result type (might be due to invalid IL or missing references)
			//IL_014f: Expected O, but got Unknown
			//IL_0164: 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: Unknown result type (might be due to invalid IL or missing references)
			//IL_017d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0186: Expected O, but got Unknown
			//IL_0188: Unknown result type (might be due to invalid IL or missing references)
			//IL_018d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0199: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01aa: Expected O, but got Unknown
			//IL_01ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ce: Expected O, but got Unknown
			//IL_01d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f2: Expected O, but got Unknown
			//IL_01ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0205: Expected O, but got Unknown
			//IL_021a: Unknown result type (might be due to invalid IL or missing references)
			//IL_021f: Unknown result type (might be due to invalid IL or missing references)
			//IL_022b: 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_023c: Expected O, but got Unknown
			//IL_023e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0243: Unknown result type (might be due to invalid IL or missing references)
			//IL_024f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0257: Unknown result type (might be due to invalid IL or missing references)
			//IL_0260: Expected O, but got Unknown
			//IL_0262: Unknown result type (might be due to invalid IL or missing references)
			//IL_0267: 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_027b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0284: Expected O, but got Unknown
			//IL_0286: Unknown result type (might be due to invalid IL or missing references)
			//IL_028b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0297: Unknown result type (might be due to invalid IL or missing references)
			//IL_029f: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a8: Expected O, but got Unknown
			//IL_02b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02bb: Expected O, but got Unknown
			//IL_02d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f2: Expected O, but got Unknown
			//IL_02ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0305: Expected O, but got Unknown
			//IL_031a: Unknown result type (might be due to invalid IL or missing references)
			//IL_031f: Unknown result type (might be due to invalid IL or missing references)
			//IL_032b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0333: Unknown result type (might be due to invalid IL or missing references)
			//IL_033c: Expected O, but got Unknown
			//IL_0349: Unknown result type (might be due to invalid IL or missing references)
			//IL_034f: Expected O, but got Unknown
			//IL_0364: Unknown result type (might be due to invalid IL or missing references)
			//IL_0369: Unknown result type (might be due to invalid IL or missing references)
			//IL_0375: Unknown result type (might be due to invalid IL or missing references)
			//IL_037d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0386: Expected O, but got Unknown
			//IL_0393: Unknown result type (might be due to invalid IL or missing references)
			//IL_0399: Expected O, but got Unknown
			//IL_03ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_03bf: 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_03d1: Expected O, but got Unknown
			//IL_03d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_03ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f6: Expected O, but got Unknown
			//IL_03f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0409: 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_041a: Expected O, but got Unknown
			//IL_041c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0421: Unknown result type (might be due to invalid IL or missing references)
			//IL_042d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0435: 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_0451: Expected O, but got Unknown
			//IL_0466: Unknown result type (might be due to invalid IL or missing references)
			//IL_046b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0477: Unknown result type (might be due to invalid IL or missing references)
			//IL_0480: Unknown result type (might be due to invalid IL or missing references)
			//IL_0489: Expected O, but got Unknown
			//IL_048b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0490: Unknown result type (might be due to invalid IL or missing references)
			//IL_049c: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ae: Expected O, but got Unknown
			//IL_04b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_04b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_04c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_04d3: Expected O, but got Unknown
			//IL_04d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_04da: Unknown result type (might be due to invalid IL or missing references)
			//IL_04e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f7: Expected O, but got Unknown
			//IL_0504: Unknown result type (might be due to invalid IL or missing references)
			//IL_050a: Expected O, but got Unknown
			//IL_051f: 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: Unknown result type (might be due to invalid IL or missing references)
			//IL_0539: Unknown result type (might be due to invalid IL or missing references)
			//IL_0542: Expected O, but got Unknown
			//IL_0544: Unknown result type (might be due to invalid IL or missing references)
			//IL_0549: Unknown result type (might be due to invalid IL or missing references)
			//IL_0555: Unknown result type (might be due to invalid IL or missing references)
			//IL_055e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0567: Expected O, but got Unknown
			//IL_0569: Unknown result type (might be due to invalid IL or missing references)
			//IL_056e: Unknown result type (might be due to invalid IL or missing references)
			//IL_057a: 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_058b: Expected O, but got Unknown
			//IL_058d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0592: Unknown result type (might be due to invalid IL or missing references)
			//IL_059e: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_05af: Expected O, but got Unknown
			//IL_05bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_05c2: Expected O, but got Unknown
			//IL_05d7: 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_05e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_05f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_05fa: Expected O, but got Unknown
			//IL_05fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0601: Unknown result type (might be due to invalid IL or missing references)
			//IL_060d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0616: Unknown result type (might be due to invalid IL or missing references)
			//IL_061f: Expected O, but got Unknown
			//IL_0621: Unknown result type (might be due to invalid IL or missing references)
			//IL_0626: Unknown result type (might be due to invalid IL or missing references)
			//IL_0632: Unknown result type (might be due to invalid IL or missing references)
			//IL_063b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0644: Expected O, but got Unknown
			//IL_0646: Unknown result type (might be due to invalid IL or missing references)
			//IL_064b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0657: Unknown result type (might be due to invalid IL or missing references)
			//IL_065f: 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_067b: Expected O, but got Unknown
			//IL_0690: Unknown result type (might be due to invalid IL or missing references)
			//IL_0695: Unknown result type (might be due to invalid IL or missing references)
			//IL_06a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_06aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_06b3: Expected O, but got Unknown
			//IL_06b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_06c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_06cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d8: Expected O, but got Unknown
			//IL_06da: Unknown result type (might be due to invalid IL or missing references)
			//IL_06df: Unknown result type (might be due to invalid IL or missing references)
			//IL_06eb: 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_06fc: Expected O, but got Unknown
			//IL_06fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0703: Unknown result type (might be due to invalid IL or missing references)
			//IL_070f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0717: Unknown result type (might be due to invalid IL or missing references)
			//IL_0720: Expected O, but got Unknown
			//IL_072d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0733: Expected O, but got Unknown
			//IL_0748: Unknown result type (might be due to invalid IL or missing references)
			//IL_074d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0759: Unknown result type (might be due to invalid IL or missing references)
			//IL_0762: Unknown result type (might be due to invalid IL or missing references)
			//IL_076b: Expected O, but got Unknown
			//IL_076d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0772: Unknown result type (might be due to invalid IL or missing references)
			//IL_077e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0787: Unknown result type (might be due to invalid IL or missing references)
			//IL_0790: Expected O, but got Unknown
			//IL_0792: Unknown result type (might be due to invalid IL or missing references)
			//IL_0797: Unknown result type (might be due to invalid IL or missing references)
			//IL_07a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b5: Expected O, but got Unknown
			//IL_07b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_07bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_07c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d9: Expected O, but got Unknown
			//IL_07e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ec: Expected O, but got Unknown
			//IL_0801: Unknown result type (might be due to invalid IL or missing references)
			//IL_0806: 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_081b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0824: Expected O, but got Unknown
			//IL_0826: Unknown result type (might be due to invalid IL or missing references)
			//IL_082b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0837: Unknown result type (might be due to invalid IL or missing references)
			//IL_0840: Unknown result type (might be due to invalid IL or missing references)
			//IL_0849: Expected O, but got Unknown
			//IL_084b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0850: Unknown result type (might be due to invalid IL or missing references)
			//IL_085c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0864: Unknown result type (might be due to invalid IL or missing references)
			//IL_086d: Expected O, but got Unknown
			//IL_086f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0874: Unknown result type (might be due to invalid IL or missing references)
			//IL_0880: Unknown result type (might be due to invalid IL or missing references)
			//IL_0888: Unknown result type (might be due to invalid IL or missing references)
			//IL_0891: Expected O, but got Unknown
			//IL_089e: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a4: Expected O, but got Unknown
			//IL_08b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_08be: 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_08d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_08dc: Expected O, but got Unknown
			//IL_08de: Unknown result type (might be due to invalid IL or missing references)
			//IL_08e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_08ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_08f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0901: Expected O, but got Unknown
			//IL_0903: Unknown result type (might be due to invalid IL or missing references)
			//IL_0908: Unknown result type (might be due to invalid IL or missing references)
			//IL_0914: Unknown result type (might be due to invalid IL or missing references)
			//IL_091d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0926: Expected O, but got Unknown
			//IL_0928: Unknown result type (might be due to invalid IL or missing references)
			//IL_092d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0939: Unknown result type (might be due to invalid IL or missing references)
			//IL_0941: Unknown result type (might be due to invalid IL or missing references)
			//IL_094a: Expected O, but got Unknown
			//IL_0957: Unknown result type (might be due to invalid IL or missing references)
			//IL_095d: Expected O, but got Unknown
			//IL_0972: Unknown result type (might be due to invalid IL or missing references)
			//IL_0977: Unknown result type (might be due to invalid IL or missing references)
			//IL_0983: Unknown result type (might be due to invalid IL or missing references)
			//IL_098c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0995: Expected O, but got Unknown
			//IL_0997: Unknown result type (might be due to invalid IL or missing references)
			//IL_099c: Unknown result type (might be due to invalid IL or missing references)
			//IL_09a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_09b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_09ba: Expected O, but got Unknown
			//IL_09bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_09c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_09cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_09de: Expected O, but got Unknown
			//IL_09e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_09e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_09f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_09f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a02: Expected O, but got Unknown
			//IL_0a0f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a15: Expected O, but got Unknown
			//IL_0a2a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a2f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a3b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a44: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a4d: Expected O, but got Unknown
			//IL_0a4f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a54: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a60: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a69: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a72: Expected O, but got Unknown
			//IL_0a74: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a79: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a85: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a8e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a97: Expected O, but got Unknown
			//IL_0a99: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a9e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aaa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ab2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0abb: Expected O, but got Unknown
			//IL_0ac8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ace: Expected O, but got Unknown
			//IL_0ae3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ae8: 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_0afd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b06: Expected O, but got Unknown
			//IL_0b08: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b0d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b19: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b21: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b2a: Expected O, but got Unknown
			//IL_0b2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b31: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b3d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b45: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b4e: Expected O, but got Unknown
			//IL_0b50: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b55: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b61: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b69: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b72: Expected O, but got Unknown
			//IL_0b7f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b85: Expected O, but got Unknown
			//IL_0b9a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b9f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bab: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bb4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bbd: Expected O, but got Unknown
			//IL_0bbf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bc4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0be2: Expected O, but got Unknown
			//IL_0be4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0be9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bf5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bfe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c07: Expected O, but got Unknown
			//IL_0c09: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c0e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c1a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c23: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c2c: Expected O, but got Unknown
			//IL_0c39: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c3f: Expected O, but got Unknown
			//IL_0c54: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c59: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c65: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c6e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c77: Expected O, but got Unknown
			//IL_0c79: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c7e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c8a: 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_0c9c: Expected O, but got Unknown
			//IL_0c9e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ca3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0caf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cb7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cc0: Expected O, but got Unknown
			//IL_0cc2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cc7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cd3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cdb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ce4: Expected O, but got Unknown
			//IL_0cf1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cf7: Expected O, but got Unknown
			//IL_0d0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d11: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d26: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d2f: Expected O, but got Unknown
			//IL_0d31: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d36: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d42: 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_0d54: Expected O, but got Unknown
			//IL_0d56: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d67: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d70: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d79: Expected O, but got Unknown
			//IL_0d7b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d80: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d8c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d95: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d9e: Expected O, but got Unknown
			//IL_0dab: Unknown result type (might be due to invalid IL or missing references)
			//IL_0db1: Expected O, but got Unknown
			//IL_0dc6: 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_0dd7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0de0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0de9: 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_0dfc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e05: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e0e: Expected O, but got Unknown
			//IL_0e10: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e15: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e21: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e29: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e32: Expected O, but got Unknown
			//IL_0e34: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e39: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e45: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e4d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e56: Expected O, but got Unknown
			//IL_0e63: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e69: Expected O, but got Unknown
			//IL_0e7e: 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_0e8f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e98: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ea1: Expected O, but got Unknown
			//IL_0ea3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ea8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eb4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ebc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ec5: Expected O, but got Unknown
			//IL_0ec7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ecc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ed8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ee1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eea: Expected O, but got Unknown
			//IL_0eec: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ef1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0efd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f05: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f0e: Expected O, but got Unknown
			//IL_0f1b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f21: Expected O, but got Unknown
			//IL_0f36: 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_0f47: 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_0f59: Expected O, but got Unknown
			//IL_0f5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f60: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f6c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f75: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f7e: Expected O, but got Unknown
			//IL_0f80: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f85: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f91: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f99: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fa2: Expected O, but got Unknown
			//IL_0fa4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fa9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fb5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fbd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fc6: Expected O, but got Unknown
			//IL_0fd3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fd9: Expected O, but got Unknown
			//IL_0fee: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ff3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fff: 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_1011: Expected O, but got Unknown
			//IL_1013: Unknown result type (might be due to invalid IL or missing references)
			//IL_1018: Unknown result type (might be due to invalid IL or missing references)
			//IL_1024: Unknown result type (might be due to invalid IL or missing references)
			//IL_102c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1035: Expected O, but got Unknown
			//IL_1037: Unknown result type (might be due to invalid IL or missing references)
			//IL_103c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1048: Unknown result type (might be due to invalid IL or missing references)
			//IL_1051: Unknown result type (might be due to invalid IL or missing references)
			//IL_105a: Expected O, but got Unknown
			//IL_105c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1061: Unknown result type (might be due to invalid IL or missing references)
			//IL_106d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1075: Unknown result type (might be due to invalid IL or missing references)
			//IL_107e: Expected O, but got Unknown
			//IL_108b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1091: Expected O, but got Unknown
			//IL_10a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_10ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_10b7: 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_10c9: Expected O, but got Unknown
			//IL_10cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_10d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_10dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_10e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_10ee: Expected O, but got Unknown
			//IL_10f0: Unknown