plugins/Zero.dll

Decompiled 43 minutes ago
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using BepInEx;
using BepInEx.Bootstrap;
using BepInEx.Configuration;
using EntityStates;
using HarmonyLib;
using KinematicCharacterController;
using R2API;
using R2API.Networking;
using R2API.Networking.Interfaces;
using R2API.Utils;
using RiskOfOptions;
using RiskOfOptions.OptionConfigs;
using RiskOfOptions.Options;
using RoR2;
using RoR2.Achievements;
using RoR2.ContentManagement;
using RoR2.Projectile;
using RoR2.Skills;
using RoR2.UI;
using TMPro;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.Networking;
using UnityEngine.Rendering;
using UnityEngine.UI;

[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: AssemblyVersion("0.0.0.0")]
namespace ZeroHunter;

[BepInPlugin("com.tox.zero", "Zero", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
public sealed class Plugin : BaseUnityPlugin
{
	public static Plugin Instance;

	public static GameObject BodyPrefab;

	public static GameObject DisplayPrefab;

	public static GameObject Bolt;

	public static GameObject VolleyBolt;

	public static GameObject HeavyBolt;

	public static SurvivorDef Survivor;

	public static Sprite PrimaryIcon;

	public static Sprite SecondaryIcon;

	public static Sprite UtilityIcon;

	public static Sprite SpecialIcon;

	public static Sprite BoltIcon;

	public static Sprite PinIcon;

	public static Sprite PassiveIcon;

	public static ModdedDamageType AmbushDamage;

	public static ModdedDamageType PinDamage;

	public static ModdedDamageType DisengageDamage;

	public static ModdedDamageType RecallDamage;

	public static BuffDef BarrierFlash;

	public static readonly Color Burgundy = new Color(0.34f, 0.055f, 0.12f);

	public static readonly Color Accent = new Color(0.61f, 0.37f, 0.84f);

	private Harmony harmony;

	public const BindingFlags Flags = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic;

	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_0015: Unknown result type (might be due to invalid IL or missing references)
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		//IL_001f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0024: Unknown result type (might be due to invalid IL or missing references)
		//IL_0029: Unknown result type (might be due to invalid IL or missing references)
		//IL_010c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0116: Expected O, but got Unknown
		Instance = this;
		try
		{
			AmbushDamage = DamageAPI.ReserveDamageType();
			PinDamage = DamageAPI.ReserveDamageType();
			DisengageDamage = DamageAPI.ReserveDamageType();
			RecallDamage = DamageAPI.ReserveDamageType();
			HunterBalance.Load(((BaseUnityPlugin)this).Config);
			if (Chainloader.PluginInfos.ContainsKey("com.rune580.riskofoptions"))
			{
				HunterOptions.Register();
			}
			PrimaryIcon = ZeroIcons.Make(0);
			SecondaryIcon = ZeroIcons.Make(1);
			UtilityIcon = ZeroIcons.Make(2);
			SpecialIcon = ZeroIcons.Make(3);
			BoltIcon = ZeroIcons.Make(4);
			PinIcon = ZeroIcons.Make(5);
			PassiveIcon = ZeroIcons.Make(6);
			HunterKit.RegisterBuff();
			ZeroFeedback.Register();
			((Component)this).gameObject.AddComponent<ZeroFeedback>();
			ZeroApex.RegisterAssets();
			ZeroUnlocks.Register();
			ZeroSkins.RegisterUnlocks();
			NetworkingAPI.RegisterMessageType<RecallRequestMessage>();
			NetworkingAPI.RegisterMessageType<RecallViewMessage>();
			RegisterStates();
			BuildBody();
			BuildProjectiles();
			HunterKit.BuildProjectiles();
			GlobalEventManager.onServerDamageDealt += Damage;
			harmony = new Harmony("com.tox.zero");
			harmony.PatchAll(typeof(ZeroRecallCounter));
			harmony.PatchAll(typeof(HunterActiveIcon));
			harmony.PatchAll(typeof(ZeroBoldnessDamage));
			harmony.PatchAll(typeof(ZeroHookRopeConstraint));
			harmony.PatchAll(typeof(ZeroHookJump));
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Zero 0.5.15: piercing bolts, held arrowstorm, disengage, terrain swing and Wild Hunt registered.");
		}
		catch (Exception ex)
		{
			((BaseUnityPlugin)this).Logger.LogError((object)ex);
			throw;
		}
	}

	private void OnDestroy()
	{
		HunterKit.Cleanup();
		GlobalEventManager.onServerDamageDealt -= Damage;
		if (harmony != null)
		{
			harmony.UnpatchSelf();
		}
	}

	private static void RegisterStates()
	{
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_000a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0032: Unknown result type (might be due to invalid IL or missing references)
		//IL_003a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0042: Unknown result type (might be due to invalid IL or missing references)
		//IL_004a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_005a: Unknown result type (might be due to invalid IL or missing references)
		bool flag = default(bool);
		ContentAddition.AddEntityState<ZeroDab>(ref flag);
		ContentAddition.AddEntityState<ZeroSixSeven>(ref flag);
		ContentAddition.AddEntityState<PrimaryBolt>(ref flag);
		ContentAddition.AddEntityState<TwinVolley>(ref flag);
		ContentAddition.AddEntityState<Dive>(ref flag);
		ContentAddition.AddEntityState<Recall>(ref flag);
		ContentAddition.AddEntityState<NightBolt>(ref flag);
		ContentAddition.AddEntityState<Impale>(ref flag);
		ContentAddition.AddEntityState<Arrowstorm>(ref flag);
		ContentAddition.AddEntityState<Disengage>(ref flag);
		ContentAddition.AddEntityState<HunterHook>(ref flag);
		ContentAddition.AddEntityState<WildHunt>(ref flag);
	}

	private static void Text(string token, string title, string description)
	{
		LanguageAPI.Add(token + "_NAME", title);
		LanguageAPI.Add(token + "_DESC", description);
	}

	private static SkillDef Skill<T>(string token, string title, string description, Sprite icon, float recharge, int stock, bool press, string machine = "Weapon") where T : EntityState
	{
		//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
		//IL_010e: Unknown result type (might be due to invalid IL or missing references)
		object obj;
		switch (token)
		{
		case "ZERO_PRIMARY":
			obj = ScriptableObject.CreateInstance<ZeroPrimarySkillDef>();
			break;
		case "ZERO_SPECIAL":
		case "ZERO_HUNT":
			obj = ScriptableObject.CreateInstance<ZeroRecallSkillDef>();
			break;
		case "ZERO_APEX":
			obj = ScriptableObject.CreateInstance<ZeroApexSkillDef>();
			break;
		case "ZERO_SALVE":
			obj = ScriptableObject.CreateInstance<ZeroSalveSkillDef>();
			break;
		case "ZERO_UTILITY":
			obj = ScriptableObject.CreateInstance<ZeroDiveSkillDef>();
			break;
		default:
			obj = ScriptableObject.CreateInstance<SkillDef>();
			break;
		}
		SkillDef val = (SkillDef)obj;
		((Object)val).name = (val.skillName = token);
		val.skillNameToken = token + "_NAME";
		val.skillDescriptionToken = token + "_DESC";
		Text(token, title, description);
		val.icon = icon;
		val.activationState = new SerializableEntityStateType(typeof(T));
		val.activationStateMachineName = machine;
		val.interruptPriority = (InterruptPriority)((!(token == "ZERO_PRIMARY")) ? 2 : 0);
		val.baseMaxStock = stock;
		val.baseRechargeInterval = recharge;
		val.rechargeStock = 1;
		val.requiredStock = 1;
		val.stockToConsume = 1;
		val.fullRestockOnAssign = true;
		int resetCooldownTimerOnUse;
		switch (token)
		{
		default:
			resetCooldownTimerOnUse = ((token == "ZERO_HOOK") ? 1 : 0);
			break;
		case "ZERO_SALVE":
		case "ZERO_APEX":
		case "ZERO_BOLT":
		case "ZERO_HUNT":
		case "ZERO_DISENGAGE":
			resetCooldownTimerOnUse = 1;
			break;
		}
		val.resetCooldownTimerOnUse = (byte)resetCooldownTimerOnUse != 0;
		int beginSkillCooldownOnSkillEnd;
		switch (token)
		{
		default:
			beginSkillCooldownOnSkillEnd = ((token == "ZERO_GLIDE") ? 1 : 0);
			break;
		case "ZERO_SALVE":
		case "ZERO_APEX":
		case "ZERO_UTILITY":
		case "ZERO_BOLT":
		case "ZERO_DISENGAGE":
		case "ZERO_HOOK":
		case "ZERO_HUNT":
			beginSkillCooldownOnSkillEnd = 1;
			break;
		}
		val.beginSkillCooldownOnSkillEnd = (byte)beginSkillCooldownOnSkillEnd != 0;
		val.attackSpeedBuffsRestockSpeed = false;
		val.cancelSprintingOnActivation = token != "ZERO_UTILITY";
		val.canceledFromSprinting = false;
		val.isCombatSkill = true;
		val.mustKeyPress = press;
		ContentAddition.AddSkillDef(val);
		return val;
	}

	private static void Family(GenericSkill skill, params Variant[] variants)
	{
		SkillFamily val = ScriptableObject.CreateInstance<SkillFamily>();
		((Object)val).name = "Zero" + variants[0].skillDef.skillName + "Family";
		val.variants = variants;
		typeof(GenericSkill).GetField("_skillFamily", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic).SetValue(skill, val);
		ContentAddition.AddSkillFamily(val);
	}

	private static Variant Variant(SkillDef skill, UnlockableDef unlock = null)
	{
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Unknown result type (might be due to invalid IL or missing references)
		//IL_002c: Expected O, but got Unknown
		//IL_002c: Unknown result type (might be due to invalid IL or missing references)
		Variant result = new Variant
		{
			skillDef = skill,
			unlockableDef = unlock
		};
		((Variant)(ref result)).viewableNode = new Node(skill.skillNameToken, false, (Node)null);
		return result;
	}

	private static void BuildBody()
	{
		//IL_00ea: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_012c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0136: Unknown result type (might be due to invalid IL or missing references)
		//IL_0137: Unknown result type (might be due to invalid IL or missing references)
		//IL_0245: Unknown result type (might be due to invalid IL or missing references)
		//IL_024a: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a7: Unknown result type (might be due to invalid IL or missing references)
		//IL_032b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0330: Unknown result type (might be due to invalid IL or missing references)
		//IL_0366: Unknown result type (might be due to invalid IL or missing references)
		//IL_036b: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fe: Unknown result type (might be due to invalid IL or missing references)
		//IL_0403: Unknown result type (might be due to invalid IL or missing references)
		//IL_044d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0452: Unknown result type (might be due to invalid IL or missing references)
		//IL_049e: Unknown result type (might be due to invalid IL or missing references)
		//IL_04a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_04ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_04f4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0572: Unknown result type (might be due to invalid IL or missing references)
		//IL_0577: Unknown result type (might be due to invalid IL or missing references)
		//IL_05ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_05b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_05e8: Unknown result type (might be due to invalid IL or missing references)
		//IL_05ed: Unknown result type (might be due to invalid IL or missing references)
		//IL_06c6: Unknown result type (might be due to invalid IL or missing references)
		//IL_06cb: Unknown result type (might be due to invalid IL or missing references)
		//IL_06dc: Unknown result type (might be due to invalid IL or missing references)
		//IL_06e1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0740: Unknown result type (might be due to invalid IL or missing references)
		//IL_0745: Unknown result type (might be due to invalid IL or missing references)
		//IL_0756: Unknown result type (might be due to invalid IL or missing references)
		//IL_075b: Unknown result type (might be due to invalid IL or missing references)
		//IL_078d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0792: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0671: Unknown result type (might be due to invalid IL or missing references)
		//IL_0676: Unknown result type (might be due to invalid IL or missing references)
		//IL_0687: Unknown result type (might be due to invalid IL or missing references)
		//IL_068c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0640: Unknown result type (might be due to invalid IL or missing references)
		//IL_0645: Unknown result type (might be due to invalid IL or missing references)
		//IL_0656: Unknown result type (might be due to invalid IL or missing references)
		//IL_065b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0927: Unknown result type (might be due to invalid IL or missing references)
		//IL_092c: Unknown result type (might be due to invalid IL or missing references)
		GameObject val = LegacyResourcesAPI.Load<GameObject>("Prefabs/CharacterBodies/CommandoBody");
		if (!Object.op_Implicit((Object)(object)val))
		{
			throw new Exception("Native Commando humanoid unavailable");
		}
		BodyPrefab = PrefabAPI.InstantiateClone(val, "ZeroBody", true);
		CharacterBody component = BodyPrefab.GetComponent<CharacterBody>();
		component.baseNameToken = "ZERO_NAME";
		component.subtitleNameToken = "ZERO_SUBTITLE";
		component.baseMaxHealth = 70f;
		component.levelMaxHealth = 21f;
		component.baseRegen = 1f;
		component.levelRegen = 0.2f;
		component.baseDamage = 10f;
		component.levelDamage = 2f;
		component.baseArmor = 0f;
		component.levelArmor = 0f;
		component.baseMoveSpeed = 7f;
		component.baseAttackSpeed = 1f;
		component.levelAttackSpeed = 0f;
		component.baseCrit = 1f;
		component.levelCrit = 0f;
		component.baseJumpCount = 1;
		component.bodyColor = Burgundy;
		component.portraitIcon = (Texture)(object)ZeroIcons.Make(7).texture;
		component.defaultCrosshairPrefab = ZeroCrosshair.Make();
		component.preferredPodPrefab = LegacyResourcesAPI.Load<GameObject>("Prefabs/CharacterBodies/CommandoBody").GetComponent<CharacterBody>().preferredPodPrefab;
		component.bodyFlags = (BodyFlags)(component.bodyFlags & -129);
		MonoBehaviour[] components = BodyPrefab.GetComponents<MonoBehaviour>();
		foreach (MonoBehaviour val2 in components)
		{
			if (Object.op_Implicit((Object)(object)val2) && (((object)val2).GetType().Name.StartsWith("Bandit", StringComparison.Ordinal) || ((object)val2).GetType().Name.StartsWith("Commando", StringComparison.Ordinal)))
			{
				Object.DestroyImmediate((Object)(object)val2);
			}
		}
		SkillLocator component2 = BodyPrefab.GetComponent<SkillLocator>();
		component2.passiveSkill.enabled = true;
		component2.passiveSkill.skillNameToken = "ZERO_PASSIVE_NAME";
		component2.passiveSkill.skillDescriptionToken = "ZERO_PASSIVE_DESC";
		component2.passiveSkill.icon = PassiveIcon;
		Text("ZERO_PASSIVE", "Übermut", "Direkte Primärtreffer geben für <style=cIsUtility>3 Sekunden</style> einen Stapel Übermut, bis zu <style=cIsUtility>5 Stapel</style>. Jeder Stapel erhöht deinen verursachten und erlittenen Schaden um <style=cIsDamage>4 %</style>. Weitere direkte Primärtreffer erneuern die Dauer aller Stapel. Blutung und Item-Procs geben keine Stapel.");
		Family(component2.primary, Variant(Skill<PrimaryBolt>("ZERO_PRIMARY", "Zwillingsbolzen", "Schieße abwechselnd mit beiden Handarmbrüsten. Jeder frei gezielte Bolzen verursacht <style=cIsDamage>70 % Schaden</style>. Grundintervall 0,2 Sekunden, skaliert mit Angriffstempo.\n\nProc-Koeffizient: <style=cIsDamage>1,0</style>.", PrimaryIcon, 0f, 1, press: false, "Weapon")));
		Family(component2.secondary, Variant(Skill<TwinVolley>("ZERO_SECONDARY", "Durchbohren", "Feuere beide Handarmbrüste gleichzeitig: <style=cIsDamage>2 × " + HunterBalance.P(HunterBalance.PierceDamage) + " Schaden</style>. Jeder Bolzen durchbohrt alle Gegner auf seiner Flugbahn und verursacht <style=cIsDamage>Blutung</style>. Beide Bolzen können je einen Blutungsstapel setzen. Wände stoppen ihn.\n\nProc-Koeffizient: <style=cIsDamage>0,7 pro Bolzen</style>.", SecondaryIcon, 5f, 1, press: true, "Weapon")), Variant(Skill<Arrowstorm>("ZERO_BOLT", "Pfeilsturm", "Halte M2 bis zu <style=cIsUtility>" + HunterBalance.N(HunterBalance.StormDuration) + " Sekunden</style>, um einen breiten Bereich vor dir mit Bolzen zu überziehen. <style=cIsDamage>" + HunterBalance.P(HunterBalance.StormDamage) + " Schaden pro Bolzen</style>; " + HunterBalance.N(HunterBalance.StormRate) + " Bolzen/Sekunde, skaliert mit Angriffstempo. Loslassen beendet den Sturm. Die Abklingzeit beginnt danach.\n\nProc-Koeffizient: <style=cIsDamage>0,4 pro Bolzen</style>.", ZeroIcons.Make(8), HunterBalance.StormCooldown, 1, press: true, "Weapon"), ZeroUnlocks.BoltUnlock), Variant(Skill<ZeroDrawShot>("ZERO_SALVE", "Salve", ZeroApex.SalveText, ZeroApex.SalveIcon, 6f, 1, press: true, "Weapon"), ZeroUnlocks.SalveUnlock));
		Family(component2.utility, Variant(Skill<Disengage>("ZERO_DISENGAGE", "Rückzug", "Springe in einem hohen Bogen ungefähr <style=cIsUtility>" + HunterBalance.N(HunterBalance.DisengageDistance) + " Meter nach hinten</style>. Eine Explosion am Absprungort verursacht in " + HunterBalance.N(HunterBalance.DisengageRadius) + " Metern <style=cIsDamage>" + HunterBalance.P(HunterBalance.DisengageDamage) + " Schaden</style> und <style=cIsUtility>betäubt für 1 Sekunde</style>.\n\nProc-Koeffizient: <style=cIsDamage>1,0</style>.", ZeroIcons.Make(9), HunterBalance.DisengageCooldown, 1, press: true, "Body")), Variant(Skill<Dive>("ZERO_UTILITY", "Abtauchen", "Dashe <style=cIsUtility>" + HunterBalance.N(HunterBalance.DiveSpeed) + " Meter</style> in deine Laufrichtung (ohne Eingabe nach vorne). Der Dash bremst einen Fall ab und verhindert so Fallschaden. Danach <style=cIsUtility>3 Sekunden unsichtbar</style> mit <style=cIsUtility>+100 % Bewegungstempo</style>. Angreifen beendet die Tarnung. Die Abklingzeit beginnt erst, wenn die Tarnung endet. Nach Ende der Tarnung erhältst du für <style=cIsDamage>2 Sekunden +25 % Schaden</style>.", UtilityIcon, 6f, 1, press: true, "Body"), ZeroUnlocks.CloakUnlock), Variant(Skill<HunterHook>("ZERO_HOOK", "Jägerhaken", "Halte Utility: Schieße einen Haken bis zu <style=cIsUtility>" + HunterBalance.N(HunterBalance.HookRange) + " Meter</style> weit ins Gelände. Das Seil <style=cIsUtility>zieht dich stetig heran</style>, du kannst dabei weiter schwingen und lenken. Am Anker löst sich der Haken von selbst; Loslassen löst ihn früher. Haftet ausschließlich am Gelände, niemals an Gegnern.", ZeroIcons.Make(11), HunterBalance.HookCooldown, 1, press: true, "HunterHook"), ZeroUnlocks.HookUnlock), Variant(Skill<ZeroGlide>("ZERO_GLIDE", "Gleiten", "Breite Schattenflügel aus und gleite, bis du wieder auf dem Boden stehst: Du schwebst wie Artificer, sinkst höchstens " + HunterBalance.N(HunterBalance.GlideFall) + " m/s und steuerst in der Luft voll. Springen (falls Sprünge übrig sind) gibt zusätzlich Schub in Blickrichtung. Erneutes Drücken legt die Flügel an. Vom Boden aus springst du beim Aktivieren leicht ab.", ZeroIcons.Make(12), HunterBalance.GlideCooldown, 1, press: true, "ZeroGlide"), ZeroUnlocks.GlideUnlock));
		Family(component2.special, Variant(Skill<WildHunt>("ZERO_HUNT", "Flammengrab", "Direkte Bolzentreffer hinterlassen wie beim Schattenrückruf bis zu <style=cIsUtility>10 Bolzenschatten pro Gegner für 15 Sekunden</style>. R entzündet alle markierten Gegner in einem <style=cIsDamage>Feuerstoß</style>: <style=cIsDamage>" + HunterBalance.P(HunterBalance.HuntBurnBase) + " Schaden + " + HunterBalance.P(HunterBalance.HuntBurnPerStack) + " pro Bolzenschatten</style>, danach <style=cIsDamage>Brand</style>, der mit den Bolzenschatten stärker und länger wird. Keine Heilung. Benötigt mindestens einen Bolzenschatten.\n\nProc-Koeffizient: <style=cIsDamage>1,0</style>.", ZeroIcons.Make(10), HunterBalance.HuntCooldown, 1, press: true, "Weapon")), Variant(Skill<Recall>("ZERO_SPECIAL", "Schattenrückruf", "Direkte Bolzentreffer hinterlassen bis zu <style=cIsUtility>10 Bolzenschatten pro Gegner für 15 Sekunden</style>. R zieht alle Schatten zu dir zurück. Jeder Rückflug trifft durchquerte Gegner einmal für <style=cIsDamage>150 % Schaden</style>; Wände stoppen ihn. Positioniere dich neu, um die Rückflugbahnen auszurichten.\n\nProc-Koeffizient: <style=cIsDamage>0,5 pro Rückflug</style>. Kritische Ursprungstreffer erzeugen kritische Rückflüge. Heilt dich um <style=cIsHealing>10 % des tatsächlich verursachten Rückrufschadens</style>. Benötigt mindestens einen Bolzenschatten.", SpecialIcon, 25f, 1, press: true, "Weapon"), ZeroUnlocks.PinUnlock), Variant(Skill<ZeroApexState>("ZERO_APEX", "Wilde Jagd", ZeroApex.ApexText, ZeroApex.ApexIcon, 35f, 1, press: true, "HunterBuff"), ZeroUnlocks.ApexUnlock));
		NetworkStateMachine component3 = BodyPrefab.GetComponent<NetworkStateMachine>();
		EntityStateMachine[] components2 = BodyPrefab.GetComponents<EntityStateMachine>();
		foreach (EntityStateMachine val3 in components2)
		{
			if (val3.customName == "Body")
			{
				val3.initialStateType = new SerializableEntityStateType(typeof(GenericCharacterMain));
				val3.mainStateType = new SerializableEntityStateType(typeof(GenericCharacterMain));
			}
			else
			{
				val3.initialStateType = new SerializableEntityStateType(typeof(Idle));
				val3.mainStateType = new SerializableEntityStateType(typeof(Idle));
			}
		}
		EntityStateMachine val4 = BodyPrefab.AddComponent<EntityStateMachine>();
		val4.customName = "HunterBuff";
		val4.initialStateType = new SerializableEntityStateType(typeof(Idle));
		val4.mainStateType = new SerializableEntityStateType(typeof(Idle));
		FieldInfo field = typeof(NetworkStateMachine).GetField("stateMachines", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
		List<EntityStateMachine> list = new List<EntityStateMachine>((EntityStateMachine[])field.GetValue(component3));
		list.Add(val4);
		EntityStateMachine val5 = BodyPrefab.AddComponent<EntityStateMachine>();
		val5.customName = "ZeroGlide";
		val5.initialStateType = new SerializableEntityStateType(typeof(Idle));
		val5.mainStateType = new SerializableEntityStateType(typeof(Idle));
		list.Add(val5);
		EntityStateMachine val6 = BodyPrefab.AddComponent<EntityStateMachine>();
		val6.customName = "HunterHook";
		val6.initialStateType = new SerializableEntityStateType(typeof(Idle));
		val6.mainStateType = new SerializableEntityStateType(typeof(Idle));
		list.Add(val6);
		field.SetValue(component3, list.ToArray());
		BodyPrefab.AddComponent<ZeroDabInput>();
		BodyPrefab.AddComponent<ZeroController>();
		ZeroApex.Attach(BodyPrefab);
		BodyPrefab.AddComponent<ZeroRecall>();
		ZeroModel.BuildWorld(BodyPrefab);
		ContentAddition.AddBody(BodyPrefab);
		DisplayPrefab = PrefabAPI.CreateEmptyPrefab("ZeroDisplay", false);
		GameObject val7 = Object.Instantiate<GameObject>(((Component)BodyPrefab.GetComponent<ModelLocator>().modelTransform).gameObject, DisplayPrefab.transform, false);
		((Object)val7).name = "ZeroDisplayModel";
		CharacterModel component4 = val7.GetComponent<CharacterModel>();
		if (Object.op_Implicit((Object)(object)component4))
		{
			component4.body = null;
			((Behaviour)component4).enabled = false;
		}
		Collider[] componentsInChildren = val7.GetComponentsInChildren<Collider>(true);
		foreach (Collider val8 in componentsInChildren)
		{
			Object.DestroyImmediate((Object)(object)val8);
		}
		ZeroModel component5 = val7.GetComponent<ZeroModel>();
		component5.Display = true;
		Survivor = ScriptableObject.CreateInstance<SurvivorDef>();
		Survivor.cachedName = "Zero";
		Survivor.bodyPrefab = BodyPrefab;
		Survivor.displayPrefab = DisplayPrefab;
		Survivor.displayNameToken = "ZERO_NAME";
		Survivor.descriptionToken = "ZERO_DESCRIPTION";
		Survivor.outroFlavorToken = "ZERO_OUTRO";
		Survivor.mainEndingEscapeFailureFlavorToken = "ZERO_FAIL";
		Survivor.primaryColor = Burgundy;
		Survivor.desiredSortPosition = 50f;
		Survivor.unlockableDef = ZeroCharacterUnlock.Def;
		ContentAddition.AddSurvivorDef(Survivor);
		LanguageAPI.Add("ZERO_NAME", "Zíro");
		LanguageAPI.Add("ZERO_SUBTITLE", "Der verhüllte Jäger");
		LanguageAPI.Add("ZERO_DESCRIPTION", "Zíro jagt mit zwei Handarmbrüsten und frei gezielten Bolzen.\n\n<style=cIsUtility>Rückzug</style> eröffnet mit einem Rückwärtssprung einen neuen Angriffswinkel und betäubt Gegner am Absprungort. Schalte Tarnung und Jägerhaken als alternative Bewegung frei. Direkte Primärtreffer stapeln Übermut: mehr verursachter Schaden, aber auch mehr erlittener Schaden.\n\n<style=cIsDamage>Durchbohren</style> durchschlägt Gegner mit beiden Waffen und verursacht Blutung. <style=cIsDamage>Flammengrab</style> lässt die Bolzenschatten in Gegnern in Flammen aufgehen.\n\nSchalte <style=cIsDamage>Pfeilsturm</style>, <style=cIsDamage>Schattenrückruf</style> und <style=cIsDamage>Wilde Jagd</style> als alternative Fähigkeiten frei.");
		LanguageAPI.Add("ZERO_OUTRO", "…und so verschwand er, ehe sein Name fiel.");
		LanguageAPI.Add("ZERO_FAIL", "…und seine Spur verlor sich im Schatten.");
		LanguageAPI.Add("ZERO_SKIN_NAME", "Nachtjäger");
		LanguageAPI.Add("ZERO_BODY_NAME", "Zíro");
		LanguageAPI.Add("ZERO_BODY_LORE", "Der Mantel trägt die Spuren vieler Jagden. Unter der Kapuze wartet kein Versprechen, nur Geduld. Zwei Armbrüste, gespannte Sehnen und ein Name, den niemand laut ausspricht: Zíro.");
		GameObject val9 = LegacyResourcesAPI.Load<GameObject>("Prefabs/CharacterMasters/CommandoMonsterMaster");
		if (Object.op_Implicit((Object)(object)val9))
		{
			GameObject val10 = PrefabAPI.InstantiateClone(val9, "ZeroMonsterMaster", true);
			val10.GetComponent<CharacterMaster>().bodyPrefab = BodyPrefab;
			ContentAddition.AddMaster(val10);
		}
	}

	private static void BuildProjectiles()
	{
		Bolt = MakeBolt("ZeroNightBolt", heavy: false);
		VolleyBolt = MakeBolt("ZeroVolleyBolt", heavy: false);
		VolleyBolt.GetComponent<ProjectileController>().procCoefficient = 0.7f;
		HeavyBolt = MakeBolt("ZeroImpaleBolt", heavy: true);
	}

	private static GameObject MakeBolt(string name, bool heavy)
	{
		GameObject val = PrefabAPI.InstantiateClone(LegacyResourcesAPI.Load<GameObject>("Prefabs/Projectiles/Arrow"), name, true);
		MonoBehaviour[] components = val.GetComponents<MonoBehaviour>();
		foreach (MonoBehaviour val2 in components)
		{
			string name2 = ((object)val2).GetType().Name;
			if (name2.Contains("Steer") || name2.Contains("TargetFinder") || name2 == "ProjectileTargetComponent" || name2.Contains("StickOnImpact") || name2.Contains("OverlapAttack"))
			{
				Object.DestroyImmediate((Object)(object)val2);
			}
		}
		ProjectileSimple val3 = val.GetComponent<ProjectileSimple>();
		if (!Object.op_Implicit((Object)(object)val3))
		{
			val3 = val.AddComponent<ProjectileSimple>();
		}
		val3.desiredForwardSpeed = ((!heavy) ? 140 : 100);
		val3.lifetime = 8f;
		val3.oscillate = false;
		Rigidbody component = val.GetComponent<Rigidbody>();
		if (Object.op_Implicit((Object)(object)component))
		{
			component.useGravity = false;
			component.collisionDetectionMode = (CollisionDetectionMode)2;
		}
		ProjectileController component2 = val.GetComponent<ProjectileController>();
		component2.procCoefficient = 1f;
		GameObject val4 = PrefabAPI.CreateEmptyPrefab(name + "Ghost", false);
		val4.AddComponent<ProjectileGhostController>();
		ZeroGeometry.Bolt(val4.transform, heavy);
		component2.ghostPrefab = val4;
		component2.ghostPrefabAddress = null;
		AssetOrDirectReference<GameObject> val5 = new AssetOrDirectReference<GameObject>();
		val5.directRef = val4;
		typeof(ProjectileController).GetField("ghostAssetOrDirectReference", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic).SetValue(component2, val5);
		ProjectileSingleTargetImpact val6 = val.GetComponent<ProjectileSingleTargetImpact>();
		if (!Object.op_Implicit((Object)(object)val6))
		{
			val6 = val.AddComponent<ProjectileSingleTargetImpact>();
		}
		val6.destroyOnWorld = true;
		val6.destroyWhenNotAlive = true;
		val.AddComponent<ZeroProjectileMetadata>();
		ContentAddition.AddProjectile(val);
		return val;
	}

	private static void Damage(DamageReport report)
	{
		//IL_0078: Unknown result type (might be due to invalid IL or missing references)
		//IL_0088: Unknown result type (might be due to invalid IL or missing references)
		//IL_008e: Unknown result type (might be due to invalid IL or missing references)
		//IL_009e: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a4: Invalid comparison between Unknown and I4
		//IL_0192: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0118: Unknown result type (might be due to invalid IL or missing references)
		//IL_011e: Unknown result type (might be due to invalid IL or missing references)
		if (!NetworkServer.active || report.damageInfo == null || report.damageInfo.rejected || report.damageDealt <= 0f || !Object.op_Implicit((Object)(object)report.attackerBody) || ((Object)report.attackerBody).name.IndexOf("ZeroBody", StringComparison.Ordinal) < 0 || !Object.op_Implicit((Object)(object)report.victimBody))
		{
			return;
		}
		if (DamageAPI.HasModdedDamageType(report.damageInfo, RecallDamage) && report.attackerTeamIndex != report.victimTeamIndex && (int)report.damageInfo.dotIndex == -1 && report.damageInfo.procChainMask.mask == 0 && Object.op_Implicit((Object)(object)report.attackerBody.healthComponent) && report.attackerBody.healthComponent.alive)
		{
			float num = Mathf.Min(report.damageDealt, Mathf.Max(0f, report.combinedHealthBeforeDamage));
			report.attackerBody.healthComponent.Heal(num * 0.1f, default(ProcChainMask), true);
		}
		ZeroProjectileMetadata zeroProjectileMetadata = ((!Object.op_Implicit((Object)(object)report.damageInfo.inflictor)) ? null : report.damageInfo.inflictor.GetComponent<ZeroProjectileMetadata>());
		if (Object.op_Implicit((Object)(object)zeroProjectileMetadata))
		{
			((Component)report.attackerBody).GetComponent<ZeroController>().Embolden(report);
			ZeroRecall component = ((Component)report.attackerBody).GetComponent<ZeroRecall>();
			if (Object.op_Implicit((Object)(object)component))
			{
				component.Capture(report);
			}
		}
		if (!DamageAPI.HasModdedDamageType(report.damageInfo, PinDamage) || report.attackerTeamIndex == report.victimTeamIndex)
		{
			return;
		}
		CharacterMotor characterMotor = report.victimBody.characterMotor;
		if (Object.op_Implicit((Object)(object)characterMotor) && !report.victimBody.isChampion && characterMotor.mass <= 500f)
		{
			ZeroWallPin zeroWallPin = ((Component)report.victimBody).GetComponent<ZeroWallPin>();
			if (!Object.op_Implicit((Object)(object)zeroWallPin))
			{
				zeroWallPin = ((Component)report.victimBody).gameObject.AddComponent<ZeroWallPin>();
			}
			zeroWallPin.Begin(report);
		}
	}

	public static bool IsZero(CharacterBody body)
	{
		return Object.op_Implicit((Object)(object)body) && ((Object)body).name.StartsWith("ZeroBody", StringComparison.Ordinal);
	}

	public static Ray Aim(CharacterBody body)
	{
		//IL_0015: Unknown result type (might be due to invalid IL or missing references)
		//IL_0020: Unknown result type (might be due to invalid IL or missing references)
		//IL_0025: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		if (ZeroFirstPerson.TryAim(body, out var ray))
		{
			return ray;
		}
		return new Ray(body.inputBank.aimOrigin, body.inputBank.aimDirection);
	}
}
public sealed class ZeroDiveSkillDef : SkillDef
{
	public override void OnFixedUpdate(GenericSkill skillSlot, float deltaTime)
	{
		CharacterBody characterBody = skillSlot.characterBody;
		if (!Object.op_Implicit((Object)(object)characterBody) || !characterBody.HasBuff(Buffs.Cloak) || skillSlot.stock >= skillSlot.maxStock)
		{
			((SkillDef)this).OnFixedUpdate(skillSlot, deltaTime);
		}
	}
}
public sealed class ZeroPrimarySkillDef : SkillDef
{
	public override bool IsReady(GenericSkill skill)
	{
		CharacterBody characterBody = skill.characterBody;
		if (Object.op_Implicit((Object)(object)characterBody) && Object.op_Implicit((Object)(object)characterBody.inputBank) && Object.op_Implicit((Object)(object)characterBody.skillLocator))
		{
			InputBankTest inputBank = characterBody.inputBank;
			SkillLocator skillLocator = characterBody.skillLocator;
			if (inputBank.skill2.down && Object.op_Implicit((Object)(object)skillLocator.secondary) && skillLocator.secondary.stock > 0 && skillLocator.secondary.IsReady())
			{
				return false;
			}
			if (((ButtonState)(ref inputBank.skill4)).justPressed && Object.op_Implicit((Object)(object)skillLocator.special) && skillLocator.special.stock > 0 && skillLocator.special.IsReady())
			{
				return false;
			}
		}
		return ((SkillDef)this).IsReady(skill);
	}
}
public static class ZeroAnimations
{
	public const float PrimaryInterval = 0.2f;

	public const float PrimaryFire = 0.18f;

	public const float VolleyFire = 0.35f;

	public const float NightFire = 0.2f;

	public const float ImpaleFire = 0.38f;

	public static float Ease(float t)
	{
		t = Mathf.Clamp01(t);
		return t * t * t * (t * (t * 6f - 15f) + 10f);
	}

	public static Vector3 Rest(int side, bool fps)
	{
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		return (!fps) ? new Vector3((float)side * 0.3f, 1.17f, 0.47f) : new Vector3((float)side * 0.34f, -0.255f, 0.55f);
	}

	public static Quaternion RestRotation(int side)
	{
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		return Quaternion.Euler(2f, (float)(-side), 0f);
	}

	public static float ShotPulse(float phase, float fire)
	{
		return (!(phase < fire)) ? Mathf.Sin(Mathf.Clamp01((phase - fire) / (1f - fire)) * (float)Math.PI) : 0f;
	}

	public static void Apply(string motion, float t, int hand, bool fps, ZeroController control, bool recoil, ref Vector3 r, ref Vector3 l, ref Quaternion rr, ref Quaternion lr)
	{
		//IL_0100: Unknown result type (might be due to invalid IL or missing references)
		//IL_0114: Unknown result type (might be due to invalid IL or missing references)
		//IL_011b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0120: Unknown result type (might be due to invalid IL or missing references)
		//IL_0125: Unknown result type (might be due to invalid IL or missing references)
		//IL_012e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0142: Unknown result type (might be due to invalid IL or missing references)
		//IL_0149: Unknown result type (might be due to invalid IL or missing references)
		//IL_014e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0153: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_0200: Unknown result type (might be due to invalid IL or missing references)
		//IL_0207: Unknown result type (might be due to invalid IL or missing references)
		//IL_020c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0211: Unknown result type (might be due to invalid IL or missing references)
		//IL_021a: Unknown result type (might be due to invalid IL or missing references)
		//IL_022e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0235: Unknown result type (might be due to invalid IL or missing references)
		//IL_023a: Unknown result type (might be due to invalid IL or missing references)
		//IL_023f: Unknown result type (might be due to invalid IL or missing references)
		//IL_027f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0293: Unknown result type (might be due to invalid IL or missing references)
		//IL_029a: Unknown result type (might be due to invalid IL or missing references)
		//IL_029f: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c8: Unknown result type (might be due to invalid IL or missing references)
		//IL_02cd: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02db: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_02fd: Unknown result type (might be due to invalid IL or missing references)
		//IL_0302: Unknown result type (might be due to invalid IL or missing references)
		//IL_030b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0328: Unknown result type (might be due to invalid IL or missing references)
		//IL_032d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0332: Unknown result type (might be due to invalid IL or missing references)
		//IL_0359: Unknown result type (might be due to invalid IL or missing references)
		//IL_036d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0374: Unknown result type (might be due to invalid IL or missing references)
		//IL_0379: Unknown result type (might be due to invalid IL or missing references)
		//IL_037e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0387: Unknown result type (might be due to invalid IL or missing references)
		//IL_039b: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a7: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_04f4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0508: Unknown result type (might be due to invalid IL or missing references)
		//IL_050d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0512: Unknown result type (might be due to invalid IL or missing references)
		//IL_051b: Unknown result type (might be due to invalid IL or missing references)
		//IL_052f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0534: Unknown result type (might be due to invalid IL or missing references)
		//IL_0539: Unknown result type (might be due to invalid IL or missing references)
		//IL_0542: Unknown result type (might be due to invalid IL or missing references)
		//IL_0556: Unknown result type (might be due to invalid IL or missing references)
		//IL_055b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0560: Unknown result type (might be due to invalid IL or missing references)
		//IL_0569: Unknown result type (might be due to invalid IL or missing references)
		//IL_057d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0582: Unknown result type (might be due to invalid IL or missing references)
		//IL_0587: Unknown result type (might be due to invalid IL or missing references)
		//IL_05ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_05c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_05c9: Unknown result type (might be due to invalid IL or missing references)
		//IL_05ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_05d3: Unknown result type (might be due to invalid IL or missing references)
		//IL_05dc: Unknown result type (might be due to invalid IL or missing references)
		//IL_05f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_05f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_05fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0601: Unknown result type (might be due to invalid IL or missing references)
		//IL_0628: Unknown result type (might be due to invalid IL or missing references)
		//IL_063c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0643: Unknown result type (might be due to invalid IL or missing references)
		//IL_0648: Unknown result type (might be due to invalid IL or missing references)
		//IL_064d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0656: Unknown result type (might be due to invalid IL or missing references)
		//IL_066d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0672: Unknown result type (might be due to invalid IL or missing references)
		//IL_0677: Unknown result type (might be due to invalid IL or missing references)
		//IL_074e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0762: Unknown result type (might be due to invalid IL or missing references)
		//IL_0768: Unknown result type (might be due to invalid IL or missing references)
		//IL_076d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0772: Unknown result type (might be due to invalid IL or missing references)
		//IL_077b: Unknown result type (might be due to invalid IL or missing references)
		//IL_078f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0795: Unknown result type (might be due to invalid IL or missing references)
		//IL_079a: Unknown result type (might be due to invalid IL or missing references)
		//IL_079f: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_07be: Unknown result type (might be due to invalid IL or missing references)
		//IL_07c3: Unknown result type (might be due to invalid IL or missing references)
		//IL_07c8: Unknown result type (might be due to invalid IL or missing references)
		//IL_07d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_07e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_07ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_07f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_069e: Unknown result type (might be due to invalid IL or missing references)
		//IL_06b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_06b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_06be: Unknown result type (might be due to invalid IL or missing references)
		//IL_06c3: Unknown result type (might be due to invalid IL or missing references)
		//IL_06cc: Unknown result type (might be due to invalid IL or missing references)
		//IL_06e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_06e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_06ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_06f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_06fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_0711: Unknown result type (might be due to invalid IL or missing references)
		//IL_0716: Unknown result type (might be due to invalid IL or missing references)
		//IL_071b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0724: Unknown result type (might be due to invalid IL or missing references)
		//IL_073b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0740: Unknown result type (might be due to invalid IL or missing references)
		//IL_0745: Unknown result type (might be due to invalid IL or missing references)
		//IL_0416: Unknown result type (might be due to invalid IL or missing references)
		//IL_0433: Unknown result type (might be due to invalid IL or missing references)
		//IL_043a: Unknown result type (might be due to invalid IL or missing references)
		//IL_043f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0444: Unknown result type (might be due to invalid IL or missing references)
		//IL_044d: Unknown result type (might be due to invalid IL or missing references)
		//IL_046a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0471: Unknown result type (might be due to invalid IL or missing references)
		//IL_0476: Unknown result type (might be due to invalid IL or missing references)
		//IL_047b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0484: Unknown result type (might be due to invalid IL or missing references)
		//IL_04a1: Unknown result type (might be due to invalid IL or missing references)
		//IL_04a6: Unknown result type (might be due to invalid IL or missing references)
		//IL_04ab: Unknown result type (might be due to invalid IL or missing references)
		//IL_04b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_04db: Unknown result type (might be due to invalid IL or missing references)
		float num = 0f;
		float num2 = 0f;
		if ((Object)(object)control != (Object)null && recoil)
		{
			for (int i = 0; i < 2; i++)
			{
				float num3 = Time.time - control.HandStart[i];
				float num4 = control.HandDuration[i];
				if (num3 >= 0f && num4 > 0f && num3 < num4)
				{
					float num5 = ShotPulse(num3 / num4, 0.18f);
					if (i == 0)
					{
						num = num5;
					}
					else
					{
						num2 = num5;
					}
				}
			}
		}
		else if (motion == "Shot" && recoil)
		{
			if (hand == 0)
			{
				num = ShotPulse(t, 0.18f);
			}
			else
			{
				num2 = ShotPulse(t, 0.18f);
			}
		}
		if (motion == "Volley")
		{
			float num6 = Ease(Mathf.Min(t / 0.35f, (1f - t) / 0.25f));
			r += new Vector3(-0.065f, 0.05f, -0.06f) * num6;
			l += new Vector3(0.065f, 0.05f, -0.06f) * num6;
			if (recoil)
			{
				num = (num2 = ShotPulse(t, 0.35f) * 2.3f);
			}
		}
		if (motion == "Night")
		{
			float num7 = ((!recoil) ? 0f : (ShotPulse(t, 0.2f) * 1.4f));
			if (hand == 0)
			{
				num = num7;
			}
			else
			{
				num2 = num7;
			}
		}
		if (motion == "Impale")
		{
			float num8 = Ease(Mathf.Min(t / 0.38f, (1f - t) / 0.3f));
			r += new Vector3(-0.08f, 0.05f, 0.06f) * num8;
			l += new Vector3(0.03f, -0.05f, -0.04f) * num8;
			if (recoil)
			{
				num = ShotPulse(t, 0.38f) * 2.5f;
			}
		}
		if (motion == "Recall")
		{
			float num9 = Mathf.Sin(t * (float)Math.PI);
			r += new Vector3(0.07f, 0.1f, -0.08f) * num9;
			l += new Vector3(-0.07f, 0.1f, -0.08f) * num9;
			rr *= Quaternion.Euler(-8f * num9, 12f * num9, 12f * num9);
			lr *= Quaternion.Euler(-8f * num9, -12f * num9, -12f * num9);
		}
		if (motion == "Dive")
		{
			float num10 = Mathf.Sin(t * (float)Math.PI);
			r += new Vector3(0.045f, -0.12f, -0.05f) * num10;
			l += new Vector3(-0.045f, -0.12f, -0.05f) * num10;
		}
		if (motion == "Draw")
		{
			float num11 = Ease((!((Object)(object)control != (Object)null)) ? 1f : ((Time.time - control.MotionStart) / 0.2f));
			float num12 = ((!((Object)(object)control != (Object)null)) ? 1f : control.DrawProgress);
			r += new Vector3(-0.07f, 0.035f, 0.03f - 0.03f * num12) * num11;
			l += new Vector3(0.07f, 0.035f, 0.03f - 0.03f * num12) * num11;
			rr *= Quaternion.Euler(-2f * num11, -7f * num11, -5f * num11);
			lr *= Quaternion.Euler(-2f * num11, 7f * num11, 5f * num11);
		}
		if (motion == "Storm")
		{
			r += new Vector3(0.035f, 0.04f, 0.03f);
			l += new Vector3(-0.035f, 0.04f, 0.03f);
			rr *= Quaternion.Euler(-4f, 0f, 4f);
			lr *= Quaternion.Euler(-4f, 0f, -4f);
		}
		if (motion == "Disengage")
		{
			float num13 = Mathf.Sin(t * (float)Math.PI);
			r += new Vector3(0.06f, -0.12f, -0.06f) * num13;
			l += new Vector3(-0.06f, -0.12f, -0.06f) * num13;
		}
		if (motion == "Hook")
		{
			float num14 = Mathf.Sin(t * (float)Math.PI);
			l += new Vector3(-0.025f, 0.08f, 0.09f) * num14;
			lr *= Quaternion.Euler(-8f * num14, 0f, 0f);
		}
		if (motion == "Hunt")
		{
			float num15 = Mathf.Sin(t * (float)Math.PI);
			r += new Vector3(0.025f, 0.07f, -0.02f) * num15;
			l += new Vector3(-0.025f, 0.07f, -0.02f) * num15;
			rr *= Quaternion.Euler(-8f * num15, 0f, 0f);
			lr *= Quaternion.Euler(-8f * num15, 0f, 0f);
		}
		r += new Vector3(0f, 0.007f, -0.045f) * num;
		l += new Vector3(0f, 0.007f, -0.045f) * num2;
		rr *= Quaternion.Euler(-7f * num, 0f, 0f);
		lr *= Quaternion.Euler(-7f * num2, 0f, 0f);
	}

	public static void Crossbow(Transform bow, float phase, float fire)
	{
		//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0140: Unknown result type (might be due to invalid IL or missing references)
		//IL_0176: Unknown result type (might be due to invalid IL or missing references)
		//IL_0183: Unknown result type (might be due to invalid IL or missing references)
		Transform val = ZeroModel.Find(bow, "LoadedBolt");
		if (Object.op_Implicit((Object)(object)val))
		{
			((Component)val).gameObject.SetActive(phase < fire || phase > 0.72f);
		}
		Transform val2 = ZeroModel.Find(bow, "CrossbowString");
		if (!Object.op_Implicit((Object)(object)val2))
		{
			return;
		}
		LineRenderer component = ((Component)val2).GetComponent<LineRenderer>();
		Vector3 val3 = default(Vector3);
		((Vector3)(ref val3))..ctor(0f, 0.07f, -0.06f);
		if (phase >= fire && phase < 0.72f)
		{
			val3.z = Mathf.Lerp(0.19f, -0.06f, Ease((phase - fire) / (0.72f - fire)));
		}
		component.SetPosition(1, val3);
		float num = ((!(phase >= fire) || !(phase < 0.8f)) ? 0f : Mathf.Sin(Mathf.InverseLerp(fire, 0.8f, phase) * (float)Math.PI));
		int[] array = new int[2] { -1, 1 };
		foreach (int num2 in array)
		{
			Transform val4 = ZeroModel.Find(bow, "SilverLimb" + num2);
			if (Object.op_Implicit((Object)(object)val4))
			{
				val4.localRotation = Quaternion.Euler(0f, (float)num2 * num * 5f, (float)num2 * num * 3f);
			}
		}
		Transform val5 = ZeroModel.Find(bow, "CompactRail");
		if (Object.op_Implicit((Object)(object)val5))
		{
			val5.localPosition = Vector3.back * (0.022f * num);
		}
	}
}
public static class ZeroAppearance
{
	private sealed class Tailor
	{
		public Vector3 ScaleOrigin;

		public float Scale = 1f;

		private readonly Transform model;

		private readonly List<Transform> bones = new List<Transform>();

		private readonly List<Vector3> vertices = new List<Vector3>();

		private readonly List<BoneWeight> weights = new List<BoneWeight>();

		private readonly List<Material> materials = new List<Material>();

		private readonly List<List<int>> triangles = new List<List<int>>();

		public Tailor(Transform root)
		{
			model = root;
		}

		public int Bone(string name)
		{
			Transform val = ZeroModel.Find(model, name);
			if (!Object.op_Implicit((Object)(object)val))
			{
				throw new InvalidOperationException("Zero outfit needs humanoid bone " + name);
			}
			int num = bones.IndexOf(val);
			if (num < 0)
			{
				num = bones.Count;
				bones.Add(val);
			}
			return num;
		}

		public Vector3 Point(int bone)
		{
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			return model.InverseTransformPoint(bones[bone].position);
		}

		public BoneWeight W(int bone)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			BoneWeight result = default(BoneWeight);
			((BoneWeight)(ref result)).boneIndex0 = bone;
			((BoneWeight)(ref result)).weight0 = 1f;
			return result;
		}

		public BoneWeight W(int a, int b, float t)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			BoneWeight result = default(BoneWeight);
			((BoneWeight)(ref result)).boneIndex0 = a;
			((BoneWeight)(ref result)).weight0 = 1f - t;
			((BoneWeight)(ref result)).boneIndex1 = b;
			((BoneWeight)(ref result)).weight1 = t;
			return result;
		}

		private int MaterialIndex(Material mat)
		{
			int num = materials.IndexOf(mat);
			if (num < 0)
			{
				num = materials.Count;
				materials.Add(mat);
				triangles.Add(new List<int>());
			}
			return num;
		}

		public void Triangle(Vector3 a, Vector3 b, Vector3 c, BoneWeight weight, Material mat, bool both = false)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			//IL_0004: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			Tri(a, b, c, weight, weight, weight, mat);
			if (both)
			{
				Tri(c, b, a, weight, weight, weight, mat);
			}
		}

		private void Tri(Vector3 a, Vector3 b, Vector3 c, BoneWeight wa, BoneWeight wb, BoneWeight wc, Material mat)
		{
			//IL_008e: Unknown result type (might be due to invalid IL or missing references)
			//IL_009a: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: 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_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: 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_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0060: 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_0070: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_007a: Unknown result type (might be due to invalid IL or missing references)
			if (Scale != 1f)
			{
				a = ScaleOrigin + (a - ScaleOrigin) * Scale;
				b = ScaleOrigin + (b - ScaleOrigin) * Scale;
				c = ScaleOrigin + (c - ScaleOrigin) * Scale;
			}
			int count = vertices.Count;
			vertices.Add(a);
			vertices.Add(b);
			vertices.Add(c);
			weights.Add(wa);
			weights.Add(wb);
			weights.Add(wc);
			triangles[MaterialIndex(mat)].AddRange(new int[3]
			{
				count,
				count + 1,
				count + 2
			});
		}

		public void Quad(Vector3 a, Vector3 b, Vector3 c, Vector3 d, BoneWeight top, BoneWeight bottom, Material mat, bool both = false)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			//IL_0004: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: 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_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			Tri(a, b, c, top, top, bottom, mat);
			Tri(a, c, d, top, bottom, bottom, mat);
			if (both)
			{
				Tri(c, b, a, bottom, top, top, mat);
				Tri(d, c, a, bottom, bottom, top, mat);
			}
		}

		public void Plate(Vector3[] rim, Vector3 centre, BoneWeight weight, Material mat, Material alt)
		{
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			for (int i = 0; i < rim.Length; i++)
			{
				Triangle(rim[i], rim[(i + 1) % rim.Length], centre, weight, (i % 3 != 0) ? mat : alt, both: true);
			}
		}

		public void PyramidPlate(Vector3[] p, BoneWeight weight, Material mat, Material alt)
		{
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			for (int i = 0; i < 4; i++)
			{
				Triangle(p[i], p[(i + 1) % 4], p[4], weight, (i != 0) ? mat : alt, both: true);
			}
		}

		public void Loft(Vector3[] centres, Vector2[] radii, BoneWeight[] boneWeights, int count, Material mat)
		{
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0071: Unknown result type (might be due to invalid IL or missing references)
			//IL_0076: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00db: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			Vector3[,] array = new Vector3[centres.Length, count];
			for (int i = 0; i < centres.Length; i++)
			{
				for (int j = 0; j < count; j++)
				{
					float num = ((float)j + 0.5f) * (float)Math.PI * 2f / (float)count;
					ref Vector3 reference = ref array[i, j];
					reference = centres[i] + new Vector3(Mathf.Cos(num) * radii[i].x, 0f, Mathf.Sin(num) * radii[i].y);
				}
			}
			for (int k = 0; k < centres.Length - 1; k++)
			{
				for (int l = 0; l < count; l++)
				{
					RingQuad(array[k, l], array[k + 1, l], array[k + 1, (l + 1) % count], array[k, (l + 1) % count], boneWeights[k], boneWeights[k + 1], mat);
				}
			}
		}

		public void Tube(Vector3 a, Vector3 b, Vector2 top, Vector2 bottom, int first, int last, Material mat, int count = 8)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: 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_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_006f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b5: 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_00c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_0123: Unknown result type (might be due to invalid IL or missing references)
			//IL_0130: Unknown result type (might be due to invalid IL or missing references)
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			//IL_0152: Unknown result type (might be due to invalid IL or missing references)
			//IL_0165: Unknown result type (might be due to invalid IL or missing references)
			//IL_017a: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = b - a;
			Vector3 normalized = ((Vector3)(ref val)).normalized;
			Vector3 val2 = Vector3.Cross(normalized, Vector3.forward);
			Vector3 val3 = ((Vector3)(ref val2)).normalized;
			if (((Vector3)(ref val3)).sqrMagnitude < 0.01f)
			{
				val3 = Vector3.right;
			}
			Vector3 val4 = Vector3.Cross(val3, normalized);
			Vector3 normalized2 = ((Vector3)(ref val4)).normalized;
			Vector3[,] array = new Vector3[3, count];
			for (int i = 0; i < 3; i++)
			{
				float num = (float)i * 0.5f;
				Vector2 val5 = Vector2.Lerp(top, bottom, num);
				for (int j = 0; j < count; j++)
				{
					float num2 = ((float)j + 0.5f) * (float)Math.PI * 2f / (float)count;
					ref Vector3 reference = ref array[i, j];
					reference = Vector3.Lerp(a, b, num) + val3 * Mathf.Cos(num2) * val5.x + normalized2 * Mathf.Sin(num2) * val5.y;
				}
			}
			for (int k = 0; k < 2; k++)
			{
				for (int l = 0; l < count; l++)
				{
					RingQuad(array[k, l], array[k + 1, l], array[k + 1, (l + 1) % count], array[k, (l + 1) % count], W(first, last, (float)k * 0.5f), W(first, last, (float)(k + 1) * 0.5f), mat);
				}
			}
		}

		private void RingQuad(Vector3 a, Vector3 b, Vector3 c, Vector3 d, BoneWeight top, BoneWeight bottom, Material mat)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			//IL_0004: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			Tri(a, b, c, top, bottom, bottom, mat);
			Tri(a, c, d, top, bottom, top, mat);
		}

		public void Strap(Vector3 a, Vector3 b, float width, BoneWeight top, BoneWeight bottom, Material mat)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Unknown result type (might be due to invalid IL or missing references)
			//IL_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_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = Vector3.Cross(b - a, Vector3.forward);
			Vector3 val2 = ((Vector3)(ref val)).normalized * width * 0.5f;
			Quad(a - val2, a + val2, b + val2, b - val2, top, bottom, mat, both: true);
		}

		public void Box(Vector3 center, Vector3 size, BoneWeight weight, Material mat)
		{
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_00dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			Vector3[] array = (Vector3[])(object)new Vector3[8];
			for (int i = 0; i < 8; i++)
			{
				ref Vector3 reference = ref array[i];
				reference = center + Vector3.Scale(size, new Vector3(((i & 1) != 0) ? 0.5f : (-0.5f), ((i & 2) != 0) ? 0.5f : (-0.5f), ((i & 4) != 0) ? 0.5f : (-0.5f)));
			}
			int[,] array2 = new int[6, 4]
			{
				{ 0, 2, 3, 1 },
				{ 4, 5, 7, 6 },
				{ 0, 1, 5, 4 },
				{ 2, 6, 7, 3 },
				{ 0, 4, 6, 2 },
				{ 1, 3, 7, 5 }
			};
			for (int j = 0; j < 6; j++)
			{
				Quad(array[array2[j, 0]], array[array2[j, 1]], array[array2[j, 2]], array[array2[j, 3]], weight, weight, mat);
			}
		}

		public void Boot(Vector3 origin, BoneWeight weight, Material leather, Material cap)
		{
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0037: 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_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0088: Unknown result type (might be due to invalid IL or missing references)
			//IL_009e: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0119: Unknown result type (might be due to invalid IL or missing references)
			//IL_011e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0123: Unknown result type (might be due to invalid IL or missing references)
			//IL_012f: Unknown result type (might be due to invalid IL or missing references)
			//IL_016d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0172: Unknown result type (might be due to invalid IL or missing references)
			//IL_0177: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ad: 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_01c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_01de: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0205: Unknown result type (might be due to invalid IL or missing references)
			//IL_020a: Unknown result type (might be due to invalid IL or missing references)
			Vector2[] array = (Vector2[])(object)new Vector2[8]
			{
				new Vector2(-0.04f, -0.09f),
				new Vector2(0.04f, -0.09f),
				new Vector2(0.065f, -0.06f),
				new Vector2(0.065f, 0.16f),
				new Vector2(0.04f, 0.2f),
				new Vector2(-0.04f, 0.2f),
				new Vector2(-0.065f, 0.16f),
				new Vector2(-0.065f, -0.06f)
			};
			Vector3[] array2 = (Vector3[])(object)new Vector3[8];
			Vector3[] array3 = (Vector3[])(object)new Vector3[8];
			for (int i = 0; i < 8; i++)
			{
				ref Vector3 reference = ref array3[i];
				reference = origin + new Vector3(array[i].x, -0.06f, array[i].y);
				ref Vector3 reference2 = ref array2[i];
				reference2 = origin + new Vector3(array[i].x, (!(array[i].y > 0.1f)) ? 0.11f : 0.018f, array[i].y);
			}
			for (int j = 0; j < 8; j++)
			{
				int num = (j + 1) % 8;
				Quad(array3[j], array2[j], array2[num], array3[num], weight, weight, leather);
				Triangle(array2[j], origin + new Vector3(0f, 0.11f, 0.015f), array2[num], weight, (!(array[j].y > 0.1f)) ? leather : cap);
			}
		}

		public void Finish(string name)
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Expected O, but got Unknown
			//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			//IL_013a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_0145: Unknown result type (might be due to invalid IL or missing references)
			//IL_014a: Unknown result type (might be due to invalid IL or missing references)
			//IL_01de: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
			Transform parent = ZeroGeometry.Root(model, name, Vector3.zero, Quaternion.identity);
			for (int i = 0; i < materials.Count; i++)
			{
				Transform val = ZeroGeometry.Root(parent, "ZeroTailored_" + ((Object)materials[i]).name, Vector3.zero, Quaternion.identity);
				Mesh val2 = new Mesh();
				((Object)val2).name = ((Object)val).name;
				List<Vector3> list = new List<Vector3>();
				List<BoneWeight> list2 = new List<BoneWeight>();
				List<int> list3 = new List<int>();
				foreach (int item in triangles[i])
				{
					list3.Add(list.Count);
					list.Add(vertices[item]);
					list2.Add(weights[item]);
				}
				val2.vertices = list.ToArray();
				val2.boneWeights = list2.ToArray();
				val2.SetTriangles(list3, 0);
				Matrix4x4[] array = (Matrix4x4[])(object)new Matrix4x4[bones.Count];
				for (int j = 0; j < array.Length; j++)
				{
					ref Matrix4x4 reference = ref array[j];
					reference = bones[j].worldToLocalMatrix * val.localToWorldMatrix;
				}
				val2.bindposes = array;
				val2.RecalculateNormals();
				val2.RecalculateBounds();
				SkinnedMeshRenderer val3 = ((Component)val).gameObject.AddComponent<SkinnedMeshRenderer>();
				val3.sharedMesh = val2;
				((Renderer)val3).sharedMaterial = materials[i];
				val3.bones = bones.ToArray();
				val3.rootBone = ZeroModel.Find(model, "pelvis");
				val3.updateWhenOffscreen = true;
				((Renderer)val3).localBounds = new Bounds(new Vector3(0f, 1f, 0f), new Vector3(2.5f, 3f, 2f));
				((Renderer)val3).shadowCastingMode = (ShadowCastingMode)1;
			}
		}
	}

	private static Material armor;

	private static Material edge;

	private static Material vest;

	private static Material leather;

	private static Material hoodShadow;

	private static Material lining;

	public static Material Armor => armor ?? (armor = ZeroGeometry.Mat("ZeroWeatheredArmor", new Color(0.49f, 0.455f, 0.395f), emissive: false, 0.32f));

	private static Material Edge => edge ?? (edge = ZeroGeometry.Mat("ZeroArmorEdges", new Color(0.48f, 0.44f, 0.38f), emissive: false, 0.35f));

	private static Material Vest => vest ?? (vest = ZeroGeometry.Mat("ZeroCharcoal", new Color(0.11f, 0.105f, 0.115f)));

	private static Material Leather => leather ?? (leather = ZeroGeometry.Mat("ZeroHarnessLeather", new Color(0.26f, 0.215f, 0.18f), emissive: false, 0.12f));

	private static Material Shadow => hoodShadow ?? (hoodShadow = ZeroGeometry.Mat("ZeroMaskShadow", new Color(0.025f, 0.025f, 0.029f)));

	private static Material Lining => lining ?? (lining = ZeroGeometry.Mat("ZeroCoatLining", new Color(0.16f, 0.055f, 0.065f)));

	public static void Build(Transform model, ZeroModel visual)
	{
		//IL_002d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0032: Unknown result type (might be due to invalid IL or missing references)
		//IL_0036: Unknown result type (might be due to invalid IL or missing references)
		//IL_003b: Unknown result type (might be due to invalid IL or missing references)
		//IL_003f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0044: 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_0057: Unknown result type (might be due to invalid IL or missing references)
		//IL_006c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0071: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0104: Unknown result type (might be due to invalid IL or missing references)
		//IL_0109: Unknown result type (might be due to invalid IL or missing references)
		//IL_0126: Unknown result type (might be due to invalid IL or missing references)
		//IL_012b: Unknown result type (might be due to invalid IL or missing references)
		//IL_014d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0152: Unknown result type (might be due to invalid IL or missing references)
		//IL_016e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0173: Unknown result type (might be due to invalid IL or missing references)
		//IL_0189: Unknown result type (might be due to invalid IL or missing references)
		//IL_018e: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a4: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a9: Unknown result type (might be due to invalid IL or missing references)
		//IL_01bf: Unknown result type (might be due to invalid IL or missing references)
		//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_01da: Unknown result type (might be due to invalid IL or missing references)
		//IL_01df: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f3: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_020c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0211: Unknown result type (might be due to invalid IL or missing references)
		//IL_021f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0224: Unknown result type (might be due to invalid IL or missing references)
		//IL_0232: Unknown result type (might be due to invalid IL or missing references)
		//IL_0237: Unknown result type (might be due to invalid IL or missing references)
		//IL_0245: Unknown result type (might be due to invalid IL or missing references)
		//IL_024a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0269: Unknown result type (might be due to invalid IL or missing references)
		//IL_026b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0275: Unknown result type (might be due to invalid IL or missing references)
		//IL_027a: Unknown result type (might be due to invalid IL or missing references)
		//IL_027f: Unknown result type (might be due to invalid IL or missing references)
		//IL_028b: Unknown result type (might be due to invalid IL or missing references)
		//IL_028d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0297: Unknown result type (might be due to invalid IL or missing references)
		//IL_029c: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a1: Unknown result type (might be due to invalid IL or missing references)
		//IL_02bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d8: Unknown result type (might be due to invalid IL or missing references)
		//IL_02dd: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0304: Unknown result type (might be due to invalid IL or missing references)
		//IL_0309: Unknown result type (might be due to invalid IL or missing references)
		//IL_03cc: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_03db: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e5: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ea: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f4: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f9: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fe: Unknown result type (might be due to invalid IL or missing references)
		//IL_0403: Unknown result type (might be due to invalid IL or missing references)
		//IL_0406: Unknown result type (might be due to invalid IL or missing references)
		//IL_0408: Unknown result type (might be due to invalid IL or missing references)
		//IL_0414: Unknown result type (might be due to invalid IL or missing references)
		//IL_0423: Unknown result type (might be due to invalid IL or missing references)
		//IL_0438: Unknown result type (might be due to invalid IL or missing references)
		//IL_043a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0446: Unknown result type (might be due to invalid IL or missing references)
		//IL_0455: Unknown result type (might be due to invalid IL or missing references)
		//IL_046a: Unknown result type (might be due to invalid IL or missing references)
		//IL_046c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0478: Unknown result type (might be due to invalid IL or missing references)
		//IL_0487: Unknown result type (might be due to invalid IL or missing references)
		//IL_049c: Unknown result type (might be due to invalid IL or missing references)
		//IL_049e: Unknown result type (might be due to invalid IL or missing references)
		//IL_04aa: Unknown result type (might be due to invalid IL or missing references)
		//IL_04b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_04ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_04dc: Unknown result type (might be due to invalid IL or missing references)
		//IL_04de: Unknown result type (might be due to invalid IL or missing references)
		//IL_04e5: Unknown result type (might be due to invalid IL or missing references)
		//IL_04f4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0503: Unknown result type (might be due to invalid IL or missing references)
		//IL_0518: Unknown result type (might be due to invalid IL or missing references)
		//IL_051a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0521: Unknown result type (might be due to invalid IL or missing references)
		//IL_0526: Unknown result type (might be due to invalid IL or missing references)
		//IL_0528: Unknown result type (might be due to invalid IL or missing references)
		//IL_052f: Unknown result type (might be due to invalid IL or missing references)
		//IL_053e: Unknown result type (might be due to invalid IL or missing references)
		//IL_054d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cd6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cfc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d08: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d0f: Unknown result type (might be due to invalid IL or missing references)
		//IL_057a: Unknown result type (might be due to invalid IL or missing references)
		//IL_057c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0580: Unknown result type (might be due to invalid IL or missing references)
		//IL_0585: Unknown result type (might be due to invalid IL or missing references)
		//IL_059b: Unknown result type (might be due to invalid IL or missing references)
		//IL_059d: Unknown result type (might be due to invalid IL or missing references)
		//IL_059f: Unknown result type (might be due to invalid IL or missing references)
		//IL_05a9: Unknown result type (might be due to invalid IL or missing references)
		//IL_05be: Unknown result type (might be due to invalid IL or missing references)
		//IL_05c7: Unknown result type (might be due to invalid IL or missing references)
		//IL_062a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0640: Unknown result type (might be due to invalid IL or missing references)
		//IL_0645: Unknown result type (might be due to invalid IL or missing references)
		//IL_064a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0656: Unknown result type (might be due to invalid IL or missing references)
		//IL_066b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0670: Unknown result type (might be due to invalid IL or missing references)
		//IL_0675: Unknown result type (might be due to invalid IL or missing references)
		//IL_0681: Unknown result type (might be due to invalid IL or missing references)
		//IL_0696: Unknown result type (might be due to invalid IL or missing references)
		//IL_069b: Unknown result type (might be due to invalid IL or missing references)
		//IL_06a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_06ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_06c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_06c6: Unknown result type (might be due to invalid IL or missing references)
		//IL_06cb: Unknown result type (might be due to invalid IL or missing references)
		//IL_06d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_06ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_06f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_06f6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0702: Unknown result type (might be due to invalid IL or missing references)
		//IL_0718: Unknown result type (might be due to invalid IL or missing references)
		//IL_071d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0722: Unknown result type (might be due to invalid IL or missing references)
		//IL_072c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0741: Unknown result type (might be due to invalid IL or missing references)
		//IL_0746: Unknown result type (might be due to invalid IL or missing references)
		//IL_074d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d52: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d78: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d7f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d84: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d87: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d98: Unknown result type (might be due to invalid IL or missing references)
		//IL_0da2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e11: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e37: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e43: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e4a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e7b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ea1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ead: Unknown result type (might be due to invalid IL or missing references)
		//IL_0eb4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ef2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f06: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f0d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f2a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f2c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f36: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f3b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f40: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f4c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f4e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f58: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f5d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f62: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f7e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f83: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f99: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f9e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fb2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fb7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fc5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fca: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fdb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fec: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ff1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ff6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ff9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ffb: Unknown result type (might be due to invalid IL or missing references)
		//IL_1005: Unknown result type (might be due to invalid IL or missing references)
		//IL_100a: Unknown result type (might be due to invalid IL or missing references)
		//IL_101e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1025: Unknown result type (might be due to invalid IL or missing references)
		//IL_1035: Unknown result type (might be due to invalid IL or missing references)
		//IL_1037: Unknown result type (might be due to invalid IL or missing references)
		//IL_1041: Unknown result type (might be due to invalid IL or missing references)
		//IL_1046: Unknown result type (might be due to invalid IL or missing references)
		//IL_105a: Unknown result type (might be due to invalid IL or missing references)
		//IL_1061: Unknown result type (might be due to invalid IL or missing references)
		//IL_1071: Unknown result type (might be due to invalid IL or missing references)
		//IL_1073: Unknown result type (might be due to invalid IL or missing references)
		//IL_107d: Unknown result type (might be due to invalid IL or missing references)
		//IL_1082: Unknown result type (might be due to invalid IL or missing references)
		//IL_1096: Unknown result type (might be due to invalid IL or missing references)
		//IL_109d: Unknown result type (might be due to invalid IL or missing references)
		//IL_10ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_10af: Unknown result type (might be due to invalid IL or missing references)
		//IL_10b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_10be: Unknown result type (might be due to invalid IL or missing references)
		//IL_10d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_10d9: Unknown result type (might be due to invalid IL or missing references)
		//IL_1106: Unknown result type (might be due to invalid IL or missing references)
		//IL_1128: Unknown result type (might be due to invalid IL or missing references)
		//IL_114a: Unknown result type (might be due to invalid IL or missing references)
		//IL_116c: Unknown result type (might be due to invalid IL or missing references)
		//IL_1173: Unknown result type (might be due to invalid IL or missing references)
		//IL_117a: Unknown result type (might be due to invalid IL or missing references)
		//IL_118b: Unknown result type (might be due to invalid IL or missing references)
		//IL_118d: Unknown result type (might be due to invalid IL or missing references)
		//IL_119e: Unknown result type (might be due to invalid IL or missing references)
		//IL_11c3: Unknown result type (might be due to invalid IL or missing references)
		//IL_11d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0779: Unknown result type (might be due to invalid IL or missing references)
		//IL_077e: Unknown result type (might be due to invalid IL or missing references)
		//IL_078a: Unknown result type (might be due to invalid IL or missing references)
		//IL_078f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0799: Unknown result type (might be due to invalid IL or missing references)
		//IL_079e: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a5: Unknown result type (might be due to invalid IL or missing references)
		//IL_07af: Unknown result type (might be due to invalid IL or missing references)
		//IL_07b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_07c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_07c7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0810: Unknown result type (might be due to invalid IL or missing references)
		//IL_0823: Unknown result type (might be due to invalid IL or missing references)
		//IL_0828: Unknown result type (might be due to invalid IL or missing references)
		//IL_083c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0843: Unknown result type (might be due to invalid IL or missing references)
		//IL_0863: Unknown result type (might be due to invalid IL or missing references)
		//IL_0865: Unknown