Decompiled source of ZombieMod v4.0.6

ZombieFull.dll

Decompiled a week 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 HarmonyLib;
using Landfall.TABS;
using Landfall.TABS.AI;
using Landfall.TABS.AI.Components.Modifiers;
using Landfall.TABS.AI.Components.Tags;
using Landfall.TABS.AI.Systems;
using Microsoft.CodeAnalysis;
using SLMA;
using TFBGames;
using Unity.Entities;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Rendering;
using Zombie;
using ZombieFull.Zombie;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("Zombification_Fern")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Zombification_Fern")]
[assembly: AssemblyCopyright("Copyright ©  2020")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("33906069-5a67-4c29-bc50-0aba1f53a497")]
[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.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
[BepInPlugin("org.bepinex.plugins.ZombieFull", "ZombieFull", "2.0.0")]
internal class Loader : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0023: Unknown result type (might be due to invalid IL or missing references)
		//IL_0028: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Expected O, but got Unknown
		//IL_0029: Unknown result type (might be due to invalid IL or missing references)
		//IL_0033: Expected O, but got Unknown
		//IL_0033: Unknown result type (might be due to invalid IL or missing references)
		Debug.Log((object)"[ZombieFull] 运行核心!");
		Debug.Log((object)"[ZombieFull] 基于 fern 原版僵尸 mod 的全兵种复刻");
		Debug.Log((object)"[ZombieFull] 核心基于 SLMAcore");
		GameObject val = new GameObject("ZombieFull");
		Object.DontDestroyOnLoad((Object)val);
		val.AddComponent<Main>();
		val.AddComponent<ZombieInfectionRateHotkey>();
	}
}
[BepInPlugin("org.bepinex.plugins.ZombieFull", "ZombieFull", "2.0.0")]
public class Main : BaseUnityPlugin
{
	public LandfallUnitDatabase db;

	public void Awake()
	{
		Debug.Log((object)"[ZombieFull] loading...");
		SLMALoader.GetInstance();
		try
		{
			UManager.Init(ContentDatabase.Instance().LandfallContentDatabase);
			Debug.Log((object)"[ZombieFull] UManager.Init complete.");
		}
		catch (Exception ex)
		{
			Debug.LogError((object)("[ZombieFull] UManager.Init FAILED: " + ex));
			throw;
		}
		Debug.Log((object)"[ZombieFull] Loaded Successfully");
	}
}
public class MotherSummon : MonoBehaviour
{
	public static UnitBlueprint ZombieBlueprint;

	public static float GlobalCooldown;

	private static float globalCooldownRemaining;

	public UnitBlueprint blueprintOverride;

	public int totalSpawns;

	public float interval;

	public float startDelay;

	public float detectRadius = 30f;

	public LayerMask enemyLayerMask = LayerMask.op_Implicit(-1);

	private Unit unit;

	private float startDelayCounter;

	private float cdCounter;

	private int spawned;

	private float detectTimer;

	private float enemyScanTimer;

	private bool enemySeen;

	private const float EnemyScanInterval = 0.25f;

	private readonly List<GameObject> summoned = new List<GameObject>();

	private static bool battleStateProbed;

	private static MemberInfo battleStateMember;

	private void Start()
	{
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_001d: Expected O, but got Unknown
		//IL_0053: Unknown result type (might be due to invalid IL or missing references)
		//IL_005e: Expected O, but got Unknown
		unit = ((Component)this).GetComponent<Unit>();
		if ((Object)unit == (Object)null)
		{
			unit = ((Component)this).GetComponentInParent<Unit>();
		}
		startDelayCounter = 0f;
		cdCounter = 0f;
		spawned = 0;
		Debug.Log((object)("[Zombie] MotherSummon.Start unit=" + (((Object)unit != (Object)null) ? ((Object)((Component)unit).gameObject).name : "NULL") + " blueprint=" + (((Object)(object)ZombieBlueprint != (Object)null) ? ((Object)ZombieBlueprint).name : "NULL")));
	}

	private void Update()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Expected O, but got Unknown
		//IL_002c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0037: Expected O, but got Unknown
		//IL_0068: Unknown result type (might be due to invalid IL or missing references)
		//IL_0073: Expected O, but got Unknown
		if ((Object)unit == (Object)null || (Object)(object)EffectiveBlueprint() == (Object)null || (Object)unit.data == (Object)null || unit.data.Dead)
		{
			return;
		}
		for (int num = summoned.Count - 1; num >= 0; num--)
		{
			if ((Object)summoned[num] == (Object)null)
			{
				summoned.RemoveAt(num);
			}
		}
		if (totalSpawns > 0 && spawned >= totalSpawns)
		{
			return;
		}
		if (!HasEngaged())
		{
			startDelayCounter = 0f;
			cdCounter = 0f;
			return;
		}
		startDelayCounter += Time.deltaTime;
		if (!(startDelayCounter < startDelay))
		{
			cdCounter += Time.deltaTime;
			if (!(cdCounter < interval))
			{
				cdCounter = 0f;
				spawned++;
				SpawnZombie();
			}
		}
	}

	private bool HasEngaged()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Expected O, but got Unknown
		//IL_0089: Unknown result type (might be due to invalid IL or missing references)
		//IL_0094: Expected O, but got Unknown
		//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a7: Expected O, but got Unknown
		//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b3: Expected O, but got Unknown
		//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c8: Expected O, but got Unknown
		//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00eb: Expected O, but got Unknown
		try
		{
			if ((Object)unit == (Object)null || (Object)(object)unit.data == (Object)null)
			{
				return false;
			}
			if (IsBattleActive())
			{
				return true;
			}
			if ((Object)(object)unit.data.healthHandler != (Object)null && unit.data.health < unit.data.maxHealth)
			{
				return true;
			}
			WeaponHandler weaponHandler = unit.WeaponHandler;
			if ((Object)weaponHandler != (Object)null)
			{
				Weapon val = (Weapon)s.GetField<WeaponHandler>(weaponHandler, "activeWeapon");
				if ((Object)val != (Object)null)
				{
					MeleeWeapon val2 = (MeleeWeapon)(object)((val is MeleeWeapon) ? val : null);
					if ((Object)val2 != (Object)null && val2.isSwinging)
					{
						return true;
					}
					RangeWeapon val3 = (RangeWeapon)(object)((val is RangeWeapon) ? val : null);
					if ((Object)val3 != (Object)null && val3.allowedToFire)
					{
						return true;
					}
				}
			}
		}
		catch (Exception ex)
		{
			Debug.LogWarning((object)("[Zombie] MotherSummon.HasEngaged 异常: " + ex.Message));
		}
		return false;
	}

	private static bool IsBattleActive()
	{
		if (!battleStateProbed)
		{
			battleStateProbed = true;
			battleStateMember = FindBattleStateMember();
		}
		if (battleStateMember == null)
		{
			return false;
		}
		try
		{
			PropertyInfo propertyInfo = battleStateMember as PropertyInfo;
			if (propertyInfo != null)
			{
				MethodInfo getMethod = propertyInfo.GetGetMethod(nonPublic: true);
				if (getMethod == null)
				{
					return false;
				}
				object obj = (getMethod.IsStatic ? null : Object.FindObjectOfType(propertyInfo.DeclaringType));
				if (!getMethod.IsStatic && obj == null)
				{
					return false;
				}
				return (bool)propertyInfo.GetValue(obj, null);
			}
			FieldInfo fieldInfo = battleStateMember as FieldInfo;
			if (fieldInfo != null)
			{
				object obj2 = (fieldInfo.IsStatic ? null : Object.FindObjectOfType(fieldInfo.DeclaringType));
				if (!fieldInfo.IsStatic && obj2 == null)
				{
					return false;
				}
				return (bool)fieldInfo.GetValue(obj2);
			}
		}
		catch (Exception)
		{
		}
		return false;
	}

	private static MemberInfo FindBattleStateMember()
	{
		Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
		for (int i = 0; i < assemblies.Length; i++)
		{
			Type[] types;
			try
			{
				types = assemblies[i].GetTypes();
			}
			catch (Exception)
			{
				continue;
			}
			foreach (Type type in types)
			{
				if (!(type == null) && !(type.Name != "GameStateManager"))
				{
					PropertyInfo property = type.GetProperty("isBattleState", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
					if (property != null && property.PropertyType == typeof(bool))
					{
						Debug.Log((object)("[Zombie] battle state source: " + type.FullName + ".isBattleState"));
						return property;
					}
					FieldInfo field = type.GetField("m_inBattleState", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
					if (field != null && field.FieldType == typeof(bool))
					{
						Debug.Log((object)("[Zombie] battle state source: " + type.FullName + ".m_inBattleState"));
						return field;
					}
				}
			}
		}
		Debug.Log((object)"[Zombie] battle state source: NOT FOUND (fallback to damage/weapon checks)");
		return null;
	}

	private UnitBlueprint EffectiveBlueprint()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Expected O, but got Unknown
		if ((Object)blueprintOverride != (Object)null)
		{
			return blueprintOverride;
		}
		return ZombieBlueprint;
	}

	private void SpawnZombie()
	{
		//IL_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_0039: Unknown result type (might be due to invalid IL or missing references)
		//IL_003e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0048: Unknown result type (might be due to invalid IL or missing references)
		//IL_004d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0065: Unknown result type (might be due to invalid IL or missing references)
		//IL_007a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0090: Unknown result type (might be due to invalid IL or missing references)
		//IL_0095: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ce: Expected O, but got Unknown
		try
		{
			Vector3 val = unit.data.mainRig.position + ((Component)unit.data.mainRig).transform.forward * 2f + Random.insideUnitSphere * 1f;
			val.y = unit.data.mainRig.position.y;
			GameObject val2 = EffectiveBlueprint().Spawn(val, Quaternion.LookRotation(((Component)unit.data.mainRig).transform.forward), unit.Team, 1f, (UnitPoolInfo?)null)[0];
			Unit component = val2.GetComponent<Unit>();
			if ((Object)component != (Object)null)
			{
				component.data.fallTime = 0.3f;
			}
			summoned.Add(val2);
			Debug.Log((object)("[ZombieFull] 召唤了 " + ((Object)EffectiveBlueprint()).name + " (" + spawned + "/" + totalSpawns + ")"));
		}
		catch (Exception ex)
		{
			Debug.LogError((object)("[Zombie] 母体召唤失败: " + ex));
		}
	}
}
public class MotherZombie : MonoBehaviour
{
	public void Start()
	{
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_0091: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0121: Unknown result type (might be due to invalid IL or missing references)
		//IL_0151: Unknown result type (might be due to invalid IL or missing references)
		//IL_0181: Unknown result type (might be due to invalid IL or missing references)
		//IL_01b1: Unknown result type (might be due to invalid IL or missing references)
		//IL_01e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0212: Unknown result type (might be due to invalid IL or missing references)
		Unit component = ((Component)this).GetComponent<Unit>();
		((Component)component).gameObject.GetComponentInChildren<Unit>().unitType = (UnitType)1;
		Balance componentInChildren = ((Component)component).gameObject.GetComponentInChildren<Balance>();
		componentInChildren.forceMultiplier *= 1.5f;
		Balance componentInChildren2 = ((Component)component).gameObject.GetComponentInChildren<Balance>();
		componentInChildren2.allowedLegAngle *= 2f;
		Balance componentInChildren3 = ((Component)component).gameObject.GetComponentInChildren<Balance>();
		componentInChildren3.allowedTorsoAngle *= 2f;
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[0]).transform.localScale = new Vector3(3f, 3f, 3f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[2]).transform.localScale = new Vector3(3f, 1.15f, 3.5f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[1]).transform.localScale = new Vector3(3f, 1.15f, 3.5f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[3]).transform.localScale = new Vector3(3f, 3f, 1f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[5]).transform.localScale = new Vector3(3f, 3f, 1f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[7]).transform.localScale = new Vector3(3f, 1.15f, 3.5f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[8]).transform.localScale = new Vector3(3f, 1.15f, 3.5f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[9]).transform.localScale = new Vector3(3f, 1.15f, 3.5f);
		((Component)((Component)component).gameObject.GetComponentInChildren<RigidbodyHolder>().AllRigs[10]).transform.localScale = new Vector3(3f, 1.15f, 3.5f);
	}
}
public class SkeletonZombieColor : MonoBehaviour
{
	public static Material GreenMaterial;

	private bool greenApplied;

	private int retryFrames;

	private void Awake()
	{
		greenApplied = TryApplyZombieGreen();
	}

	private void OnEnable()
	{
		if (!greenApplied)
		{
			greenApplied = TryApplyZombieGreen();
		}
	}

	private void Start()
	{
		if (!greenApplied)
		{
			greenApplied = TryApplyZombieGreen();
		}
	}

	private void LateUpdate()
	{
		if (!greenApplied && retryFrames < 12)
		{
			retryFrames++;
			greenApplied = TryApplyZombieGreen();
		}
	}

	private bool TryApplyZombieGreen()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		//IL_0010: Expected O, but got Unknown
		//IL_0045: Unknown result type (might be due to invalid IL or missing references)
		//IL_0050: Expected O, but got Unknown
		//IL_0093: Unknown result type (might be due to invalid IL or missing references)
		//IL_009e: Expected O, but got Unknown
		//IL_0166: Unknown result type (might be due to invalid IL or missing references)
		//IL_0171: Expected O, but got Unknown
		//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b6: Expected O, but got Unknown
		//IL_00b6: Expected O, but got Unknown
		//IL_01b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ba: Unknown result type (might be due to invalid IL or missing references)
		//IL_01c4: Expected O, but got Unknown
		//IL_01c4: Expected O, but got Unknown
		if ((Object)GreenMaterial == (Object)null)
		{
			return false;
		}
		Renderer[] componentsInChildren = ((Component)this).GetComponentsInChildren<Renderer>(true);
		if (componentsInChildren == null || componentsInChildren.Length == 0)
		{
			return false;
		}
		Dictionary<Material, int> dictionary = new Dictionary<Material, int>();
		Dictionary<Renderer, Material[]> dictionary2 = new Dictionary<Renderer, Material[]>();
		Renderer[] array = componentsInChildren;
		foreach (Renderer val in array)
		{
			if ((Object)val == (Object)null)
			{
				continue;
			}
			Material[] sharedMaterials = val.sharedMaterials;
			if (sharedMaterials == null || sharedMaterials.Length == 0)
			{
				continue;
			}
			dictionary2[val] = (Material[])sharedMaterials.Clone();
			Material[] array2 = sharedMaterials;
			foreach (Material val2 in array2)
			{
				if (!((Object)val2 == (Object)null) && !((Object)val2 == (Object)GreenMaterial))
				{
					if (dictionary.ContainsKey(val2))
					{
						dictionary[val2]++;
					}
					else
					{
						dictionary.Add(val2, 1);
					}
				}
			}
		}
		if (dictionary.Count == 0)
		{
			return dictionary2.Count > 0;
		}
		Material val3 = null;
		int num = 0;
		foreach (KeyValuePair<Material, int> item in dictionary)
		{
			if (item.Value > num)
			{
				num = item.Value;
				val3 = item.Key;
			}
		}
		if ((Object)val3 == (Object)null)
		{
			return false;
		}
		bool result = false;
		foreach (KeyValuePair<Renderer, Material[]> item2 in dictionary2)
		{
			Renderer key = item2.Key;
			Material[] array3 = (Material[])item2.Value.Clone();
			bool flag = false;
			for (int k = 0; k < array3.Length; k++)
			{
				if ((Object)array3[k] == (Object)val3)
				{
					array3[k] = GreenMaterial;
					flag = true;
					result = true;
				}
			}
			if (flag)
			{
				key.sharedMaterials = array3;
			}
		}
		return result;
	}
}
public static class STools
{
	public static void SafeSetColor(Material mat, Color color)
	{
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		//IL_000c: Expected O, but got Unknown
		//IL_0022: Unknown result type (might be due to invalid IL or missing references)
		//IL_003c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0056: Unknown result type (might be due to invalid IL or missing references)
		if (!((Object)mat == (Object)null))
		{
			if (mat.HasProperty("_Color"))
			{
				mat.SetColor("_Color", color);
			}
			else if (mat.HasProperty("_BaseColor"))
			{
				mat.SetColor("_BaseColor", color);
			}
			else if (mat.HasProperty("_TintColor"))
			{
				mat.SetColor("_TintColor", color);
			}
		}
	}

	public static void RendererColorChanger(Renderer[] renderers, Color color)
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		for (int i = 0; i < renderers.Length; i++)
		{
			Material[] materials = renderers[i].materials;
			for (int j = 0; j < materials.Length; j++)
			{
				SafeSetColor(materials[j], color);
			}
		}
	}

	public static List<T> ToList<T>(T[] ts)
	{
		List<T> list = new List<T>();
		foreach (T item in ts)
		{
			list.Add(item);
		}
		return list;
	}

	public static void RendererColorChanger(MeshRenderer[] renderers, Color color)
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		for (int i = 0; i < renderers.Length; i++)
		{
			Material[] materials = ((Renderer)renderers[i]).materials;
			for (int j = 0; j < materials.Length; j++)
			{
				SafeSetColor(materials[j], color);
			}
		}
	}

	public static void RendererColorChanger(SkinnedMeshRenderer[] renderers, Color color)
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		for (int i = 0; i < renderers.Length; i++)
		{
			Material[] materials = ((Renderer)renderers[i]).materials;
			for (int j = 0; j < materials.Length; j++)
			{
				SafeSetColor(materials[j], color);
			}
		}
	}

	public static void RendererColorChanger(Renderer[] renderers, Material[] color)
	{
		for (int i = 0; i < renderers.Length; i++)
		{
			renderers[i].materials = color;
		}
	}

	public static void RendererColorChanger(MeshRenderer[] renderers, Material[] color)
	{
		for (int i = 0; i < renderers.Length; i++)
		{
			((Renderer)renderers[i]).materials = color;
		}
	}

	public static void RendererColorChanger(SkinnedMeshRenderer[] renderers, Material[] color)
	{
		for (int i = 0; i < renderers.Length; i++)
		{
			((Renderer)renderers[i]).materials = color;
		}
	}
}
public static class UManager
{
	private struct DemonMoveSpec
	{
		public bool hasReaper;

		public Vector3 reaperScale;

		public int reaperRopeSegments;

		public bool hasWings;

		public float wingsScaleMul;

		public float flightForceMul;

		public float heightVariance;

		public float legForceMultiplier;

		public float rotationTorque;

		public float variationSpeed;

		public bool setDodge;

		public bool dodgeEnabled;

		public bool tintParticles;

		public bool setBlock;

		public float blockAngle;

		public float blockPower;

		public int projectilesPerBlock;
	}

	private struct DemonWeaponSpec
	{
		public int hideMeshKind;

		public bool hideMeshOnMelee;

		public bool hideMeshOnRange;

		public bool hasMelee;

		public bool applyMeleeScale;

		public float meleeScaleMul;

		public float meleeScaleAbsolute;

		public bool zombify;

		public bool ignoreTeamMates;

		public float meleeCooldown;

		public float curveForceMul;

		public float yTargetOffset;

		public bool copyGiantPunchForceCurve;

		public bool copyGiantPunchMaxRange;

		public bool canDealDamageOutSideOfSwing;

		public float requiredPowerToParry;

		public float damage;

		public float onImpactForceMul;

		public float collisionCooldown;

		public bool copyVocalRef;

		public bool copyGiantPunchHoldable;

		public bool applyMeleeHold;

		public Vector3 meleeHoldForwardRotation;

		public Vector3 meleeHoldRelativePosition;

		public float meleeLookAtWhenWithin;

		public int demonHandCount;

		public int touchInfectCount;

		public int demonInfectCount;

		public bool hasRange;

		public bool applyRangeScale;

		public float rangeScaleMul;

		public string rangeObjectSource;

		public float rangeCooldown;

		public int rangeNumberOfObjects;

		public float rangeSpread;

		public float rangeProjectileSpeedSpread;

		public float rangeChargeMul;

		public float rangeMaxRangeMul;

		public bool applyRangePositionOffset;

		public Vector3 rangePositionOffset;

		public float rangeDelayPerSpawn;

		public int rangeMaxProjectilesPerFrame;

		public int rangeRigMode;

		public bool rangeRecolor;

		public bool applyRangeHold;

		public Vector3 rangeHoldForwardRotation;

		public Vector3 rangeHoldRelativePosition;

		public float rangeLookAtWhenWithin;
	}

	private struct DemonRigSpec
	{
		public Color redColor;

		public Color blueColor;

		public float forceMul;

		public float legAngleMul;

		public float torsoAngleMul;

		public Vector3 rig0;

		public float rig2Mul;

		public Vector3[] rigs;

		public bool killAfter;
	}

	private struct ClawProfile
	{
		public string UnitName;

		public string ObjectName;

		public int Id;

		public int Hand;

		public float Damage;

		public float CurveForceMul;

		public float InternalCooldown;

		public float StickTime;

		public float OnImpactForceMul;

		public float CollisionCooldown;

		public bool CanDealDamageOutsideSwing;

		public float MaxRangeMul;

		public float ImpactMultiplier;

		public bool UseGiantPunchMelee;

		public float GiantYTargetOffset;

		public float ScaleMul;

		public bool UseGiantHoldableFineTune;

		public float HoldRelativePositionZ;

		public int TouchInfectCount;

		public int WalkBackwardsWhenStuck;

		public int HardStick;
	}

	private struct HookGunProfile
	{
		public string UnitName;

		public string ObjectName;

		public int Id;

		public float InternalCooldown;

		public float RangeInternalCooldown;

		public float CurveForceMul;

		public float YTargetOffset;

		public bool UseGiantPunchCurve;

		public float Damage;

		public float OnImpactForceMul;

		public float CollisionCooldown;

		public bool CanDealDamageOutsideSwing;

		public int NumberOfObjects;

		public float DelayPerSpawn;

		public float SpawnDelay;

		public float Spread;

		public float ProjectileSpeedSpread;

		public int MaxProjectilesPerFrame;

		public float Charge;

		public float MaxRange;

		public Vector3 PositionOffset;

		public bool HasPositionOffset;

		public bool HasRangeFields;

		public bool SetInertiaTensor;

		public Vector3 InertiaTensor;

		public bool UseVocalSoundRef;

		public bool FreezeRotation;

		public bool IsKinematic;

		public string UnitToSpawn;
	}

	private struct DemonSpec
	{
		public string name;

		public string rightWeapon;

		public string leftWeapon;

		public int cost;

		public string[] clothes;

		public string[] moves;
	}

	private struct PotionProfile
	{
		public string UnitName;

		public string ObjectName;

		public int Id;

		public int NumberOfObjects;

		public float DelayPerSpawn;

		public float Spread;

		public float ProjectileSpeedSpread;

		public int MaxProjectilesPerFrame;

		public float MaxRange;

		public float Charge;

		public float InternalCooldown;
	}

	private struct SubunitMoveSpec
	{
		public bool hasWings;

		public float wingsScaleMul;

		public float flightForceMul;

		public float heightVariance;

		public float legForceMultiplier;

		public float rotationTorque;

		public float variationSpeed;

		public bool hasSpin;

		public int spinDir;

		public float spinForceMul;

		public bool setTurnado;

		public bool disableSpin;

		public bool hasConditional;

		public float conditionalExtraRange;

		public bool conditionalControllable;

		public bool tintParticles;

		public float particleScaleMul;

		public float particlePlaybackSpeedMul;

		public bool hasDodge;

		public float dodgeForceMul;

		public bool hasAimForUnitTarget;

		public float aimLerpSpeed;
	}

	private class UnitProjectileProfile
	{
		public Vector3? Scale;

		public float ScaleMul = float.NaN;

		public string HitCloud;

		public bool CloudViaUSpawner;

		public int CloudNum = 1;

		public float PullForceMul = float.NaN;

		public float PullForceAmountMul = float.NaN;

		public float RopeSegments = float.NaN;

		public float RemoveAfter = float.NaN;

		public bool RemoveAfterRootOnly;

		public bool AddHitEffect;

		public bool RotationFollowVelocity;

		public bool ZeroVelocityPrediction;

		public bool KeepAliveOnHit;

		public float GravityMul = float.NaN;

		public string SpawnUnit;

		public int SpawnUnitNum = 1;

		public bool DisableProjectileRotate;
	}

	private sealed class DemonProjSpec
	{
		public float damage;

		public string hitEffect;

		public string usObject;

		public string[] usUnits;

		public int usNum = 1;

		public float usDelay;

		public int usTrigger;

		public string addEffectPool;

		public float pushMul = 1f;

		public bool hardStick;

		public float removeAfter;

		public Vector3? scale;

		public float compensationUpward;

		public float blockPowered = 5f;

		public float pullForceMul = float.NaN;

		public float pullForceAmountMul = float.NaN;

		public bool? rotationFollow;

		public bool usAllAtOnce;

		public float swordRingRadius;

		public int globalMode = -1;

		public float speedOverride;

		public bool trackTarget;

		public float globalRadius = 200f;
	}

	public static string 可修改作者 = "Fhp史莱姆";

	public static string 可修改模组名字 = "僵尸mod";

	public static string 注释;

	public static string 不准修改Path = "SLMApackage\\image";

	public static bool 是否弹窗 = false;

	public const string BUILD_TIMESTAMP = "20261112-2304";

	public static readonly Color redDemonColor = Color32.op_Implicit(new Color32((byte)235, (byte)66, (byte)54, byte.MaxValue));

	public static readonly Color blueDemonColor = Color32.op_Implicit(new Color32((byte)128, (byte)32, (byte)22, byte.MaxValue));

	public static GameObject ZombieExplosionPrefab;

	public static GameObject ExplodeInfectPrefab;

	public static GameObject ExplodeInfectBigPrefab;

	private static readonly HashSet<string> swordBaseRendererNames = new HashSet<string>(StringComparer.OrdinalIgnoreCase);

	private static readonly string[] ZombieSinkUnitNames = new string[26]
	{
		"Small Zombie", "Zombie", "Running Zombie", "Zombie Raptor", "Crawling Zombie", "Flying Zombie", "Charger Zombie", "Seeker Zombie", "Shouting Zombie", "Jumping Zombie",
		"Cytokinesis Zombie", "Spitter Zombie", "Tank Zombie", "Giant Zombie", "Mutated Flying-Seeker Zombie", "Mutated Flying-Cytokinesis Zombie", "Mutated Jumping-Spitter Zombie", "Mutated Tank-Charger Zombie", "Mutated Giant-Seeker Zombie", "2nd Evolution Flying-Exploding-Charging Host Zombie",
		"2nd Evolution Flying-Shouting-Seeker Zombie", "2nd Evolution Small-Crawling-Jumping Zombie", "2nd Evolution Flying-Spitting-Cytokinesis Zombie", "Exploding Host Zombie", "Zombie Snake", "Exploding Zombie"
	};

	private static readonly string[] ExplodingUnits = new string[3] { "自爆僵尸", "自爆宿主僵尸", "二阶进化飞行自爆冲锋宿主僵尸" };

	private static readonly Dictionary<string, string> SummonTable = new Dictionary<string, string>
	{
		{ "自爆宿主僵尸", "Exploding Zombie" },
		{ "二阶进化飞行自爆冲锋宿主僵尸", "Exploding Zombie" },
		{ "胞质分裂僵尸", "Cytokinesis Zombie" },
		{ "变异飞行胞质分裂僵尸", "Mutated Flying-Cytokinesis Zombie" }
	};

	private static readonly Dictionary<string, UnitBlueprint> SummonBlueprints = new Dictionary<string, UnitBlueprint>();

	private static readonly Dictionary<string, UnitBlueprint> OwnBlueprints = new Dictionary<string, UnitBlueprint>(StringComparer.Ordinal);

	private static readonly Dictionary<RangeWeapon, string> PendingUnitToSpawn = new Dictionary<RangeWeapon, string>();

	private static readonly Dictionary<string, float> SummonIntervalTable = new Dictionary<string, float>
	{
		{ "自爆宿主僵尸", 7.5f },
		{ "二阶进化飞行自爆冲锋宿主僵尸", 20f },
		{ "胞质分裂僵尸", 15f },
		{ "变异飞行胞质分裂僵尸", 15f }
	};

	private static readonly KeyValuePair<string, string>[] SummonOrdered = BuildSummonOrdered();

	private static readonly KeyValuePair<string, float>[] SummonIntervalOrdered = BuildSummonIntervalOrdered();

	private static readonly string[] CrawlingUnits = new string[2] { "爬行僵尸", "二阶进化小型爬行跳跃僵尸" };

	private static readonly Dictionary<string, DemonMoveSpec> DemonMoveTable = new Dictionary<string, DemonMoveSpec>(StringComparer.Ordinal)
	{
		{
			"1st Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(1.5f, 1.5f, 25f),
				reaperRopeSegments = 100,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		},
		{
			"1st Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		},
		{
			"2nd Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 25f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = true
			}
		},
		{
			"2nd Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"3rd Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 25f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = true
			}
		},
		{
			"3rd Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"4th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 25f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = true
			}
		},
		{
			"4th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"5th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(1f, 1f, 25f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = true
			}
		},
		{
			"5th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"6th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		},
		{
			"6th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"7th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 3f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				tintParticles = true
			}
		},
		{
			"7th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 3f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false,
				tintParticles = true
			}
		},
		{
			"8th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 3f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		},
		{
			"8th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 3f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"9th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 3f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false,
				setBlock = true,
				blockAngle = 90f,
				blockPower = 10f,
				projectilesPerBlock = 20
			}
		},
		{
			"9th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 3f,
				heightVariance = 1f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setBlock = true,
				blockAngle = 90f,
				blockPower = 10f,
				projectilesPerBlock = 20
			}
		},
		{
			"10th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		},
		{
			"10th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"11th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		},
		{
			"11th Age Prop",
			new DemonMoveSpec
			{
				hasReaper = false,
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f
			}
		},
		{
			"12th Age Demon",
			new DemonMoveSpec
			{
				hasReaper = true,
				reaperScale = new Vector3(2f, 2f, 2f),
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 1f,
				heightVariance = 5f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 5f,
				setDodge = true,
				dodgeEnabled = false
			}
		}
	};

	private static readonly Color DemonColor0 = new Color(0.496929f, 0.021949f, 0.014947f);

	private static readonly Color DemonColor1 = new Color(0.01171875f, 0.43359375f, 63f / 64f);

	private static readonly Color DemonColor2 = new Color(0.09765625f, 0.91796875f, 125f / 128f);

	private static readonly Color DemonColor3 = new Color(0.5171875f, 0.13359375f, 31f / 64f);

	private static readonly Color DemonColor4 = new Color(0.95703125f, 59f / 128f, 0f);

	private static readonly Color DemonColor5 = new Color(0.2f, 0.2f, 0.2f);

	private static readonly Color DemonColor6 = new Color(0.36328125f, 63f / 64f, 125f / 128f);

	private static readonly Color DemonColor7 = new Color(7f / 128f, 75f / 128f, 25f / 128f);

	private static readonly Color DemonColor8 = new Color(0.99609375f, 5f / 128f, 0.66015625f);

	private static readonly Color DemonColor9 = new Color(63f / 64f, 0.01171875f, 0.01171875f);

	private static readonly Dictionary<string, Color[]> DemonClothTable = new Dictionary<string, Color[]>(StringComparer.Ordinal)
	{
		{
			"1st Age Demon",
			(Color[])(object)new Color[7] { DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0 }
		},
		{
			"1st Age Prop",
			(Color[])(object)new Color[7] { DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0 }
		},
		{
			"2nd Age Demon",
			(Color[])(object)new Color[8] { DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0 }
		},
		{
			"2nd Age Prop",
			(Color[])(object)new Color[8] { DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0, DemonColor0 }
		},
		{
			"3rd Age Demon",
			(Color[])(object)new Color[8] { DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2 }
		},
		{
			"3rd Age Prop",
			(Color[])(object)new Color[8] { DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2, DemonColor2 }
		},
		{
			"4th Age Demon",
			(Color[])(object)new Color[8] { DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1 }
		},
		{
			"4th Age Prop",
			(Color[])(object)new Color[8] { DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1, DemonColor1 }
		},
		{
			"5th Age Demon",
			(Color[])(object)new Color[8] { DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3 }
		},
		{
			"5th Age Prop",
			(Color[])(object)new Color[8] { DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3, DemonColor3 }
		},
		{
			"6th Age Demon",
			(Color[])(object)new Color[7]
			{
				DemonColor8,
				DemonColor8,
				DemonColor8,
				DemonColor8,
				Color.clear,
				DemonColor8,
				DemonColor8
			}
		},
		{
			"6th Age Prop",
			(Color[])(object)new Color[7]
			{
				DemonColor8,
				DemonColor8,
				DemonColor8,
				DemonColor8,
				Color.clear,
				DemonColor8,
				DemonColor8
			}
		},
		{
			"7th Age Demon",
			(Color[])(object)new Color[7]
			{
				DemonColor9,
				DemonColor9,
				DemonColor9,
				DemonColor9,
				Color.clear,
				DemonColor9,
				DemonColor9
			}
		},
		{
			"7th Age Prop",
			(Color[])(object)new Color[7]
			{
				DemonColor9,
				DemonColor9,
				DemonColor9,
				DemonColor9,
				Color.clear,
				DemonColor9,
				DemonColor9
			}
		},
		{
			"8th Age Demon",
			(Color[])(object)new Color[7] { DemonColor6, DemonColor6, DemonColor6, DemonColor6, DemonColor6, DemonColor6, DemonColor6 }
		},
		{
			"8th Age Prop",
			(Color[])(object)new Color[7] { DemonColor6, DemonColor6, DemonColor6, DemonColor6, DemonColor6, DemonColor6, DemonColor6 }
		},
		{
			"9th Age Demon",
			(Color[])(object)new Color[7]
			{
				DemonColor5,
				DemonColor5,
				DemonColor5,
				DemonColor5,
				Color.clear,
				DemonColor5,
				DemonColor5
			}
		},
		{
			"9th Age Prop",
			(Color[])(object)new Color[7]
			{
				DemonColor5,
				DemonColor5,
				DemonColor5,
				DemonColor5,
				Color.clear,
				DemonColor5,
				DemonColor5
			}
		},
		{
			"10th Age Demon",
			(Color[])(object)new Color[7]
			{
				DemonColor7,
				DemonColor7,
				DemonColor7,
				DemonColor7,
				Color.clear,
				DemonColor7,
				DemonColor7
			}
		},
		{
			"10th Age Prop",
			(Color[])(object)new Color[7]
			{
				DemonColor7,
				DemonColor7,
				DemonColor7,
				DemonColor7,
				Color.clear,
				DemonColor7,
				DemonColor7
			}
		},
		{
			"11th Age Demon",
			(Color[])(object)new Color[8] { DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4 }
		},
		{
			"11th Age Prop",
			(Color[])(object)new Color[8] { DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4, DemonColor4 }
		},
		{
			"12th Age Demon",
			(Color[])(object)new Color[7] { DemonColor0, DemonColor7, DemonColor2, DemonColor1, DemonColor3, DemonColor6, DemonColor5 }
		}
	};

	private const bool DemonClothFixTypo = false;

	private static readonly Dictionary<string, Color> DemonClothTypoIndex4 = new Dictionary<string, Color>(StringComparer.Ordinal)
	{
		{ "6th Age Demon", DemonColor8 },
		{ "6th Age Prop", DemonColor8 },
		{ "7th Age Demon", DemonColor9 },
		{ "7th Age Prop", DemonColor9 },
		{ "9th Age Demon", DemonColor5 },
		{ "9th Age Prop", DemonColor5 },
		{ "10th Age Demon", DemonColor7 },
		{ "10th Age Prop", DemonColor7 }
	};

	private static readonly Dictionary<string, SubunitMoveSpec> SubunitMoveTable = new Dictionary<string, SubunitMoveSpec>(StringComparer.Ordinal)
	{
		{
			"Fire tornado",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 3f,
				setTurnado = false,
				hasConditional = true,
				conditionalExtraRange = 0f,
				conditionalControllable = true,
				tintParticles = true,
				particleScaleMul = 1.25f,
				particlePlaybackSpeedMul = 0.5f
			}
		},
		{
			"Fire tornado1",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 1f,
				setTurnado = false,
				hasConditional = true,
				conditionalExtraRange = 0f,
				conditionalControllable = true,
				tintParticles = true,
				particleScaleMul = 1.25f,
				particlePlaybackSpeedMul = 1f
			}
		},
		{
			"Fire tornado2",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 1f,
				setTurnado = false,
				hasConditional = true,
				conditionalExtraRange = 0f,
				conditionalControllable = true,
				tintParticles = true,
				particleScaleMul = 1.25f,
				particlePlaybackSpeedMul = 1f
			}
		},
		{
			"Fire tornado3",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 1f,
				setTurnado = false,
				hasConditional = true,
				conditionalExtraRange = 0f,
				conditionalControllable = true,
				tintParticles = true,
				particleScaleMul = 1.25f,
				particlePlaybackSpeedMul = 1f
			}
		},
		{
			"Fire tornado4",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 1f,
				setTurnado = false,
				hasConditional = true,
				conditionalExtraRange = 0f,
				conditionalControllable = true,
				tintParticles = true,
				particleScaleMul = 1.25f,
				particlePlaybackSpeedMul = 1f
			}
		},
		{
			"Fire tornado5",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 1f,
				setTurnado = false,
				hasConditional = true,
				conditionalExtraRange = 0f,
				conditionalControllable = true,
				tintParticles = true,
				particleScaleMul = 1.25f,
				particlePlaybackSpeedMul = 1f
			}
		},
		{
			"Tree",
			new SubunitMoveSpec
			{
				hasSpin = false,
				spinDir = 1,
				spinForceMul = 5f,
				setTurnado = false,
				disableSpin = true
			}
		},
		{
			"Tree1",
			new SubunitMoveSpec
			{
				hasSpin = false,
				spinDir = 1,
				spinForceMul = 5f,
				setTurnado = false,
				disableSpin = true
			}
		},
		{
			"Tree2",
			new SubunitMoveSpec
			{
				hasSpin = false,
				spinDir = 1,
				spinForceMul = 5f,
				setTurnado = false,
				disableSpin = true
			}
		},
		{
			"Tree3",
			new SubunitMoveSpec
			{
				hasSpin = false,
				spinDir = 1,
				spinForceMul = 5f,
				setTurnado = false,
				disableSpin = true
			}
		},
		{
			"Tree4",
			new SubunitMoveSpec
			{
				hasSpin = false,
				spinDir = 1,
				spinForceMul = 5f,
				setTurnado = false,
				disableSpin = true
			}
		},
		{
			"Tree5",
			new SubunitMoveSpec
			{
				hasSpin = false,
				spinDir = 1,
				spinForceMul = 5f,
				setTurnado = false,
				disableSpin = true
			}
		},
		{
			"Dragon",
			new SubunitMoveSpec
			{
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 10f,
				heightVariance = 10f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 10f,
				hasSpin = true,
				spinDir = 0,
				spinForceMul = 30f,
				hasDodge = true,
				dodgeForceMul = 1.5f,
				hasAimForUnitTarget = true,
				aimLerpSpeed = 50f
			}
		},
		{
			"Dragonrider1",
			new SubunitMoveSpec
			{
				hasWings = true,
				wingsScaleMul = 0f,
				flightForceMul = 5f,
				heightVariance = 10f,
				legForceMultiplier = 1f,
				rotationTorque = 10f,
				variationSpeed = 10f,
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 5f
			}
		},
		{
			"Dragonrider2",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 5f
			}
		},
		{
			"Dragonrider3",
			new SubunitMoveSpec
			{
				hasSpin = true,
				spinDir = 1,
				spinForceMul = 5f
			}
		}
	};

	private static readonly Dictionary<string, DemonWeaponSpec> DemonWeaponTable = new Dictionary<string, DemonWeaponSpec>(StringComparer.Ordinal)
	{
		{
			"1st Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 1,
				hideMeshOnMelee = true,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 0f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 2f,
				curveForceMul = 3f,
				yTargetOffset = -3f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				canDealDamageOutSideOfSwing = true,
				damage = 500f,
				onImpactForceMul = 3.5f,
				collisionCooldown = 1f,
				copyVocalRef = true,
				copyGiantPunchHoldable = true,
				demonHandCount = 1,
				demonInfectCount = 25,
				hasRange = true,
				rangeObjectSource = "HarpoonGun",
				rangeCooldown = 2.5f,
				rangeNumberOfObjects = 50,
				rangeSpread = 15f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 1f, 0f),
				rangeRigMode = 0
			}
		},
		{
			"1st Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 1,
				hideMeshOnMelee = true,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 1f,
				applyRangeScale = true,
				rangeScaleMul = 1f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 2f,
				curveForceMul = 3f,
				yTargetOffset = -3f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				canDealDamageOutSideOfSwing = true,
				damage = 200f,
				onImpactForceMul = 3.5f,
				collisionCooldown = 1f,
				copyVocalRef = true,
				copyGiantPunchHoldable = true,
				demonHandCount = 1,
				demonInfectCount = 14,
				hasRange = true,
				rangeObjectSource = "HarpoonGun",
				rangeCooldown = 2.5f,
				rangeNumberOfObjects = 25,
				rangeSpread = 15f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 1f, 0f),
				rangeRigMode = 0
			}
		},
		{
			"2nd Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 1,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 10f,
				rangeNumberOfObjects = 1,
				rangeSpread = 10f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"2nd Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 1,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 20f,
				rangeNumberOfObjects = 1,
				rangeSpread = 10f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"3rd Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 1,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 10f,
				rangeNumberOfObjects = 1,
				rangeSpread = 2f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"3rd Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 1,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 20f,
				rangeNumberOfObjects = 1,
				rangeSpread = 2f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"4th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 10f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"4th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 20f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2.5f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"5th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 10f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"5th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 20f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2.5f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"6th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "Bow_Cupid",
				rangeCooldown = 10f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"6th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "Bow_Cupid",
				rangeCooldown = 20f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 2f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"7th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 8f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.5f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"7th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 2,
				hideMeshOnMelee = false,
				hideMeshOnRange = true,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "BowFirework",
				rangeCooldown = 16f,
				rangeNumberOfObjects = 1,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 1.5f,
				rangeMaxRangeMul = 4f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 0f, 0.5f),
				rangeRigMode = 2
			}
		},
		{
			"8th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "Throw_Thunderbolt",
				rangeCooldown = 3.5f,
				rangeNumberOfObjects = 30,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 10f,
				rangeChargeMul = 25f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 1000f, 0f),
				rangeRecolor = true,
				rangeRigMode = 0
			}
		},
		{
			"8th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15,
				hasRange = true,
				rangeObjectSource = "Throw_Thunderbolt",
				rangeCooldown = 5f,
				rangeNumberOfObjects = 15,
				rangeSpread = 5f,
				rangeProjectileSpeedSpread = 10f,
				rangeChargeMul = 25f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = true,
				rangePositionOffset = new Vector3(0f, 1000f, 0f),
				rangeRecolor = true,
				rangeRigMode = 0
			}
		},
		{
			"9th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasRange = true,
				rangeCooldown = 40f,
				rangeNumberOfObjects = 40,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeDelayPerSpawn = 5f,
				rangeMaxProjectilesPerFrame = 5,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.forward,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f),
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 6f,
				requiredPowerToParry = 10f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.1f,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 12
			}
		},
		{
			"9th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasRange = true,
				rangeCooldown = 45f,
				rangeNumberOfObjects = 20,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeDelayPerSpawn = 5f,
				rangeMaxProjectilesPerFrame = 3,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.forward,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f),
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 6f,
				requiredPowerToParry = 10f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 500f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.1f,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 12
			}
		},
		{
			"10th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasRange = true,
				rangeCooldown = 20f,
				rangeNumberOfObjects = 5,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeDelayPerSpawn = 2.5f,
				rangeMaxProjectilesPerFrame = 1,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.forward,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f)
			}
		},
		{
			"10th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasRange = true,
				rangeCooldown = 20f,
				rangeNumberOfObjects = 5,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeDelayPerSpawn = 2.5f,
				rangeMaxProjectilesPerFrame = 1,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.right,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f)
			}
		},
		{
			"11th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleAbsolute = 1.5f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1f,
				curveForceMul = 4f,
				requiredPowerToParry = 10f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = false,
				copyGiantPunchMaxRange = true,
				damage = 350f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.1f,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.forward,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 6,
				hasRange = true,
				rangeCooldown = 10f,
				rangeNumberOfObjects = 1,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.forward,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f)
			}
		},
		{
			"11th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleAbsolute = 1.5f,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1f,
				curveForceMul = 4f,
				requiredPowerToParry = 10f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = false,
				copyGiantPunchMaxRange = true,
				damage = 350f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.1f,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 6,
				hasRange = true,
				rangeCooldown = 20f,
				rangeNumberOfObjects = 1,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.right,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f)
			}
		},
		{
			"12th Age Demon",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyRangeScale = true,
				rangeScaleMul = 0f,
				hasRange = true,
				rangeCooldown = 18f,
				rangeNumberOfObjects = 2,
				rangeSpread = 50f,
				rangeProjectileSpeedSpread = 5f,
				rangeChargeMul = 0.9f,
				rangeMaxRangeMul = 5f,
				applyRangePositionOffset = false,
				rangeDelayPerSpawn = 5f,
				rangeMaxProjectilesPerFrame = 5,
				rangeRigMode = 1,
				applyRangeHold = true,
				rangeHoldForwardRotation = Vector3.forward,
				rangeHoldRelativePosition = new Vector3(0f, -1f, 0f)
			}
		},
		{
			"12th Age Prop",
			new DemonWeaponSpec
			{
				hideMeshKind = 0,
				applyMeleeScale = true,
				meleeScaleMul = 2f,
				hasMelee = true,
				zombify = true,
				ignoreTeamMates = true,
				meleeCooldown = 1.5f,
				curveForceMul = 3f,
				yTargetOffset = -2f,
				copyGiantPunchForceCurve = true,
				copyGiantPunchMaxRange = true,
				damage = 200f,
				onImpactForceMul = 2f,
				collisionCooldown = 0.2f,
				copyVocalRef = true,
				applyMeleeHold = true,
				meleeHoldForwardRotation = Vector3.right,
				meleeHoldRelativePosition = new Vector3(0f, 0f, 0.5f),
				meleeLookAtWhenWithin = 3f,
				demonHandCount = 1,
				touchInfectCount = 15
			}
		}
	};

	private static readonly Color ZombieHookGreen = new Color(0.339906f, 0.860533f, 0.295041f);

	private static readonly Color RedDemonColor = new Color(47f / 51f, 22f / 85f, 18f / 85f);

	private static readonly Color BlueDemonColor = new Color(0.5019608f, 0.1254902f, 0.08627451f);

	private static readonly Dictionary<string, DemonRigSpec> DemonRigTable = new Dictionary<string, DemonRigSpec>(StringComparer.Ordinal)
	{
		{
			"1st Age Demon",
			Rig(V(1f, 1f, 1f), 1.7f, killAfter: false, V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f))
		},
		{
			"1st Age Prop",
			Rig(V(1f, 1f, 1f), 1.7f, killAfter: true, V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f))
		},
		{
			"2nd Age Demon",
			Rig(V(1.5f, 1.5f, 1f), 1.7f, killAfter: false, V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 1f, 3f), V(3f, 1f, 3f), V(3f, 1f, 3f), V(3f, 1f, 3f))
		},
		{
			"2nd Age Prop",
			Rig(V(1.5f, 1.5f, 1f), 1.7f, killAfter: true, V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 1f, 3f), V(3f, 1f, 3f), V(3f, 1f, 3f), V(3f, 1f, 3f))
		},
		{
			"3rd Age Demon",
			Rig(V(1.5f, 1.5f, 1f), 1.2f, killAfter: false, V(1f, 3f, 1f), V(3f, 2f, 1f), V(1f, 3f, 1f), V(3f, 0.5f, 1f), V(2f, 1f, 3f), V(3f, 1f, 2f), V(3f, 1f, 1f), V(3f, 1f, 5f))
		},
		{
			"3rd Age Prop",
			Rig(V(1.5f, 1.5f, 1f), 1.2f, killAfter: true, V(1f, 3f, 1f), V(3f, 2f, 1f), V(1f, 3f, 1f), V(3f, 0.5f, 1f), V(2f, 1f, 3f), V(3f, 1f, 2f), V(3f, 1f, 1f), V(3f, 1f, 5f))
		},
		{
			"4th Age Demon",
			Rig(V(1f, 1f, 1f), 1f, killAfter: false, V(1f, 1f, 1f), V(1f, 1f, 1f), V(3f, 3f, 1f), V(1f, 1f, 1f), V(3f, 1f, 3f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"4th Age Prop",
			Rig(V(1f, 1f, 1f), 1f, killAfter: true, V(1f, 1f, 1f), V(1f, 1f, 1f), V(3f, 3f, 1f), V(1f, 1f, 1f), V(3f, 1f, 3f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"5th Age Demon",
			Rig(V(1f, 1f, 1f), 1.5f, killAfter: false, V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"5th Age Prop",
			Rig(V(1f, 1f, 1f), 1.5f, killAfter: true, V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"6th Age Demon",
			Rig(V(1f, 1f, 1f), 0.85f, killAfter: false, V(1f, 1f, 1f), V(1f, 1f, 1f), V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f))
		},
		{
			"6th Age Prop",
			Rig(V(1f, 1f, 1f), 0.85f, killAfter: true, V(1f, 1f, 1f), V(1f, 1f, 1f), V(2f, 2f, 1f), V(2f, 2f, 1f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f))
		},
		{
			"7th Age Demon",
			Rig(V(1f, 2f, 1f), 1.15f, killAfter: false, V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 3f, 1f), V(2f, 2f, 1f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f))
		},
		{
			"7th Age Prop",
			Rig(V(1f, 2f, 1f), 1.15f, killAfter: true, V(3f, 3f, 1f), V(3f, 3f, 1f), V(3f, 3f, 1f), V(2f, 2f, 1f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f), V(2f, 1f, 2f))
		},
		{
			"8th Age Demon",
			Rig(V(2f, 1f, 1f), 1.5f, killAfter: false, V(2f, 3f, 1f), V(3f, 1f, 1f), V(1f, 1f, 1f), V(4f, 4f, 1f), V(2f, 1f, 1f), V(2f, 1f, 1f), V(1f, 1f, 2f), V(1f, 1f, 2f))
		},
		{
			"8th Age Prop",
			Rig(V(2f, 1f, 1f), 1.5f, killAfter: true, V(2f, 3f, 1f), V(3f, 1f, 1f), V(1f, 1f, 1f), V(4f, 4f, 1f), V(2f, 1f, 1f), V(2f, 1f, 1f), V(1f, 1f, 2f), V(1f, 1f, 2f))
		},
		{
			"9th Age Demon",
			Rig(V(1f, 1f, 1f), 1.25f, killAfter: false, V(1f, 1f, 1f), V(1f, 3f, 1f), V(3f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"9th Age Prop",
			Rig(V(1f, 1f, 1f), 1.25f, killAfter: true, V(1f, 1f, 1f), V(1f, 3f, 1f), V(3f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"10th Age Demon",
			Rig(V(1f, 1f, 1f), 1.5f, killAfter: false, V(1f, 1f, 1f), V(2f, 3f, 1f), V(3f, 2f, 1f), V(1f, 1f, 1f), V(2f, 1f, 2f), V(2f, 1f, 3f), V(3f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"10th Age Prop",
			Rig(V(1f, 1f, 1f), 1.5f, killAfter: true, V(1f, 1f, 1f), V(2f, 3f, 1f), V(3f, 2f, 1f), V(1f, 1f, 1f), V(2f, 1f, 2f), V(2f, 1f, 3f), V(3f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"11th Age Demon",
			Rig(V(1f, 1f, 1f), 0.85f, killAfter: false, V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"11th Age Prop",
			Rig(V(1f, 1f, 1f), 0.85f, killAfter: true, V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f), V(1f, 1f, 1f))
		},
		{
			"12th Age Demon",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		},
		{
			"Fire tornado",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		},
		{
			"Fire tornado1",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		},
		{
			"Fire tornado2",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		},
		{
			"Fire tornado3",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		},
		{
			"Fire tornado4",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		},
		{
			"Fire tornado5",
			Rig(V(1f, 2f, 1f), 1f, killAfter: false, V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 1f, 2f), V(1f, 2f, 1f), V(2f, 1f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f), V(1f, 2f, 1f))
		}
	};

	private static readonly Dictionary<string, int> rigAttempts = new Dictionary<string, int>();

	private static readonly Dictionary<string, string> ZombieRigAlias = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
	{
		{ "Zombie", "僵尸" },
		{ "Zombie Raptor", "僵尸迅猛龙" },
		{ "Zombie Snake", "僵尸蛇" },
		{ "Small Zombie", "小型僵尸" },
		{ "2nd Evolution Small-Crawling-Jumping Zombie", "二阶进化小型爬行跳跃僵尸" },
		{ "Exploding Zombie", "自爆僵尸" },
		{ "Exploding Host Zombie", "自爆宿主僵尸" },
		{ "2nd Evolution Flying-Exploding-Charging Host Zombie", "二阶进化飞行自爆冲锋宿主僵尸" },
		{ "Giant Zombie", "巨型僵尸" },
		{ "Mutated Giant-Seeker Zombie", "变异巨型寻猎僵尸" },
		{ "Cytokinesis Zombie", "胞质分裂僵尸" },
		{ "Mutated Flying-Cytokinesis Zombie", "变异飞行胞质分裂僵尸" },
		{ "2nd Evolution Flying-Spitting-Cytokinesis Zombie", "二阶进化飞行吐酸胞质分裂僵尸" },
		{ "Spitter Zombie", "吐酸僵尸" },
		{ "Flying Zombie", "飞行僵尸" },
		{ "Charger Zombie", "冲锋僵尸" },
		{ "Seeker Zombie", "寻猎僵尸" },
		{ "Crawling Zombie", "爬行僵尸" },
		{ "Shouting Zombie", "咆哮僵尸" },
		{ "Running Zombie", "疾行僵尸" },
		{ "Tank Zombie", "坦克僵尸" },
		{ "Mutated Jumping-Spitter Zombie", "变异跳跃吐酸僵尸" },
		{ "Mutated Flying-Seeker Zombie", "变异飞行寻猎僵尸" },
		{ "2nd Evolution Flying-Shouting-Seeker Zombie", "二阶进化飞行咆哮寻猎僵尸" },
		{ "Mutated Tank-Charger Zombie", "变异坦克冲锋僵尸" },
		{ "Jumping Zombie", "跳跃僵尸" }
	};

	private static readonly string[] ZombieRigAliasOrder = BuildAliasOrder();

	private static readonly Dictionary<string, Dictionary<int, Vector3>> ZombieRigFixed = new Dictionary<string, Dictionary<int, Vector3>>
	{
		{
			"二阶进化小型爬行跳跃僵尸",
			new Dictionary<int, Vector3>
			{
				{
					4,
					new Vector3(3f, 3f, 1f)
				},
				{
					6,
					new Vector3(3f, 3f, 1f)
				},
				{
					7,
					new Vector3(3f, 1f, 3f)
				},
				{
					8,
					new Vector3(3f, 1f, 3f)
				},
				{
					9,
					new Vector3(3f, 1f, 3f)
				},
				{
					10,
					new Vector3(3f, 1f, 3f)
				}
			}
		},
		{
			"自爆僵尸",
			new Dictionary<int, Vector3>
			{
				{
					1,
					new Vector3(2f, 1.15f, 3f)
				},
				{
					2,
					new Vector3(2f, 1.15f, 3f)
				},
				{
					3,
					new Vector3(2f, 3f, 1f)
				},
				{
					5,
					new Vector3(2f, 3f, 1f)
				},
				{
					7,
					new Vector3(2f, 1.15f, 3f)
				},
				{
					9,
					new Vector3(2f, 1.15f, 3f)
				}
			}
		},
		{
			"自爆宿主僵尸",
			new Dictionary<int, Vector3>
			{
				{
					0,
					new Vector3(3f, 3f, 3f)
				},
				{
					1,
					new Vector3(3f, 1.15f, 3.5f)
				},
				{
					2,
					new Vector3(3f, 1.15f, 3.5f)
				},
				{
					3,
					new Vector3(3f, 3f, 1f)
				},
				{
					5,
					new Vector3(3f, 3f, 1f)
				},
				{
					7,
					new Vector3(3f, 1.15f, 3.5f)
				},
				{
					8,
					new Vector3(3f, 1.15f, 3.5f)
				},
				{
					9,
					new Vector3(3f, 1.15f, 3.5f)
				},
				{
					10,
					new Vector3(3f, 1.15f, 3.5f)
				}
			}
		},
		{
			"二阶进化飞行自爆冲锋宿主僵尸",
			new Dictionary<int, Vector3>
			{
				{
					0,
					new Vector3(4f, 4f, 4f)
				},
				{
					1,
					new Vector3(3.5f, 1f, 4f)
				},
				{
					2,
					new Vector3(3.5f, 1f, 4f)
				},
				{
					3,
					new Vector3(3.5f, 3.5f, 1f)
				},
				{
					4,
					new Vector3(3.5f, 3.5f, 1f)
				},
				{
					5,
					new Vector3(4.5f, 4.5f, 1f)
				},
				{
					6,
					new Vector3(4.5f, 4.5f, 1f)
				},
				{
					7,
					new Vector3(3.5f, 1f, 4f)
				},
				{
					8,
					new Vector3(4.5f, 1f, 4f)
				},
				{
					9,
					new Vector3(4.5f, 1f, 4f)
				},
				{
					10,
					new Vector3(3.5f, 1f, 4f)
				}
			}
		},
		{
			"巨型僵尸",
			new Dictionary<int, Vector3>
			{
				{
					3,
					new Vector3(5f, 5f, 1f)
				},
				{
					4,
					new Vector3(3f, 3f, 1f)
				},
				{
					5,
					new Vector3(5f, 5f, 1f)
				},
				{
					6,
					new Vector3(3f, 3f, 1f)
				},
				{
					7,
					new Vector3(2f, 1f, 2f)
				},
				{
					8,
					new Vector3(2f, 1f, 2f)
				},
				{
					9,
					new Vector3(2f, 1f, 2f)
				},
				{
					10,
					new Vector3(2f, 1f, 2f)
				}
			}
		},
		{
			"变异巨型寻猎僵尸",
			new Dictionary<int, Vector3>
			{
				{
					0,
					new Vector3(1.3f, 1.85f, 1.3f)
				},
				{
					3,
					new Vector3(5f, 5f, 1f)
				},
				{
					4,
					new Vector3(3f, 3f, 1f)
				},
				{
					5,
					new Vector3(5f, 5f, 1f)
				},
				{
					6,
					new Vector3(3f, 3f, 1f)
				},
				{
					7,
					new Vector3(2f, 1f, 2f)
				},
				{
					8,
					new Vector3(2f, 1f, 2f)
				},
				{
					9,
					new Vector3(2f, 1f, 2f)
				},
				{
					10,
					new Vector3(2f, 1f, 2f)
				}
			}
		},
		{
			"变异飞行胞质分裂僵尸",
			new Dictionary<int, Vector3> { 
			{
				0,
				new Vector3(1.3f, 0.85f, 1.8f)
			} }
		},
		{
			"二阶进化飞行吐酸胞质分裂僵尸",
			new Dictionary<int, Vector3>
			{
				{
					0,
					new Vector3(1.5f, 3f, 1.5f)
				},
				{
					3,
					new Vector3(3f, 2f, 1f)
				},
				{
					4,
					new Vector3(2f, 2f, 1f)
				},
				{
					5,
					new Vector3(1f, 3f, 1f)
				},
				{
					6,
					new Vector3(1.5f, 1.5f, 1f)
				},
				{
					7,
					new Vector3(2f, 1f, 5f)
				},
				{
					8,
					new Vector3(2f, 1f, 5f)
				},
				{
					9,
					new Vector3(2f, 1f, 3f)
				},
				{
					10,
					new Vector3(3f, 1f, 4f)
				}
			}
		},
		{
			"吐酸僵尸",
			new Dictionary<int, Vector3> { 
			{
				0,
				new Vector3(1f, 1.75f, 1f)
			} }
		},
		{
			"冲锋僵尸",
			new Dictionary<int, Vector3>
			{
				{
					5,
					new Vector3(4f, 4f, 1f)
				},
				{
					6,
					new Vector3(4f, 4f, 1f)
				}
			}
		},
		{
			"变异跳跃吐酸僵尸",
			new Dictionary<int, Vector3>
			{
				{
					0,
					new Vector3(1f, 2f, 1f)
				},
				{
					7,
					new Vector3(3f, 1f, 3f)
				},
				{
					8,
					new Vector3(3f, 1f, 3f)
				}
			}
		},
		{
			"变异飞行寻猎僵尸",
			new Dictionary<int, Vector3>
			{
				{
					5,
					new Vector3(3f, 3f, 1f)
				},
				{
					6,
					new Vector3(3f, 3f, 1f)
				},
				{
					7,
					new Vector3(1f, 1f, 1f)
				},
				{
					8,
					new Vector3(2f, 2f, 1f)
				}
			}
		},
		{
			"二阶进化飞行咆哮寻猎僵尸",
			new Dictionary<int, Vector3>
			{
				{
					3,
					new Vector3(5f, 5f, 1f)
				},
				{
					4,
					new Vector3(5f, 5f, 1f)
				},
				{
					5,
					new Vector3(5f, 5f, 1f)
				},
				{
					6,
					new Vector3(5f, 5f, 1f)
				},
				{
					7,
					new Vector3(2f, 1f, 2f)
				},
				{
					8,
					new Vector3(3f, 1f, 3f)
				},
				{
					9,
					new Vector3(2f, 1f, 2f)
				},
				{
					10,
					new Vector3(3f, 1f, 3f)
				}
			}
		},
		{
			"变异坦克冲锋僵尸",
			new Dictionary<int, Vector3>
			{
				{
					0,
					new Vector3(1.5f, 1.75f, 1.5f)
				},
				{
					2,
					new Vector3(3f, 2f, 3.5f)
				},
				{
					3,
					new Vector3(4f, 4f, 1f)
				},
				{
					4,
					new Vector3(4f, 4f, 1f)
				},
				{
					5,
					new Vector3(6f, 6f, 1f)
				},
				{
					6,
					new Vector3(6f, 6f, 1f)
				},
				{
					7,
					new Vector3(1.5f, 1f, 1.5f)
				},
				{
					8,
					new Vector3(1.5f, 1f, 1.5f)
				},
				{
					9,
					new Vector3(1.5f, 1f, 1.5f)
				},
				{
					10,
					new Vector3(1.5f, 1f, 1.5f)
				}
			}
		}
	};

	private static readonly Dictionary<string, Dictionary<int, float>> ZombieRigMul = new Dictionary<string, Dictionary<int, float>>
	{
		{
			"巨型僵尸",
			new Dictionary<int, float> { { 2, 1.5f } }
		},
		{
			"变异巨型寻猎僵尸",
			new Dictionary<int, float> { { 2, 1.7f } }
		},
		{
			"二阶进化飞行吐酸胞质分裂僵尸",
			new Dictionary<int, float> { { 2, 1.5f } }
		},
		{
			"吐酸僵尸",
			new Dictionary<int, float> { { 2, 1.25f } }
		},
		{
			"坦克僵尸",
			new Dictionary<int, float> { { 2, 1.5f } }
		},
		{
			"变异跳跃吐酸僵尸",
			new Dictionary<int, float> { { 2, 1.5f } }
		}
	};

	private static readonly Dictionary<string, int> ZombieUnitType = new Dictionary<string, int>
	{
		{ "僵尸", 1 },
		{ "僵尸迅猛龙", 1 },
		{ "僵尸蛇", 1 },
		{ "小型僵尸", 1 },
		{ "二阶进化小型爬行跳跃僵尸", 1 },
		{ "自爆僵尸", 1 },
		{ "自爆宿主僵尸", 1 },
		{ "二阶进化飞行自爆冲锋宿主僵尸", 1 },
		{ "巨型僵尸", 1 },
		{ "变异巨型寻猎僵尸", 1 },
		{ "胞质分裂僵尸", 1 },
		{ "变异飞行胞质分裂僵尸", 1 },
		{ "二阶进化飞行吐酸胞质分裂僵尸", 1 },
		{ "吐酸僵尸", 1 },
		{ "飞行僵尸", 1 },
		{ "冲锋僵尸", 1 },
		{ "寻猎僵尸", 1 },
		{ "爬行僵尸", 1 },
		{ "咆哮僵尸", 1 },
		{ "疾行僵尸", 1 },
		{ "坦克僵尸", 1 },
		{ "变异跳跃吐酸僵尸", 1 },
		{ "变异飞行寻猎僵尸", 1 },
		{ "二阶进化飞行咆哮寻猎僵尸", 1 },
		{ "变异坦克冲锋僵尸", 1 },
		{ "跳跃僵尸", 1 }
	};

	private static readonly HashSet<string> ZombieNoFall = new HashSet<string>
	{
		"僵尸", "僵尸迅猛龙", "僵尸蛇", "小型僵尸", "二阶进化小型爬行跳跃僵尸", "自爆僵尸", "自爆宿主僵尸", "二阶进化飞行自爆冲锋宿主僵尸", "巨型僵尸", "变异巨型寻猎僵尸",
		"胞质分裂僵尸", "变异飞行胞质分裂僵尸", "二阶进化飞行吐酸胞质分裂僵尸", "吐酸僵尸", "飞行僵尸", "冲锋僵尸", "寻猎僵尸", "爬行僵尸", "咆哮僵尸", "疾行僵尸",
		"坦克僵尸", "变异跳跃吐酸僵尸", "变异飞行寻猎僵尸", "二阶进化飞行咆哮寻猎僵尸", "变异坦克冲锋僵尸", "跳跃僵尸"
	};

	private static readonly Dictionary<string, Dictionary<string, (bool mul, float val)>> ZombieBalance = new Dictionary<string, Dictionary<string, (bool, float)>>
	{
		{
			"自爆僵尸",
			new Dictionary<string, (bool, float)> { 
			{
				"forceMultiplier",
				(true, 1.25f)
			} }
		},
		{
			"自爆宿主僵尸",
			new Dictionary<string, (bool, float)>
			{
				{
					"allowedLegAngle",
					(true, 2f)
				},
				{
					"allowedTorsoAngle",
					(true, 2f)
				},
				{
					"forceMultiplier",
					(true, 1.5f)
				}
			}
		},
		{
			"二阶进化飞行自爆冲锋宿主僵尸",
			new Dictionary<string, (bool, float)>
			{
				{
					"allowedLegAngle",
					(true, 2f)
				},
				{
					"allowedTorsoAngle",
					(true, 2f)
				},
				{
					"forceMultiplier",
					(true, 1.5f)
				}
			}
		},
		{
			"坦克僵尸",
			new Dictionary<string, (bool, float)> { 
			{
				"forceMultiplier",
				(true, 1.5f)
			} }
		},
		{
			"变异坦克冲锋僵尸",
			new Dictionary<string, (bool, float)> { 
			{
				"forceMultiplier",
				(true, 1.5f)
			} }
		}
	};

	private const int ClawHandBoth = 0;

	private const int ClawHandRight = 1;

	private const int ClawHandLeft = 2;

	private static readonly ClawProfile[] ClawProfiles = new ClawProfile[26]
	{
		new ClawProfile
		{
			UnitName = "Zombie",
			ObjectName = "僵尸之爪_普通",
			Id = 48970021,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Zombie Raptor",
			ObjectName = "僵尸之爪_迅猛龙",
			Id = 48970022,
			Damage = 1f,
			CurveForceMul = 1f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Small Zombie",
			ObjectName = "僵尸之爪_小型",
			Id = 48970023,
			Damage = 1f,
			CurveForceMul = 0.7f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "2nd Evolution Small-Crawling-Jumping Zombie",
			ObjectName = "僵尸之爪_二阶爬跳",
			Id = 48970024,
			Damage = 1f,
			CurveForceMul = 1f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.01f,
			CanDealDamageOutsideSwing = false,
			HoldRelativePositionZ = 3.5f,
			TouchInfectCount = 10
		},
		new ClawProfile
		{
			UnitName = "Exploding Zombie",
			ObjectName = "僵尸之爪_自爆",
			Id = 48970025,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Exploding Host Zombie",
			ObjectName = "僵尸之爪_自爆宿主",
			Id = 48970026,
			Damage = 1f,
			CurveForceMul = 1.5f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "2nd Evolution Flying-Exploding-Charging Host Zombie",
			ObjectName = "僵尸之爪_二阶飞自爆",
			Id = 48970027,
			Damage = 1f,
			CurveForceMul = 1.5f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Cytokinesis Zombie",
			ObjectName = "僵尸之爪_细胞",
			Id = 48970028,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Mutated Flying-Cytokinesis Zombie",
			ObjectName = "僵尸之爪_变异飞细胞",
			Id = 48970029,
			Damage = 1f,
			CurveForceMul = 2f,
			InternalCooldown = 0.5f,
			StickTime = 10f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Spitter Zombie",
			ObjectName = "僵尸之爪_喷吐",
			Id = 48970030,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Flying Zombie",
			ObjectName = "僵尸之爪_飞行",
			Id = 48970031,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 10f,
			WalkBackwardsWhenStuck = 1,
			HardStick = 0,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Seeker Zombie",
			ObjectName = "僵尸之爪_寻猎",
			Id = 48970032,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Crawling Zombie",
			ObjectName = "僵尸之爪_爬行",
			Id = 48970033,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.25f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true,
			HoldRelativePositionZ = 3.5f
		},
		new ClawProfile
		{
			UnitName = "Shouting Zombie",
			ObjectName = "僵尸之爪_咆哮",
			Id = 48970034,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Jumping Zombie",
			ObjectName = "僵尸之爪_跳跃",
			Id = 48970035,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.2f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Running Zombie",
			ObjectName = "僵尸之爪_疾行",
			Id = 48970036,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.8f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Mutated Jumping-Spitter Zombie",
			ObjectName = "僵尸之爪_变异跳喷",
			Id = 48970037,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false
		},
		new ClawProfile
		{
			UnitName = "Mutated Flying-Seeker Zombie",
			ObjectName = "僵尸之爪_变异飞寻",
			Id = 48970038,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 10f,
			WalkBackwardsWhenStuck = 1,
			HardStick = 0,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Charger Zombie",
			ObjectName = "僵尸之爪_冲锋",
			Id = 48970014,
			Damage = 1f,
			CurveForceMul = 3f,
			InternalCooldown = 10f,
			StickTime = 2f,
			OnImpactForceMul = 1.5f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true,
			Hand = 1,
			MaxRangeMul = 2f
		},
		new ClawProfile
		{
			UnitName = "Tank Zombie",
			ObjectName = "僵尸之爪_坦克",
			Id = 48970013,
			Damage = 5f,
			CurveForceMul = 2f,
			InternalCooldown = 1f,
			StickTime = 0f,
			OnImpactForceMul = 2f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Mutated Tank-Charger Zombie",
			ObjectName = "僵尸之爪_变异坦克",
			Id = 48970015,
			Damage = 10f,
			CurveForceMul = 7f,
			InternalCooldown = 3f,
			StickTime = 8f,
			OnImpactForceMul = 2f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true,
			Hand = 1,
			MaxRangeMul = 2f
		},
		new ClawProfile
		{
			UnitName = "Giant Zombie",
			ObjectName = "僵尸之爪_巨型",
			Id = 48970012,
			Damage = 500f,
			CurveForceMul = 5f,
			InternalCooldown = 5f,
			StickTime = 20f,
			OnImpactForceMul = 2f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = false,
			ImpactMultiplier = 999999f,
			UseGiantPunchMelee = true,
			GiantYTargetOffset = -1.5f,
			ScaleMul = 2f,
			UseGiantHoldableFineTune = true
		},
		new ClawProfile
		{
			UnitName = "Mutated Giant-Seeker Zombie",
			ObjectName = "僵尸之爪_变异巨寻",
			Id = 48970039,
			Damage = 500f,
			CurveForceMul = 7.5f,
			InternalCooldown = 5f,
			StickTime = 0f,
			OnImpactForceMul = 2f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "2nd Evolution Flying-Shouting-Seeker Zombie",
			ObjectName = "僵尸之爪_二阶飞啸寻",
			Id = 48970040,
			Damage = 1f,
			CurveForceMul = 2f,
			InternalCooldown = 2.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true
		},
		new ClawProfile
		{
			UnitName = "Charger Zombie",
			ObjectName = "僵尸之爪_冲锋_左手",
			Id = 48970016,
			Damage = 1f,
			CurveForceMul = 0.4f,
			InternalCooldown = 0.5f,
			StickTime = 0f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true,
			Hand = 2,
			MaxRangeMul = 0f
		},
		new ClawProfile
		{
			UnitName = "Mutated Tank-Charger Zombie",
			ObjectName = "僵尸之爪_变异坦克_左手",
			Id = 48970017,
			Damage = 10f,
			CurveForceMul = 7f,
			InternalCooldown = 3.5f,
			StickTime = 3f,
			OnImpactForceMul = 0.1f,
			CollisionCooldown = 0.2f,
			CanDealDamageOutsideSwing = true,
			Hand = 2,
			MaxRangeMul = 2f
		}
	};

	private static readonly Dictionary<string, string> PerUnitClaws = new Dictionary<string, string>(StringComparer.Ordinal);

	private static readonly Dictionary<string, string> PerUnitHookGuns = new Dictionary<string, string>(StringComparer.Ordinal);

	private static readonly Dictionary<string, string[]> SplitProjectileTable = new Dictionary<string, string[]>(StringComparer.Ordinal)
	{
		{
			"Cytokinesis Zombie",
			new string[1] { "Cytokinesis Zombie" }
		},
		{
			"Mutated Flying-Cytokinesis Zombie",
			new string[1] { "Mutated Flying-Cytokinesis Zombie" }
		},
		{
			"Exploding Host Zombie",
			new string[1] { "Exploding Zombie" }
		},
		{
			"2nd Evolution Flying-Exploding-Charging Host Zombie",
			new string[1] { "Exploding Zombie" }
		},
		{
			"Zombie Infinite UnityEngine.Random Spawner(20 seconds cooldown)",
			new string[26]
			{
				"Zombie", "Flying Zombie", "Charger Zombie", "Seeker Zombie", "Crawling Zombie", "Shouting Zombie", "Jumping Zombie", "Running Zombie", "Tank Zombie", "Mutated Tank-Charger Zombie",
				"Spitter Zombie", "Mutated Jumping-Spitter Zombie", "Mutated Flying-Seeker Zombie", "Small Zombie", "Exploding Zombie", "Exploding Host Zombie", "Cytokinesis Zombie", "Giant Zombie", "Mutated Flying-Cytokinesis Zombie", "Mutated Giant-Seeker Zombie",
				"Zombie Raptor", "Zombie Snake", "2nd Evolution Flying-Exploding-Charging Host Zombie", "2nd Evolution Flying-Shouting-Seeker Zombie", "2nd Evolution Small-Crawling-Jumping Zombie", "2nd Evolution Flying-Spitting-Cytokinesis Zombie"
			}
		},
		{
			"Zombie Finite Destroyable UnityEngine.Random Spawner(20 seconds cooldown)",
			new string[26]
			{
				"Zombie", "Flying Zombie", "Charger Zombie", "Seeker Zombie", "Crawling Zombie", "Shouting Zombie", "Jumping Zombie", "Running Zombie", "Tank Zombie", "Mutated Tank-Charger Zombie",
				"Spitter Zombie", "Mutated Jumping-Spitter Zombie", "Mutated Flying-Seeker Zombie", "Small Zombie", "Exploding Zombie", "Exploding Host Zombie", "Cytokinesis Zombie", "Giant Zombie", "Mutated Flying-Cytokinesis Zombie", "Mutated Giant-Seeker Zombie",
				"Zombie Raptor", "Zombie Snake", "2nd Evolution Flying-Exploding-Charging Host Zombie", "2nd Evolution Flying-Shouting-Seeker Zombie", "2nd Evolution Small-Crawling-Jumping Zombie", "2nd Evolution Flying-Spitting-Cytokinesis Zombie"
			}
		},
		{
			"Easy Zombie Destroyable Spawner(20 seconds cooldown)",
			new string[5] { "Zombie", "Small Zombie", "Running Zombie", "Zombie Snake", "Crawling Zombie" }
		},
		{
			"Easy Zombie Infinite Spawner(20 seconds cooldown)",
			new string[5] { "Zombie", "Small Zombie", "Running Zombie", "Zombie Snake", "Crawling Zombie" }
		},
		{
			"Medium Zombie Destroyable Spawner(20 seconds cooldown)",
			new string[6] { "Flying Zombie", "Zombie Raptor", "Charger Zombie", "Seeker Zombie", "Shouting Zombie", "Jumping Zombie" }
		},
		{
			"Medium Zombie Infinite Spawner(20 seconds cooldown)",
			new string[6] { "Flying Zombie", "Zombie Raptor", "Charger Zombie", "Seeker Zombie", "Shouting Zombie", "Jumping Zombie" }
		},
		{
			"Hard Zombie Destroyable Spawner(20 seconds cooldown)",
			new string[4] { "Cytokinesis Zombie", "Exploding Zombie", "Spitter Zombie", "Tank Zombie" }
		},
		{
			"Hard Zombie Infinite Spawner(20 seconds cooldown)",
			new string[4] { "Cytokinesis Zombie", "Exploding Zombie", "Spitter Zombie", "Tank Zombie" }
		},
		{
			"Insane Zombie Destroyable Spawner(20 seconds cooldown)",
			new string[2] { "Exploding Host Zombie", "Giant Zombie" }
		},
		{
			"Insane Zombie Infinite Spawner(20 seconds cooldown)",
			new string[2] { "Exploding Host Zombie", "Giant Zombie"