Decompiled source of MedievalPlus v1.0.4

MedievalPlus.dll

Decompiled 2 months ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using DM;
using FunctionMedPlus;
using HarmonyLib;
using Landfall.TABS;
using Landfall.TABS.AI.Components.Modifiers;
using Landfall.TABS.AI.Systems;
using Landfall.TABS.GameState;
using Landfall.TABS.UnitEditor;
using Landfall.TABS.Workshop;
using MedievalPlus;
using SLMA;
using Unity.Entities;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.SceneManagement;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("MedievalPlus")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("GeeztJeez")]
[assembly: AssemblyProduct("MedievalPlus")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("7acfaef0-7669-4401-8bff-5a9a02e18c75")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.4.0")]
[module: UnverifiableCode]
namespace MedievalPlus
{
	public static class UManager
	{
		public class Utility : MonoBehaviour
		{
			public static class PrimitiveHelper
			{
				private static Dictionary<PrimitiveType, Mesh> primitiveMeshes;

				public static GameObject CreatePrimitive(PrimitiveType type, bool withCollider)
				{
					//IL_0017: Unknown result type (might be due to invalid IL or missing references)
					//IL_001c: Unknown result type (might be due to invalid IL or missing references)
					//IL_0022: Unknown result type (might be due to invalid IL or missing references)
					//IL_002d: Unknown result type (might be due to invalid IL or missing references)
					//IL_0035: Expected O, but got Unknown
					//IL_0003: Unknown result type (might be due to invalid IL or missing references)
					if (withCollider)
					{
						return GameObject.CreatePrimitive(type);
					}
					GameObject val = new GameObject(((object)(PrimitiveType)(ref type)).ToString());
					val.AddComponent<MeshFilter>().sharedMesh = GetPrimitiveMesh(type);
					val.AddComponent<MeshRenderer>();
					return val;
				}

				public static Mesh GetPrimitiveMesh(PrimitiveType type)
				{
					//IL_0005: Unknown result type (might be due to invalid IL or missing references)
					//IL_0019: Unknown result type (might be due to invalid IL or missing references)
					//IL_000d: Unknown result type (might be due to invalid IL or missing references)
					if (!primitiveMeshes.ContainsKey(type))
					{
						CreatePrimitiveMesh(type);
					}
					return primitiveMeshes[type];
				}

				private static Mesh CreatePrimitiveMesh(PrimitiveType type)
				{
					//IL_0000: Unknown result type (might be due to invalid IL or missing references)
					//IL_001c: Unknown result type (might be due to invalid IL or missing references)
					GameObject obj = GameObject.CreatePrimitive(type);
					Mesh sharedMesh = obj.GetComponent<MeshFilter>().sharedMesh;
					Object.Destroy((Object)(object)obj);
					primitiveMeshes[type] = sharedMesh;
					return sharedMesh;
				}

				static PrimitiveHelper()
				{
					primitiveMeshes = new Dictionary<PrimitiveType, Mesh>();
				}
			}

			public static class ItemCategorizer
			{
				public static GameObject SetTag(GameObject item, string categoryName = "FACTION_MEDIEVAL", TagType tagType = 0)
				{
					//IL_0018: Unknown result type (might be due to invalid IL or missing references)
					//IL_0020: 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_002e: Unknown result type (might be due to invalid IL or missing references)
					try
					{
						CharacterItem componentInChildren = item.GetComponentInChildren<CharacterItem>();
						if (Object.op_Implicit((Object)(object)componentInChildren))
						{
							componentInChildren.tags = new List<Tag>
							{
								new Tag
								{
									tagType = tagType,
									value = categoryName
								}
							};
						}
						return item;
					}
					catch (Exception ex)
					{
						Debug.Log((object)ex);
						return item;
					}
				}
			}

			public static Sprite LoadBundleTextureToSprite(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				//IL_0031: Unknown result type (might be due to invalid IL or missing references)
				//IL_0040: Unknown result type (might be due to invalid IL or missing references)
				Texture2D val = (Texture2D)bundle.LoadAsset(name);
				((Texture)val).filterMode = (FilterMode)0;
				return Sprite.Create(val, new Rect(0f, 0f, (float)((Texture)val).width, (float)((Texture)val).height), new Vector2(0.5f, 0.5f));
			}

			public static GameObject LoadBundleGameObject(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (GameObject)bundle.LoadAsset(name);
			}

			public static AudioClip LoadBundleAudioClip(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (AudioClip)bundle.LoadAsset(name);
			}

			public static Material LoadBundleMaterial(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (Material)bundle.LoadAsset(name);
			}

			public static RuntimeAnimatorController LoadBundleController(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (RuntimeAnimatorController)bundle.LoadAsset(name);
			}

			public static void AddToUnitLib(GameObject UnitBaseObject)
			{
				//IL_0029: Unknown result type (might be due to invalid IL or missing references)
				//IL_002e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0034: Unknown result type (might be due to invalid IL or missing references)
				Unit component = UnitBaseObject.GetComponent<Unit>();
				if ((Object)(object)component == (Object)null || component.Entity == null)
				{
					Debug.LogError((object)"UnitBaseObject does not contain a valid Unit or Entity component.");
					return;
				}
				DatabaseID gUID = component.Entity.GUID;
				Debug.Log((object)$"Attempting to add Unit with GUID: {gUID}");
				unitBases.Add(UnitBaseObject.GetComponentInChildren<Unit>());
			}
		}

		public static string comment;

		public static AssetBundle bundle;

		public static List<Unit> unitBases;

		public static void Init(LandfallContentDatabase db)
		{
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Expected O, but got Unknown
			//IL_0060: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Expected O, but got Unknown
			//IL_01fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0208: Expected O, but got Unknown
			//IL_0228: Unknown result type (might be due to invalid IL or missing references)
			//IL_0233: Expected O, but got Unknown
			//IL_0554: Unknown result type (might be due to invalid IL or missing references)
			//IL_0568: Expected O, but got Unknown
			//IL_0597: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ab: Expected O, but got Unknown
			//IL_05da: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ee: Expected O, but got Unknown
			//IL_061d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0631: Expected O, but got Unknown
			//IL_0660: Unknown result type (might be due to invalid IL or missing references)
			//IL_0674: Expected O, but got Unknown
			//IL_06d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e6: Expected O, but got Unknown
			//IL_090d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0921: Expected O, but got Unknown
			//IL_09ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_09ce: Expected O, but got Unknown
			//IL_0a01: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a15: Expected O, but got Unknown
			//IL_0a48: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a5c: Expected O, but got Unknown
			//IL_0a8f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aa3: Expected O, but got Unknown
			//IL_0ad6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aea: Expected O, but got Unknown
			LoadBundle("medievalplusbundle");
			Sprite val = (Sprite)SLMALoader.SDic["sprites"]["Icons_128x128_Swordsman2"];
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Customizing Faction";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Faction val2 = (Faction)SLMALoader.SDic["factions"]["Medieval"];
			s.SetField<Faction>(val2, "m_isSecret", (object)true);
			s.SetField<Faction>(val2, "m_lockSecrets", (object)true);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Units";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "--------- Medieval++ ----------";
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Scavenger", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_scavenger")), val2, 4);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Pavise Crossbowman", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_pavisecrossbowman")), val2, 5);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Truth Archivist", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_trutharchivist")), val2, 6);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Battering Ram", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_batteringram")), val2, 9);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Rook", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_rook")), val2, 10);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Winged Hussar", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_wingedhussar")), val2, 11);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Queen", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_queen")), val2, 12);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Hunter Knight", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_hunterknight")), val2, 13);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Subjugator", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_subjugator")), val2, 14);
			SLMATool.CreateUnit("Militum Ex Deus", (UnitBlueprint)null, val2, Utility.LoadBundleTextureToSprite("icon_militumexeeus"));
			comment = "--------- Subunits ----------";
			SLMATool.CreateUnit("Battering Ram Rider", (UnitBlueprint)null, (Faction)SLMALoader.SDic["factions"]["Subunits"], val);
			SLMATool.CreateUnit("Winged Hussar Rider", (UnitBlueprint)null, (Faction)SLMALoader.SDic["factions"]["Subunits"], val);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Weapons";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("MantisScythe", Utility.LoadBundleGameObject("MantisScythe"), true, (HideFlags)52, val, 75425324, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("PaviseCrossbow", Utility.LoadBundleGameObject("PaviseCrossbow"), true, (HideFlags)52, val, 5234123, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("ShadowDagger", Utility.LoadBundleGameObject("ShadowDagger"), true, (HideFlags)52, val, 12432343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Thrower_BogmireSludgeCauldron", Utility.LoadBundleGameObject("Thrower_BogmireSludgeCauldron"), true, (HideFlags)52, val, 124234343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("RoyaleArcaneStaff", Utility.LoadBundleGameObject("RoyaleArcaneStaff"), true, (HideFlags)52, val, 523413243, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenExecutionHandaxe", Utility.LoadBundleGameObject("QueenExecutionHandaxe"), true, (HideFlags)52, val, 63454354, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("PulleyBow", Utility.LoadBundleGameObject("PulleyBow"), true, (HideFlags)52, val, 6243223, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("WingedHussarLance", Utility.LoadBundleGameObject("WingedHussarLance"), true, (HideFlags)52, val, 64532423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("GunAxe", Utility.LoadBundleGameObject("GunAxe"), true, (HideFlags)52, val, 766546345, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("SubjugatorTitanShield", Utility.LoadBundleGameObject("SubjugatorTitanShield"), true, (HideFlags)52, val, 5342342, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("SubjugatorSword", Utility.LoadBundleGameObject("SubjugatorSword"), true, (HideFlags)52, val, 4563543, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TemplarMetalSpear", Utility.LoadBundleGameObject("TemplarMetalSpear"), true, (HideFlags)52, val, 6345453, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TemplarMetalSword", Utility.LoadBundleGameObject("TemplarMetalSword"), true, (HideFlags)52, val, 63454234, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Abilities";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_Scavenge", Utility.LoadBundleGameObject("Move_Scavenge"), true, (HideFlags)52, val, 643523432, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_Pavise", Utility.LoadBundleGameObject("Move_Pavise"), true, (HideFlags)52, val, 42343212, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_ArchivedLies", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 53242343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_LanePush", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 64234243, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_CompactTower", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 52343232, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_Checkmate", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 64351344, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_GambitCarry", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 62432323, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_SubjugationDeath", Utility.LoadBundleGameObject("Move_SubjugationDeath"), true, (HideFlags)52, val, 5234312, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_DeterminantLaugh", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 64535234, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_QuickSlash", Utility.LoadBundleGameObject("Move_QuickSlash"), true, (HideFlags)52, val, 64523423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_SuspenseAura", Utility.LoadBundleGameObject("Move_SuspenseAura"), true, (HideFlags)52, val, 6234323, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_BrutalParry", Utility.LoadBundleGameObject("Move_BrutalParry"), true, (HideFlags)52, val, 35242343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_BackShield", Utility.LoadBundleGameObject("Move_BackShield"), true, (HideFlags)52, val, 64353533, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_CloudyWarfield", Utility.LoadBundleGameObject("Move_CloudyWarfield"), true, (HideFlags)52, val, 8545364, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_AfterImage", Utility.LoadBundleGameObject("Move_AfterImage"), true, (HideFlags)52, val, 7554532, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_MasterfulParryOne", Utility.LoadBundleGameObject("Move_MasterfulParryOne"), true, (HideFlags)52, val, 6343243, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_MasterfulParryTwo", Utility.LoadBundleGameObject("Move_MasterfulParryTwo"), true, (HideFlags)52, val, 7435645, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_WarDynamicMovement", Utility.LoadBundleGameObject("Move_WarDynamicMovement"), true, (HideFlags)52, val, 75442532, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Unit Bases";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Scavenger_Unit_Base", Utility.LoadBundleGameObject("Scavenger_Unit_Base"), true, (HideFlags)52, val, 635243423, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TruthArchivist_Base", (GameObject)SLMALoader.SDic["bases"]["Humanoid"], true, (HideFlags)52, val, 62432342, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("BatteringRam_Base", Utility.LoadBundleGameObject("BatteringRam_Base"), true, (HideFlags)52, val, 75523423, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Rook_UnitBase", Utility.LoadBundleGameObject("Rook_UnitBase"), true, (HideFlags)52, val, 53124323, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenUnit_Base", (GameObject)SLMALoader.SDic["bases"]["Humanoid"], true, (HideFlags)52, val, 634534534, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("HussarHorse_Base", (GameObject)SLMALoader.SDic["bases"]["Horse"], true, (HideFlags)52, val, 67243232, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("HunterKnight_Base", (GameObject)SLMALoader.SDic["bases"]["Humanoid"], true, (HideFlags)52, val, 74564534, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Subjugator_Base", (GameObject)SLMALoader.SDic["bases"]["Stiffy"], true, (HideFlags)52, val, 52422340, true), "FACTION_MEDIEVAL", (TagType)0));
			Utility.AddToUnitLib(Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("MilitumExDeus_Base", (GameObject)SLMALoader.SDic["bases"]["Humanoid"], true, (HideFlags)52, val, 85634534, true), "FACTION_MEDIEVAL", (TagType)0));
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Clothing";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("WhiteClothCape", Utility.LoadBundleGameObject("WhiteClothCape"), true, (HideFlags)52, val, 64253243, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("WhiteClothSkirt", Utility.LoadBundleGameObject("WhiteClothSkirt"), true, (HideFlags)52, val, 75643543, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("HunterKnight_Helmet", Utility.LoadBundleGameObject("HunterKnight_Helmet"), true, (HideFlags)52, val, 63453424, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenCrown", Utility.LoadBundleGameObject("QueenCrown"), true, (HideFlags)52, val, 563453452, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenDress", Utility.LoadBundleGameObject("QueenDress"), true, (HideFlags)52, val, 642234324, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenFootwear", Utility.LoadBundleGameObject("QueenFootwear"), true, (HideFlags)52, val, 75465654, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenHair", Utility.LoadBundleGameObject("QueenHair"), true, (HideFlags)52, val, 74352343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("QueenShoes", Utility.LoadBundleGameObject("QueenShoes"), true, (HideFlags)52, val, 64354342, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("LeperKing_Mask", Utility.LoadBundleGameObject("LeperKing_Mask"), true, (HideFlags)52, val, 64573423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Subjugator_ShoulderCover", Utility.LoadBundleGameObject("Subjugator_ShoulderCover"), true, (HideFlags)52, val, 523432213, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Subjugator_Helmet", Utility.LoadBundleGameObject("Subjugator_Helmet"), true, (HideFlags)52, val, 64535344, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TruthArchivistRobe", Utility.LoadBundleGameObject("TruthArchivistRobe"), true, (HideFlags)52, val, 42143212, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("ShadowyAura", Utility.LoadBundleGameObject("ShadowyAura"), true, (HideFlags)52, val, 63454324, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TruthArchivistRobeShadowAura", Utility.LoadBundleGameObject("TruthArchivistRobeShadowAura"), true, (HideFlags)52, val, 213123221, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Projectiles";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("P_SilverBullet", Utility.LoadBundleGameObject("P_PaviseCrossbow"), true, (HideFlags)52, val, 75524344, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("P_PaviseCrossbow", Utility.LoadBundleGameObject("P_PaviseCrossbow"), true, (HideFlags)52, val, 643524323, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("P_BogmireSludgeCauldron", Utility.LoadBundleGameObject("P_BogmireSludgeCauldron"), true, (HideFlags)52, val, 32423343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("P_PulleyBow", Utility.LoadBundleGameObject("P_PulleyBow"), true, (HideFlags)52, val, 62534324, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Effect";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Eff_BogmireSludgeCauldron", Utility.LoadBundleGameObject("Eff_BogmireSludgeCauldron"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Eff_DivineForce", Utility.LoadBundleGameObject("Eff_DivineForce"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Eff_Bleeding", Utility.LoadBundleGameObject("Eff_Bleeding"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Eff_AttackBuff", Utility.LoadBundleGameObject("Eff_AttackBuff"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Eff_Subjugation", Utility.LoadBundleGameObject("Eff_Subjugation"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Explosions";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_RookStomp", Utility.LoadBundleGameObject("E_RookStomp"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_BogmireSludgeCauldron", Utility.LoadBundleGameObject("E_BogmireSludgeCauldron"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_RamExplosion", Utility.LoadBundleGameObject("E_RamExplosion"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_ArcaneAttackSpeedIncrease", Utility.LoadBundleGameObject("E_ArcaneAttackSpeedIncrease"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_SubjugationDeath", Utility.LoadBundleGameObject("E_SubjugationDeath"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_SubjugationShield", Utility.LoadBundleGameObject("E_SubjugationShield"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
		}

		public static void SetBlueprint(UnitBlueprint unit, LandfallContentDatabase db)
		{
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Expected O, but got Unknown
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Expected O, but got Unknown
			//IL_0161: Unknown result type (might be due to invalid IL or missing references)
			//IL_0167: Expected O, but got Unknown
			//IL_0182: Unknown result type (might be due to invalid IL or missing references)
			//IL_0188: Expected O, but got Unknown
			//IL_01a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a9: Expected O, but got Unknown
			//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ca: Expected O, but got Unknown
			//IL_01e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01eb: Expected O, but got Unknown
			//IL_0206: Unknown result type (might be due to invalid IL or missing references)
			//IL_020c: Expected O, but got Unknown
			//IL_0227: Unknown result type (might be due to invalid IL or missing references)
			//IL_022d: Expected O, but got Unknown
			//IL_0249: Unknown result type (might be due to invalid IL or missing references)
			//IL_024f: Expected O, but got Unknown
			//IL_025e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0265: Expected O, but got Unknown
			//IL_029b: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_02bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02cb: Expected O, but got Unknown
			//IL_0303: Unknown result type (might be due to invalid IL or missing references)
			//IL_0308: Unknown result type (might be due to invalid IL or missing references)
			//IL_031d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0322: Unknown result type (might be due to invalid IL or missing references)
			//IL_032e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0334: Expected O, but got Unknown
			//IL_0370: 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_038a: Unknown result type (might be due to invalid IL or missing references)
			//IL_038f: Unknown result type (might be due to invalid IL or missing references)
			//IL_039b: Unknown result type (might be due to invalid IL or missing references)
			//IL_03a2: Expected O, but got Unknown
			//IL_03d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0401: Unknown result type (might be due to invalid IL or missing references)
			//IL_0408: Expected O, but got Unknown
			//IL_043d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0442: Unknown result type (might be due to invalid IL or missing references)
			//IL_0458: Unknown result type (might be due to invalid IL or missing references)
			//IL_045d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0467: Unknown result type (might be due to invalid IL or missing references)
			//IL_046e: Expected O, but got Unknown
			//IL_04a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_04be: Unknown result type (might be due to invalid IL or missing references)
			//IL_04c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_04cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_04d4: Expected O, but got Unknown
			//IL_0504: Unknown result type (might be due to invalid IL or missing references)
			//IL_0509: Unknown result type (might be due to invalid IL or missing references)
			//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_052e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0535: Expected O, but got Unknown
			//IL_056a: Unknown result type (might be due to invalid IL or missing references)
			//IL_056f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0585: Unknown result type (might be due to invalid IL or missing references)
			//IL_058a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0595: Unknown result type (might be due to invalid IL or missing references)
			//IL_059b: Expected O, but got Unknown
			//IL_05dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_05e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_05f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_05fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0608: Unknown result type (might be due to invalid IL or missing references)
			//IL_060f: Expected O, but got Unknown
			//IL_063e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0643: Unknown result type (might be due to invalid IL or missing references)
			//IL_0659: Unknown result type (might be due to invalid IL or missing references)
			//IL_065e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0676: Unknown result type (might be due to invalid IL or missing references)
			//IL_067c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0790: Unknown result type (might be due to invalid IL or missing references)
			//IL_0796: Expected O, but got Unknown
			//IL_07b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b7: Expected O, but got Unknown
			//IL_07d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d8: Expected O, but got Unknown
			//IL_07f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_07f9: Expected O, but got Unknown
			//IL_0814: Unknown result type (might be due to invalid IL or missing references)
			//IL_081a: Expected O, but got Unknown
			//IL_0835: Unknown result type (might be due to invalid IL or missing references)
			//IL_083b: Expected O, but got Unknown
			//IL_0856: Unknown result type (might be due to invalid IL or missing references)
			//IL_085c: Expected O, but got Unknown
			//IL_0877: Unknown result type (might be due to invalid IL or missing references)
			//IL_087d: Expected O, but got Unknown
			//IL_0898: Unknown result type (might be due to invalid IL or missing references)
			//IL_089e: Expected O, but got Unknown
			//IL_08ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_08c0: Expected O, but got Unknown
			//IL_08dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_08e2: Expected O, but got Unknown
			//IL_08f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_08fa: Expected O, but got Unknown
			//IL_093c: 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_0957: Unknown result type (might be due to invalid IL or missing references)
			//IL_095c: Unknown result type (might be due to invalid IL or missing references)
			//IL_096b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0972: Expected O, but got Unknown
			//IL_09a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_09ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_09c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_09c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_09da: Expected O, but got Unknown
			//IL_0a0a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a0f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a25: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a2a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a35: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a3c: Expected O, but got Unknown
			//IL_0a7b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a80: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a96: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a9b: 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_0ab1: Expected O, but got Unknown
			//IL_0ae4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ae9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b04: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b17: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b1e: Expected O, but got Unknown
			//IL_0b4e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b53: 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_0b6e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b76: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b81: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b88: Expected O, but got Unknown
			//IL_0bbb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bc0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bdb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0be6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bed: Expected O, but got Unknown
			//IL_0c25: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c2a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c40: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c45: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c54: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c5b: Expected O, but got Unknown
			//IL_0c8b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c90: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ca6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cab: 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_0cbe: Expected O, but got Unknown
			//IL_0cfd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d02: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d18: 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_0d2d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d34: Expected O, but got Unknown
			//IL_0d64: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d69: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d7f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d84: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eed: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ef3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f38: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f3e: Expected O, but got Unknown
			//IL_0f59: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f5f: Expected O, but got Unknown
			//IL_1020: Unknown result type (might be due to invalid IL or missing references)
			//IL_1026: Expected O, but got Unknown
			//IL_1041: Unknown result type (might be due to invalid IL or missing references)
			//IL_1047: Expected O, but got Unknown
			//IL_1062: Unknown result type (might be due to invalid IL or missing references)
			//IL_1068: Expected O, but got Unknown
			//IL_1083: Unknown result type (might be due to invalid IL or missing references)
			//IL_1089: Expected O, but got Unknown
			//IL_10a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_10aa: Expected O, but got Unknown
			//IL_10c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_10cb: Expected O, but got Unknown
			//IL_10db: Unknown result type (might be due to invalid IL or missing references)
			//IL_10e2: Expected O, but got Unknown
			//IL_111b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1120: Unknown result type (might be due to invalid IL or missing references)
			//IL_1136: Unknown result type (might be due to invalid IL or missing references)
			//IL_113b: Unknown result type (might be due to invalid IL or missing references)
			//IL_114a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1151: Expected O, but got Unknown
			//IL_1190: Unknown result type (might be due to invalid IL or missing references)
			//IL_1195: Unknown result type (might be due to invalid IL or missing references)
			//IL_11ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_11b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_11bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_11c6: Expected O, but got Unknown
			//IL_1204: Unknown result type (might be due to invalid IL or missing references)
			//IL_1209: Unknown result type (might be due to invalid IL or missing references)
			//IL_121f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1224: Unknown result type (might be due to invalid IL or missing references)
			//IL_1233: Unknown result type (might be due to invalid IL or missing references)
			//IL_123a: Expected O, but got Unknown
			//IL_1278: Unknown result type (might be due to invalid IL or missing references)
			//IL_127d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1293: Unknown result type (might be due to invalid IL or missing references)
			//IL_1298: Unknown result type (might be due to invalid IL or missing references)
			//IL_12a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_12ae: Expected O, but got Unknown
			//IL_12ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_1308: Unknown result type (might be due to invalid IL or missing references)
			//IL_130d: Unknown result type (might be due to invalid IL or missing references)
			//IL_131c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1323: Expected O, but got Unknown
			//IL_1353: Unknown result type (might be due to invalid IL or missing references)
			//IL_1358: Unknown result type (might be due to invalid IL or missing references)
			//IL_136e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1373: Unknown result type (might be due to invalid IL or missing references)
			//IL_145a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1460: Expected O, but got Unknown
			//IL_1471: Unknown result type (might be due to invalid IL or missing references)
			//IL_1477: Expected O, but got Unknown
			//IL_1488: Unknown result type (might be due to invalid IL or missing references)
			//IL_148e: Expected O, but got Unknown
			//IL_1716: Unknown result type (might be due to invalid IL or missing references)
			//IL_171c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1773: Unknown result type (might be due to invalid IL or missing references)
			//IL_1779: Expected O, but got Unknown
			//IL_1794: Unknown result type (might be due to invalid IL or missing references)
			//IL_179a: Expected O, but got Unknown
			//IL_17b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_17bb: Expected O, but got Unknown
			//IL_1888: Unknown result type (might be due to invalid IL or missing references)
			//IL_188e: Expected O, but got Unknown
			//IL_18a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_18af: Expected O, but got Unknown
			//IL_18ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_18d0: Expected O, but got Unknown
			//IL_18eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_18f1: Expected O, but got Unknown
			//IL_190c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1912: Expected O, but got Unknown
			//IL_192d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1933: Expected O, but got Unknown
			//IL_194e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1954: Expected O, but got Unknown
			//IL_196f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1975: Expected O, but got Unknown
			//IL_1990: Unknown result type (might be due to invalid IL or missing references)
			//IL_1996: Expected O, but got Unknown
			//IL_19b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_19b8: Expected O, but got Unknown
			//IL_19d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_19da: Expected O, but got Unknown
			//IL_19eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_19f2: Expected O, but got Unknown
			//IL_1a27: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a42: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a47: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a52: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a59: Expected O, but got Unknown
			//IL_1a8f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a94: Unknown result type (might be due to invalid IL or missing references)
			//IL_1aaa: Unknown result type (might be due to invalid IL or missing references)
			//IL_1aaf: Unknown result type (might be due to invalid IL or missing references)
			//IL_1aba: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ac1: Expected O, but got Unknown
			//IL_1af0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1af5: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b0b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b10: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b1b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b22: Expected O, but got Unknown
			//IL_1b56: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b71: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b76: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b81: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b88: Expected O, but got Unknown
			//IL_1bb8: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bbd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bd3: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bd8: Unknown result type (might be due to invalid IL or missing references)
			//IL_1be3: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bea: Expected O, but got Unknown
			//IL_1c29: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c2e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c44: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c49: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c58: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c5f: Expected O, but got Unknown
			//IL_1c8f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c94: Unknown result type (might be due to invalid IL or missing references)
			//IL_1caa: Unknown result type (might be due to invalid IL or missing references)
			//IL_1caf: Unknown result type (might be due to invalid IL or missing references)
			//IL_1cba: Unknown result type (might be due to invalid IL or missing references)
			//IL_1cc1: Expected O, but got Unknown
			//IL_1cf7: Unknown result type (might be due to invalid IL or missing references)
			//IL_1cfc: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d12: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d17: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d22: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d29: Expected O, but got Unknown
			//IL_1d5d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d62: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d78: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d7d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d89: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d90: Expected O, but got Unknown
			//IL_1dc0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1dc5: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ddb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1de0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1dec: Unknown result type (might be due to invalid IL or missing references)
			//IL_1df3: Expected O, but got Unknown
			//IL_1e29: Unknown result type (might be due to invalid IL or missing references)
			//IL_1e2e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1e44: Unknown result type (might be due to invalid IL or missing references)
			//IL_1e49: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f4c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f52: Expected O, but got Unknown
			//IL_1f6d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f73: Expected O, but got Unknown
			//IL_1f8e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f94: Expected O, but got Unknown
			//IL_1faf: Unknown result type (might be due to invalid IL or missing references)
			//IL_1fb5: Expected O, but got Unknown
			//IL_1fd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1fd6: Expected O, but got Unknown
			//IL_1fe4: Unknown result type (might be due to invalid IL or missing references)
			//IL_1feb: Expected O, but got Unknown
			//IL_2025: Unknown result type (might be due to invalid IL or missing references)
			//IL_202a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2040: Unknown result type (might be due to invalid IL or missing references)
			//IL_2045: Unknown result type (might be due to invalid IL or missing references)
			//IL_204f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2056: Expected O, but got Unknown
			//IL_208c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2091: Unknown result type (might be due to invalid IL or missing references)
			//IL_20a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_20ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_20b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_20bd: Expected O, but got Unknown
			//IL_20ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_20f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_2108: Unknown result type (might be due to invalid IL or missing references)
			//IL_210d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2117: Unknown result type (might be due to invalid IL or missing references)
			//IL_211e: Expected O, but got Unknown
			//IL_214d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2152: Unknown result type (might be due to invalid IL or missing references)
			//IL_2168: Unknown result type (might be due to invalid IL or missing references)
			//IL_216d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2177: Unknown result type (might be due to invalid IL or missing references)
			//IL_217e: Expected O, but got Unknown
			//IL_21b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_21b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_21ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_21d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_2202: Unknown result type (might be due to invalid IL or missing references)
			//IL_2208: Expected O, but got Unknown
			//IL_2223: Unknown result type (might be due to invalid IL or missing references)
			//IL_2229: Expected O, but got Unknown
			//IL_2244: Unknown result type (might be due to invalid IL or missing references)
			//IL_224a: Expected O, but got Unknown
			//IL_226c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2272: Expected O, but got Unknown
			//IL_2395: Unknown result type (might be due to invalid IL or missing references)
			//IL_239b: Expected O, but got Unknown
			//IL_23b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_23bc: Expected O, but got Unknown
			//IL_23d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_23dd: Expected O, but got Unknown
			//IL_23f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_23fe: Expected O, but got Unknown
			//IL_2419: Unknown result type (might be due to invalid IL or missing references)
			//IL_241f: Expected O, but got Unknown
			//IL_243a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2440: Expected O, but got Unknown
			//IL_245b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2461: Expected O, but got Unknown
			//IL_247c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2482: Expected O, but got Unknown
			//IL_249d: Unknown result type (might be due to invalid IL or missing references)
			//IL_24a3: Expected O, but got Unknown
			//IL_24bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_24c5: Expected O, but got Unknown
			//IL_24e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_24e7: Expected O, but got Unknown
			//IL_2503: Unknown result type (might be due to invalid IL or missing references)
			//IL_2509: Expected O, but got Unknown
			//IL_2525: Unknown result type (might be due to invalid IL or missing references)
			//IL_252b: Expected O, but got Unknown
			//IL_2547: Unknown result type (might be due to invalid IL or missing references)
			//IL_254d: Expected O, but got Unknown
			//IL_2571: Unknown result type (might be due to invalid IL or missing references)
			//IL_2578: Expected O, but got Unknown
			//IL_25ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_25b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_25c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_25cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_25d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_25df: Expected O, but got Unknown
			//IL_260f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2614: Unknown result type (might be due to invalid IL or missing references)
			//IL_262a: Unknown result type (might be due to invalid IL or missing references)
			//IL_262f: Unknown result type (might be due to invalid IL or missing references)
			//IL_263a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2641: Expected O, but got Unknown
			//IL_2677: Unknown result type (might be due to invalid IL or missing references)
			//IL_267c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2692: Unknown result type (might be due to invalid IL or missing references)
			//IL_2697: Unknown result type (might be due to invalid IL or missing references)
			//IL_26a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_26a9: Expected O, but got Unknown
			//IL_26de: Unknown result type (might be due to invalid IL or missing references)
			//IL_26e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_26f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_26fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_2709: Unknown result type (might be due to invalid IL or missing references)
			//IL_2710: Expected O, but got Unknown
			//IL_274a: Unknown result type (might be due to invalid IL or missing references)
			//IL_274f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2765: Unknown result type (might be due to invalid IL or missing references)
			//IL_276a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2775: Unknown result type (might be due to invalid IL or missing references)
			//IL_277c: Expected O, but got Unknown
			//IL_27bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_27c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_27d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_27db: Unknown result type (might be due to invalid IL or missing references)
			//IL_27ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_27f1: Expected O, but got Unknown
			//IL_2827: Unknown result type (might be due to invalid IL or missing references)
			//IL_282c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2842: Unknown result type (might be due to invalid IL or missing references)
			//IL_2847: Unknown result type (might be due to invalid IL or missing references)
			//IL_2852: Unknown result type (might be due to invalid IL or missing references)
			//IL_2859: Expected O, but got Unknown
			//IL_288f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2894: Unknown result type (might be due to invalid IL or missing references)
			//IL_28aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_28af: Unknown result type (might be due to invalid IL or missing references)
			//IL_28ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_28c1: Expected O, but got Unknown
			//IL_28f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_28fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_2911: Unknown result type (might be due to invalid IL or missing references)
			//IL_2916: Unknown result type (might be due to invalid IL or missing references)
			//IL_2922: Unknown result type (might be due to invalid IL or missing references)
			//IL_2929: Expected O, but got Unknown
			//IL_296d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2972: Unknown result type (might be due to invalid IL or missing references)
			//IL_2988: Unknown result type (might be due to invalid IL or missing references)
			//IL_298d: Unknown result type (might be due to invalid IL or missing references)
			//IL_299d: Unknown result type (might be due to invalid IL or missing references)
			//IL_29a4: Expected O, but got Unknown
			//IL_29da: Unknown result type (might be due to invalid IL or missing references)
			//IL_29df: Unknown result type (might be due to invalid IL or missing references)
			//IL_29f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_29fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a06: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a0d: Expected O, but got Unknown
			//IL_2a42: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a47: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a5d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a62: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a6e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a75: Expected O, but got Unknown
			//IL_2aae: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ab3: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ac9: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ace: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ade: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ae5: Expected O, but got Unknown
			//IL_2b1a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b1f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b35: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b3a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b6d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b73: Expected O, but got Unknown
			//IL_2b8e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b94: Expected O, but got Unknown
			//IL_2baf: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bb5: Expected O, but got Unknown
			//IL_2bd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bd6: Expected O, but got Unknown
			//IL_2bf1: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bf7: Expected O, but got Unknown
			//IL_2c12: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c18: Expected O, but got Unknown
			//IL_2c33: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c39: Expected O, but got Unknown
			//IL_2c54: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c5a: Expected O, but got Unknown
			//IL_2c75: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c7b: Expected O, but got Unknown
			//IL_2c97: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c9d: Expected O, but got Unknown
			//IL_2cb9: Unknown result type (might be due to invalid IL or missing references)
			//IL_2cbf: Expected O, but got Unknown
			//IL_2cdb: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ce1: Expected O, but got Unknown
			//IL_2df8: Unknown result type (might be due to invalid IL or missing references)
			//IL_2dfe: Expected O, but got Unknown
			//IL_2e19: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e1f: Expected O, but got Unknown
			//IL_2e3a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e40: Expected O, but got Unknown
			//IL_2e5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e61: Expected O, but got Unknown
			//IL_2e7c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e82: Expected O, but got Unknown
			//IL_2e9d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ea3: Expected O, but got Unknown
			//IL_2ebe: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ec4: Expected O, but got Unknown
			//IL_2edf: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ee5: Expected O, but got Unknown
			//IL_2f00: Unknown result type (might be due to invalid IL or missing references)
			//IL_2f06: Expected O, but got Unknown
			//IL_2f22: Unknown result type (might be due to invalid IL or missing references)
			//IL_2f28: Expected O, but got Unknown
			//IL_2f5f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2f66: Expected O, but got Unknown
			//IL_2f9c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2fa1: Unknown result type (might be due to invalid IL or missing references)
			//IL_2fb7: Unknown result type (might be due to invalid IL or missing references)
			//IL_2fbc: Unknown result type (might be due to invalid IL or missing references)
			//IL_2fc7: Unknown result type (might be due to invalid IL or missing references)
			//IL_2fce: Expected O, but got Unknown
			//IL_3004: Unknown result type (might be due to invalid IL or missing references)
			//IL_3009: Unknown result type (might be due to invalid IL or missing references)
			//IL_301f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3024: Unknown result type (might be due to invalid IL or missing references)
			//IL_302f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3036: Expected O, but got Unknown
			//IL_306c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3071: Unknown result type (might be due to invalid IL or missing references)
			//IL_3087: Unknown result type (might be due to invalid IL or missing references)
			//IL_308c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3097: Unknown result type (might be due to invalid IL or missing references)
			//IL_309e: Expected O, but got Unknown
			//IL_30d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_30d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_30ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_30f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_30ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_3106: Expected O, but got Unknown
			//IL_313c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3141: Unknown result type (might be due to invalid IL or missing references)
			//IL_3157: Unknown result type (might be due to invalid IL or missing references)
			//IL_315c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3167: Unknown result type (might be due to invalid IL or missing references)
			//IL_316e: Expected O, but got Unknown
			//IL_31a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_31a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_31bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_31c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_31cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_31d6: Expected O, but got Unknown
			//IL_3214: Unknown result type (might be due to invalid IL or missing references)
			//IL_3219: Unknown result type (might be due to invalid IL or missing references)
			//IL_322f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3234: Unknown result type (might be due to invalid IL or missing references)
			//IL_3243: Unknown result type (might be due to invalid IL or missing references)
			//IL_324a: Expected O, but got Unknown
			//IL_327f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3284: Unknown result type (might be due to invalid IL or missing references)
			//IL_329a: Unknown result type (might be due to invalid IL or missing references)
			//IL_329f: Unknown result type (might be due to invalid IL or missing references)
			//IL_32aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_32b1: Expected O, but got Unknown
			//IL_32f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_32fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_3310: Unknown result type (might be due to invalid IL or missing references)
			//IL_3315: Unknown result type (might be due to invalid IL or missing references)
			//IL_3325: Unknown result type (might be due to invalid IL or missing references)
			//IL_332c: Expected O, but got Unknown
			//IL_335c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3361: Unknown result type (might be due to invalid IL or missing references)
			//IL_3377: Unknown result type (might be due to invalid IL or missing references)
			//IL_337c: Unknown result type (might be due to invalid IL or missing references)
			//IL_33ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_33b4: Expected O, but got Unknown
			//IL_3447: Unknown result type (might be due to invalid IL or missing references)
			//IL_3581: Unknown result type (might be due to invalid IL or missing references)
			//IL_3587: Expected O, but got Unknown
			//IL_35a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_35a8: Expected O, but got Unknown
			//IL_35c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_35c9: Expected O, but got Unknown
			//IL_35e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_35ea: Expected O, but got Unknown
			//IL_3605: Unknown result type (might be due to invalid IL or missing references)
			//IL_360b: Expected O, but got Unknown
			//IL_3626: Unknown result type (might be due to invalid IL or missing references)
			//IL_362c: Expected O, but got Unknown
			//IL_3647: Unknown result type (might be due to invalid IL or missing references)
			//IL_364d: Expected O, but got Unknown
			//IL_3668: Unknown result type (might be due to invalid IL or missing references)
			//IL_366e: Expected O, but got Unknown
			//IL_3689: Unknown result type (might be due to invalid IL or missing references)
			//IL_368f: Expected O, but got Unknown
			//IL_36ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_36b1: Expected O, but got Unknown
			//IL_36cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_36d3: Expected O, but got Unknown
			//IL_36ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_36f5: Expected O, but got Unknown
			//IL_3711: Unknown result type (might be due to invalid IL or missing references)
			//IL_3717: Expected O, but got Unknown
			//IL_3733: Unknown result type (might be due to invalid IL or missing references)
			//IL_3739: Expected O, but got Unknown
			//IL_3755: Unknown result type (might be due to invalid IL or missing references)
			//IL_375b: Expected O, but got Unknown
			//IL_3777: Unknown result type (might be due to invalid IL or missing references)
			//IL_377d: Expected O, but got Unknown
			//IL_3799: Unknown result type (might be due to invalid IL or missing references)
			//IL_379f: Expected O, but got Unknown
			//IL_37bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_37c1: Expected O, but got Unknown
			//IL_37dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_37e3: Expected O, but got Unknown
			//IL_37ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_3805: Expected O, but got Unknown
			//IL_3821: Unknown result type (might be due to invalid IL or missing references)
			//IL_3827: Expected O, but got Unknown
			//IL_385e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3865: Expected O, but got Unknown
			//IL_389b: Unknown result type (might be due to invalid IL or missing references)
			//IL_38a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_38b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_38bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_38c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_38cd: Expected O, but got Unknown
			//IL_3906: Unknown result type (might be due to invalid IL or missing references)
			//IL_390b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3921: Unknown result type (might be due to invalid IL or missing references)
			//IL_3926: Unknown result type (might be due to invalid IL or missing references)
			//IL_3935: Unknown result type (might be due to invalid IL or missing references)
			//IL_393c: Expected O, but got Unknown
			//IL_3971: Unknown result type (might be due to invalid IL or missing references)
			//IL_3976: Unknown result type (might be due to invalid IL or missing references)
			//IL_398c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3991: Unknown result type (might be due to invalid IL or missing references)
			//IL_399c: Unknown result type (might be due to invalid IL or missing references)
			//IL_39a3: Expected O, but got Unknown
			//IL_39d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_39de: Unknown result type (might be due to invalid IL or missing references)
			//IL_39f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_39f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a04: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a0b: Expected O, but got Unknown
			//IL_3a3b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a40: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a56: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a66: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a6d: Expected O, but got Unknown
			//IL_3aa3: Unknown result type (might be due to invalid IL or missing references)
			//IL_3aa8: Unknown result type (might be due to invalid IL or missing references)
			//IL_3abe: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ac3: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ace: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ad5: Expected O, but got Unknown
			//IL_3b0b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b10: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b26: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b2b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b36: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b3d: Expected O, but got Unknown
			//IL_3b72: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b77: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b92: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b9d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ba4: Expected O, but got Unknown
			//IL_3bd7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bdc: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bf2: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bf7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c03: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c0a: Expected O, but got Unknown
			//IL_3c3f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c44: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c5a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c5f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c6b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c72: Expected O, but got Unknown
			//IL_3ca2: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ca7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cbd: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cc2: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cce: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cd5: Expected O, but got Unknown
			//IL_3d05: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d0a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d20: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d25: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d31: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d38: Expected O, but got Unknown
			//IL_3d6d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d72: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d88: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d99: Unknown result type (might be due to invalid IL or missing references)
			//IL_3da0: Expected O, but got Unknown
			//IL_3dd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_3dd5: Unknown result type (might be due to invalid IL or missing references)
			//IL_3deb: Unknown result type (might be due to invalid IL or missing references)
			//IL_3df0: Unknown result type (might be due to invalid IL or missing references)
			//IL_3dfc: Unknown result type (might be due to invalid IL or missing references)
			//IL_3e03: Expected O, but got Unknown
			//IL_3e39: Unknown result type (might be due to invalid IL or missing references)
			//IL_3e3e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3e54: Unknown result type (might be due to invalid IL or missing references)
			//IL_3e59: Unknown result type (might be due to invalid IL or missing references)
			//IL_3e65: Unknown result type (might be due to invalid IL or missing references)
			//IL_3e6c: Expected O, but got Unknown
			//IL_3ea1: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ea6: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ebc: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ec1: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ecd: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ed4: Expected O, but got Unknown
			//IL_3f0a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f0f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f25: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f2a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f36: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f3d: Expected O, but got Unknown
			//IL_3f72: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f77: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f92: Unknown result type (might be due to invalid IL or missing references)
			//IL_3f9e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3fa5: Expected O, but got Unknown
			//IL_3fda: Unknown result type (might be due to invalid IL or missing references)
			//IL_3fdf: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ff5: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ffa: Unknown result type (might be due to invalid IL or missing references)
			//IL_4006: Unknown result type (might be due to invalid IL or missing references)
			//IL_400d: Expected O, but got Unknown
			//IL_4042: Unknown result type (might be due to invalid IL or missing references)
			//IL_4047: Unknown result type (might be due to invalid IL or missing references)
			//IL_405d: Unknown result type (might be due to invalid IL or missing references)
			//IL_4062: Unknown result type (might be due to invalid IL or missing references)
			//IL_406e: Unknown result type (might be due to invalid IL or missing references)
			//IL_4075: Expected O, but got Unknown
			//IL_40a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_40aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_40c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_40c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_40de: Unknown result type (might be due to invalid IL or missing references)
			//IL_40e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_4118: Unknown result type (might be due to invalid IL or missing references)
			//IL_411e: Expected O, but got Unknown
			//IL_4139: Unknown result type (might be due to invalid IL or missing references)
			//IL_413f: Expected O, but got Unknown
			//IL_415a: Unknown result type (might be due to invalid IL or missing references)
			//IL_4160: Expected O, but got Unknown
			//IL_417b: Unknown result type (might be due to invalid IL or missing references)
			//IL_4181: Expected O, but got Unknown
			//IL_419c: Unknown result type (might be due to invalid IL or missing references)
			//IL_41a2: Expected O, but got Unknown
			//IL_41bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_41c3: Expected O, but got Unknown
			//IL_41de: Unknown result type (might be due to invalid IL or missing references)
			//IL_41e4: Expected O, but got Unknown
			//IL_41ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_4205: Expected O, but got Unknown
			//IL_4220: Unknown result type (might be due to invalid IL or missing references)
			//IL_4226: Expected O, but got Unknown
			//IL_4242: Unknown result type (might be due to invalid IL or missing references)
			//IL_4248: Expected O, but got Unknown
			comment = "------------------------------------------";
			comment = "Medieval+";
			comment = "------------------------------------------";
			if (unit.Entity.Name == "Scavenger")
			{
				SLMATool.UnitCost(unit, 250);
				unit.UnitBase = UPool.MyPool.GetObject("Scavenger_Unit_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Farmer Death Vocals/Pitchfork");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Farmer Death Vocals/Pitchfork");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.65f);
				unit.health = 150f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 0.5f;
				unit.movementSpeedMuiltiplier = 1.25f;
				unit.LeftWeapon = UPool.MyPool.GetObject("MantisScythe");
				unit.RightWeapon = UPool.MyPool.GetObject("MantisScythe");
				unit.m_props = (GameObject[])(object)new GameObject[10]
				{
					(GameObject)SLMALoader.SDic["clothes"]["SpawnEyes_DarkPeasant"],
					(GameObject)SLMALoader.SDic["clothes"]["ScarecrowHat"],
					(GameObject)SLMALoader.SDic["clothes"]["sporty_top001"],
					(GameObject)SLMALoader.SDic["clothes"]["Viking_Wrist002"],
					(GameObject)SLMALoader.SDic["clothes"]["western_gloves003"],
					(GameObject)SLMALoader.SDic["clothes"]["spooky_necromancer_shoes001"],
					(GameObject)SLMALoader.SDic["clothes"]["legacy_darkpeasant_shoes001"],
					(GameObject)SLMALoader.SDic["clothes"]["evil_cleric_socks001"],
					(GameObject)SLMALoader.SDic["clothes"]["Farmer_Shirt001"],
					(GameObject)SLMALoader.SDic["clothes"]["Farmer_Skirt001"]
				};
				PropItemData[] array = (PropItemData[])(object)new PropItemData[10];
				PropItemData val = new PropItemData();
				val.m_colors = new int[4] { 40, 49, 40, 49 };
				val.m_isTeamColor = new bool[4];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[0] = val;
				int num = 1;
				PropItemData val2 = new PropItemData();
				val2.m_colors = new int[3] { 53, 0, 60 };
				val2.m_isTeamColor = new bool[3] { false, true, false };
				val2.m_positionOffset = new Vector3(0f, 0f, 0f);
				val2.m_scale = new Vector3(1f, 1f, 1f);
				array[num] = val2;
				int num2 = 2;
				val2 = new PropItemData();
				val2.m_colors = new int[5] { 62, 62, 0, 62, 62 };
				val2.m_isTeamColor = new bool[5] { false, false, true, false, false };
				val2.m_positionOffset = new Vector3(0f, 0f, 0f);
				val2.m_scale = new Vector3(1f, 1f, 1f);
				array[num2] = val2;
				val = new PropItemData();
				val.m_colors = new int[2] { 63, 60 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[3] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 63, 60 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[4] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 60, 53 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[5] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 63 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[6] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 53, 53 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[7] = val;
				int num3 = 8;
				val2 = new PropItemData();
				val2.m_colors = new int[5] { 53, 0, 6, 74, 62 };
				val2.m_isTeamColor = new bool[5] { false, true, true, false, false };
				val2.m_positionOffset = new Vector3(0f, 0f, 0f);
				val2.m_scale = new Vector3(1f, 1f, 1f);
				array[num3] = val2;
				val = new PropItemData();
				val.m_colors = new int[1];
				val.m_isTeamColor = new bool[1] { true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[9] = val;
				unit.m_propData = array;
				unit.MovementComponents = new List<IMovementComponent> { (IMovementComponent)(object)default(NeverStopRunning) };
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[1] { UPool.MyPool.GetObject("Move_Scavenge") };
			}
			if (unit.Entity.Name == "Pavise Crossbowman")
			{
				SLMATool.UnitCost(unit, 500);
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Reinassance Attack Vocals/Musket");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Reinassance Death Vocals/Musket");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.75f);
				unit.health = 150f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 1f;
				unit.balanceMultiplier = 100f;
				unit.removeCloseRangeMiss = true;
				unit.holdinigWithTwoHands = true;
				unit.RightWeapon = UPool.MyPool.GetObject("PaviseCrossbow");
				unit.m_props = (GameObject[])(object)new GameObject[11]
				{
					(GameObject)SLMALoader.SDic["clothes"]["legacy_flagbearer_hat002"],
					(GameObject)SLMALoader.SDic["clothes"]["SpawnEyes_SuperBoxer"],
					(GameObject)SLMALoader.SDic["clothes"]["Ancient_Beard001"],
					(GameObject)SLMALoader.SDic["clothes"]["legacy_poacher_quiver001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_ShoulderPad003"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_ShoulderPad003"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Knight_Cape"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Shirt001"],
					(GameObject)SLMALoader.SDic["clothes"]["wilnyl_Gloves001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Pants003"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Shoes002"]
				};
				PropItemData[] array2 = (PropItemData[])(object)new PropItemData[11];
				int num4 = 0;
				PropItemData val3 = new PropItemData();
				val3.m_colors = new int[3] { 2, 0, 53 };
				val3.m_isTeamColor = new bool[3] { true, true, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num4] = val3;
				PropItemData val = new PropItemData();
				val.m_colors = new int[4] { 40, 49, 40, 49 };
				val.m_isTeamColor = new bool[4];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(0.8138043f, 0.6305151f, 1f);
				array2[1] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 63 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[2] = val;
				int num5 = 3;
				val3 = new PropItemData();
				val3.m_colors = new int[4] { 63, 3, 53, 73 };
				val3.m_isTeamColor = new bool[4] { false, true, false, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num5] = val3;
				val = new PropItemData();
				val.m_colors = new int[1] { 2 };
				val.m_isTeamColor = new bool[1] { true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				val.m_equip = (EquipType)1;
				array2[4] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 73 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0.02932632f, -0.04398942f, 0f);
				val.m_scale = new Vector3(1.334274f, 1.16572f, 0.9383693f);
				val.m_equip = (EquipType)1;
				array2[5] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 6 };
				val.m_isTeamColor = new bool[1] { true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[6] = val;
				int num6 = 7;
				val3 = new PropItemData();
				val3.m_colors = new int[2] { -1, 0 };
				val3.m_isTeamColor = new bool[2] { false, true };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num6] = val3;
				val = new PropItemData();
				val.m_colors = new int[1] { 63 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[8] = val;
				int num7 = 9;
				val3 = new PropItemData();
				val3.m_colors = new int[3] { 2, -1, 52 };
				val3.m_isTeamColor = new bool[3] { true, false, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num7] = val3;
				val = new PropItemData();
				val.m_colors = new int[1] { 62 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[10] = val;
				unit.m_propData = array2;
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[1] { UPool.MyPool.GetObject("Move_Pavise") };
			}
			if (unit.Entity.Name == "Truth Archivist")
			{
				SLMATool.UnitCost(unit, 750);
				unit.UnitBase = UPool.MyPool.GetObject("TruthArchivist_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Misc Attack Vocals/Poacher");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Misc Death Vocals/Poacher");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0f);
				unit.health = 500f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.balanceMultiplier = 10f;
				unit.balanceForceMultiplier = 10f;
				unit.removeCloseRangeMiss = true;
				unit.movementSpeedMuiltiplier = 1.5f;
				unit.LeftWeapon = UPool.MyPool.GetObject("ShadowDagger");
				unit.RightWeapon = UPool.MyPool.GetObject("ShadowDagger");
				unit.m_props = (GameObject[])(object)new GameObject[3]
				{
					UPool.MyPool.GetObject("ShadowyAura"),
					UPool.MyPool.GetObject("TruthArchivistRobe"),
					UPool.MyPool.GetObject("TruthArchivistRobeShadowAura")
				};
				unit.MovementComponents = new List<IMovementComponent> { (IMovementComponent)(object)default(NeverStopRunning) };
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[3]
				{
					UPool.MyPool.GetObject("Move_ArchivedLies"),
					(GameObject)SLMALoader.SDic["moves"]["Head_up"],
					(GameObject)SLMALoader.SDic["moves"]["Boxer_Dodge"]
				};
			}
			if (unit.Entity.Name == "Battering Ram Rider")
			{
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Misc Attack Vocals/Poacher");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Misc Death Vocals/Poacher");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)1.25f);
				unit.health = 400f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.holdinigWithTwoHands = true;
				unit.RightWeapon = UPool.MyPool.GetObject("PulleyBow");
				unit.m_props = (GameObject[])(object)new GameObject[6]
				{
					(GameObject)SLMALoader.SDic["clothes"]["Farmer_Hat003"],
					(GameObject)SLMALoader.SDic["clothes"]["ScarecrowPants"],
					(GameObject)SLMALoader.SDic["clothes"]["asia_chukonu_quiver001"],
					(GameObject)SLMALoader.SDic["clothes"]["ScarecrowShoes"],
					(GameObject)SLMALoader.SDic["clothes"]["Evil_DarkKingTorso002"],
					(GameObject)SLMALoader.SDic["clothes"]["legacy_barrelroller_wrist001"]
				};
				PropItemData[] array3 = (PropItemData[])(object)new PropItemData[6];
				int num8 = 0;
				PropItemData val4 = new PropItemData();
				val4.m_colors = new int[2] { 60, 0 };
				val4.m_isTeamColor = new bool[2] { false, true };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num8] = val4;
				int num9 = 1;
				val4 = new PropItemData();
				val4.m_colors = new int[6] { 43, 60, 72, 73, 6, 63 };
				val4.m_isTeamColor = new bool[6] { false, false, false, false, true, false };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num9] = val4;
				int num10 = 2;
				val4 = new PropItemData();
				val4.m_colors = new int[3] { 63, 0, 43 };
				val4.m_isTeamColor = new bool[3] { false, true, false };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num10] = val4;
				int num11 = 3;
				val4 = new PropItemData();
				val4.m_colors = new int[3] { 0, 63, 60 };
				val4.m_isTeamColor = new bool[3] { true, false, false };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num11] = val4;
				int num12 = 4;
				val4 = new PropItemData();
				val4.m_colors = new int[5] { 76, 0, 61, 63, 63 };
				val4.m_isTeamColor = new bool[5] { false, true, false, false, false };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num12] = val4;
				PropItemData val = new PropItemData();
				val.m_colors = new int[1] { 61 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array3[5] = val;
				unit.m_propData = array3;
			}
			if (unit.Entity.Name == "Battering Ram")
			{
				SLMATool.UnitCost(unit, 1200);
				unit.UnitBase = UPool.MyPool.GetObject("BatteringRam_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Medieval Attack Vocals/Catapult");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Medieval Death Vocals/Catapult");
				s.SetField<UnitBlueprint>(unit, "footRef", (object)"Footsteps/Big");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)1f);
				unit.health = 1500f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 25f;
				s.SetField<UnitBlueprint>(unit, "Riders", (object)new UnitBlueprint[3]
				{
					(UnitBlueprint)SLMATool.SLMADic["Battering Ram Rider"],
					(UnitBlueprint)SLMATool.SLMADic["Battering Ram Rider"],
					(UnitBlueprint)SLMATool.SLMADic["Battering Ram Rider"]
				});
			}
			if (unit.Entity.Name == "Rook")
			{
				SLMATool.UnitCost(unit, 1400);
				unit.UnitBase = UPool.MyPool.GetObject("Rook_UnitBase");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Legacy Attack Vocals/Wizard");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Legacy Death Vocals/Wizard");
				s.SetField<UnitBlueprint>(unit, "footRef", (object)"Footsteps/IceGiant");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.65f);
				unit.health = 2000f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 25f;
				unit.balanceMultiplier = 2f;
				unit.balanceForceMultiplier = 2f;
				unit.movementSpeedMuiltiplier = 0f;
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[2]
				{
					UPool.MyPool.GetObject("Move_CompactTower"),
					UPool.MyPool.GetObject("Move_LanePush")
				};
			}
			if (unit.Entity.Name == "Queen")
			{
				SLMATool.UnitCost(unit, 1500);
				unit.UnitBase = UPool.MyPool.GetObject("QueenUnit_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Reinassance Attack Vocals/PaintBrush");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Reinassance Death Vocals/PaintBrush");
				s.SetField<UnitBlueprint>(unit, "footRef", (object)"Footsteps/Big");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)1.2f);
				unit.health = 2000f;
				unit.maxSizeRandom = 1.2f;
				unit.minSizeRandom = 1.2f;
				unit.sizeMultiplier = 1.2f;
				unit.massMultiplier = 10f;
				unit.balanceMultiplier = 1f;
				unit.balanceForceMultiplier = 1f;
				unit.removeCloseRangeMiss = true;
				unit.holdinigWithTwoHands = false;
				unit.LeftWeapon = UPool.MyPool.GetObject("RoyaleArcaneStaff");
				unit.RightWeapon = UPool.MyPool.GetObject("QueenExecutionHandaxe");
				unit.m_props =