Decompiled source of NewYearMod v1.0.0

New Year Mod ╨┬─Ω┤≤└±░ⁿ.dll

Decompiled 11 months ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using DM;
using FhpSLib;
using FhpSLib.BundleModCore;
using HarmonyLib;
using Landfall.TABS;
using Landfall.TABS.AI.Components.Tags;
using Landfall.TABS.GameState;
using Landfall.TABS.UnitEditor;
using NewYearMod;
using Pathfinding;
using SLMA;
using TFBGames;
using TMPro;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityEngine.Video;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("NewYearMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("made in SFT by FhpSlime")]
[assembly: AssemblyCopyright("Copyright ©  2022")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3a45c3cf-230c-4310-952f-0887d4266a22")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NewYearMod;

public static class UManager
{
	public static string modname;

	public static string modder;

	private static string com;

	public static SLMABundleMod mod;

	static UManager()
	{
		modname = "NewYearMod";
		modder = "FhpSlime";
	}

	public static void SetRiders(UnitBlueprint me, UnitBlueprint[] riders)
	{
		s.SetField<UnitBlueprint>(me, "Riders", (object)riders);
	}

	public static void EditBlueprint(UnitBlueprint unit, LandfallContentDatabase db)
	{
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_003e: Expected O, but got Unknown
		//IL_0061: Unknown result type (might be due to invalid IL or missing references)
		//IL_0067: Expected O, but got Unknown
		//IL_0082: Unknown result type (might be due to invalid IL or missing references)
		//IL_0088: Expected O, but got Unknown
		//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a9: Expected O, but got Unknown
		//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ca: Expected O, but got Unknown
		//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00eb: Expected O, but got Unknown
		//IL_0106: Unknown result type (might be due to invalid IL or missing references)
		//IL_010c: Expected O, but got Unknown
		//IL_0127: Unknown result type (might be due to invalid IL or missing references)
		//IL_012d: Expected O, but got Unknown
		//IL_0148: Unknown result type (might be due to invalid IL or missing references)
		//IL_014e: Expected O, but got Unknown
		//IL_0169: Unknown result type (might be due to invalid IL or missing references)
		//IL_016f: Expected O, but got Unknown
		//IL_018b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0191: Expected O, but got Unknown
		//IL_01ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_01b3: Expected O, but got Unknown
		//IL_01c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_01c8: Expected O, but got Unknown
		//IL_01fb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0200: Unknown result type (might be due to invalid IL or missing references)
		//IL_0215: 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_0223: Unknown result type (might be due to invalid IL or missing references)
		//IL_0229: Expected O, but got Unknown
		//IL_0255: Unknown result type (might be due to invalid IL or missing references)
		//IL_025a: Unknown result type (might be due to invalid IL or missing references)
		//IL_026f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0274: Unknown result type (might be due to invalid IL or missing references)
		//IL_027d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0283: Expected O, but got Unknown
		//IL_02b6: Unknown result type (might be due to invalid IL or missing references)
		//IL_02bb: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d5: Unknown result type (might be due to invalid IL or missing references)
		//IL_02de: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e4: Expected O, but got Unknown
		//IL_0311: Unknown result type (might be due to invalid IL or missing references)
		//IL_0316: 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_0339: Unknown result type (might be due to invalid IL or missing references)
		//IL_033f: Expected O, but got Unknown
		//IL_0372: Unknown result type (might be due to invalid IL or missing references)
		//IL_0377: Unknown result type (might be due to invalid IL or missing references)
		//IL_038c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0391: Unknown result type (might be due to invalid IL or missing references)
		//IL_039a: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a0: Expected O, but got Unknown
		//IL_03d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_0400: Expected O, but got Unknown
		//IL_0433: 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_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_045b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0461: Expected O, but got Unknown
		//IL_0494: Unknown result type (might be due to invalid IL or missing references)
		//IL_0499: Unknown result type (might be due to invalid IL or missing references)
		//IL_04ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_04b3: Unknown result type (might be due to invalid IL or missing references)
		//IL_04bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_04c2: Expected O, but got Unknown
		//IL_04f5: Unknown result type (might be due to invalid IL or missing references)
		//IL_04fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_050f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0514: Unknown result type (might be due to invalid IL or missing references)
		//IL_051e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0524: Expected O, but got Unknown
		//IL_0551: 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_056b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0570: 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_0580: Expected O, but got Unknown
		//IL_05b1: Unknown result type (might be due to invalid IL or missing references)
		//IL_05b6: Unknown result type (might be due to invalid IL or missing references)
		//IL_05cb: Unknown result type (might be due to invalid IL or missing references)
		//IL_05d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0610: Unknown result type (might be due to invalid IL or missing references)
		//IL_061a: Expected O, but got Unknown
		//IL_063c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0642: Expected O, but got Unknown
		//IL_065d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0663: Expected O, but got Unknown
		//IL_067e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0684: Expected O, but got Unknown
		//IL_069f: Unknown result type (might be due to invalid IL or missing references)
		//IL_06a5: Expected O, but got Unknown
		//IL_06c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_06c6: Expected O, but got Unknown
		//IL_06e1: Unknown result type (might be due to invalid IL or missing references)
		//IL_06e7: Expected O, but got Unknown
		//IL_06f5: Unknown result type (might be due to invalid IL or missing references)
		//IL_06fb: Expected O, but got Unknown
		//IL_0728: Unknown result type (might be due to invalid IL or missing references)
		//IL_072d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0742: Unknown result type (might be due to invalid IL or missing references)
		//IL_0747: Unknown result type (might be due to invalid IL or missing references)
		//IL_0750: Unknown result type (might be due to invalid IL or missing references)
		//IL_0756: Expected O, but got Unknown
		//IL_0783: Unknown result type (might be due to invalid IL or missing references)
		//IL_0788: Unknown result type (might be due to invalid IL or missing references)
		//IL_079d: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_07ab: Unknown result type (might be due to invalid IL or missing references)
		//IL_07b1: Expected O, but got Unknown
		//IL_07e2: 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_07fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0801: Unknown result type (might be due to invalid IL or missing references)
		//IL_080a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0810: Expected O, but got Unknown
		//IL_083d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0842: Unknown result type (might be due to invalid IL or missing references)
		//IL_0857: Unknown result type (might be due to invalid IL or missing references)
		//IL_085c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0865: Unknown result type (might be due to invalid IL or missing references)
		//IL_086b: Expected O, but got Unknown
		//IL_0898: Unknown result type (might be due to invalid IL or missing references)
		//IL_089d: Unknown result type (might be due to invalid IL or missing references)
		//IL_08b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_08b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_08c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_08c6: Expected O, but got Unknown
		//IL_08f6: Unknown result type (might be due to invalid IL or missing references)
		//IL_08fb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0910: Unknown result type (might be due to invalid IL or missing references)
		//IL_0915: Unknown result type (might be due to invalid IL or missing references)
		//IL_093e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0944: Unknown result type (might be due to invalid IL or missing references)
		//IL_0969: Unknown result type (might be due to invalid IL or missing references)
		//IL_0973: Expected O, but got Unknown
		//IL_0995: Unknown result type (might be due to invalid IL or missing references)
		//IL_099b: Expected O, but got Unknown
		//IL_09b6: Unknown result type (might be due to invalid IL or missing references)
		//IL_09bc: Expected O, but got Unknown
		//IL_09d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_09dd: Expected O, but got Unknown
		//IL_09f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_09fe: Expected O, but got Unknown
		//IL_0a19: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a1f: Expected O, but got Unknown
		//IL_0a3a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a40: Expected O, but got Unknown
		//IL_0a5b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a61: Expected O, but got Unknown
		//IL_0a6f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a75: Expected O, but got Unknown
		//IL_0aa6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0aab: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ac0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ac5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ace: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ad4: Expected O, but got Unknown
		//IL_0b01: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b06: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b1b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b20: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b29: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b2f: Expected O, but got Unknown
		//IL_0b60: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b65: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b7a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b7f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b88: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b8e: Expected O, but got Unknown
		//IL_0bba: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bbf: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bd4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bd9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0be2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0be8: Expected O, but got Unknown
		//IL_0c18: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c1d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c32: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c37: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c40: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c46: Expected O, but got Unknown
		//IL_0c72: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c77: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c8c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c91: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c9a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ca0: Expected O, but got Unknown
		//IL_0ccc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cd1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ce6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ceb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d2b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d35: Expected O, but got Unknown
		//IL_0d58: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d5e: Expected O, but got Unknown
		//IL_0d79: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d7f: Expected O, but got Unknown
		//IL_0d9a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0da0: Expected O, but got Unknown
		//IL_0dbb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0dc1: Expected O, but got Unknown
		//IL_0ddc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0de2: Expected O, but got Unknown
		//IL_0dfd: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e03: Expected O, but got Unknown
		//IL_0e1e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e24: Expected O, but got Unknown
		//IL_0e3f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e45: Expected O, but got Unknown
		//IL_0e60: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e66: Expected O, but got Unknown
		//IL_0e82: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e88: Expected O, but got Unknown
		//IL_0ea4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0eaa: Expected O, but got Unknown
		//IL_0ec6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ecc: Expected O, but got Unknown
		//IL_0ee8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0eee: Expected O, but got Unknown
		//IL_0f0a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f10: Expected O, but got Unknown
		//IL_0f2c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f32: Expected O, but got Unknown
		//IL_0f4e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f54: Expected O, but got Unknown
		//IL_0f70: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f76: Expected O, but got Unknown
		//IL_0f92: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f98: Expected O, but got Unknown
		//IL_0fb4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fba: Expected O, but got Unknown
		//IL_0fd6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fdc: Expected O, but got Unknown
		//IL_0ff8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ffe: Expected O, but got Unknown
		//IL_101a: Unknown result type (might be due to invalid IL or missing references)
		//IL_1020: Expected O, but got Unknown
		//IL_103c: Unknown result type (might be due to invalid IL or missing references)
		//IL_1042: Expected O, but got Unknown
		//IL_1051: Unknown result type (might be due to invalid IL or missing references)
		//IL_1057: Expected O, but got Unknown
		//IL_1084: Unknown result type (might be due to invalid IL or missing references)
		//IL_1089: Unknown result type (might be due to invalid IL or missing references)
		//IL_109e: Unknown result type (might be due to invalid IL or missing references)
		//IL_10a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_10ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_10b2: Expected O, but got Unknown
		//IL_10e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_10e9: Unknown result type (might be due to invalid IL or missing references)
		//IL_10fe: Unknown result type (might be due to invalid IL or missing references)
		//IL_1103: Unknown result type (might be due to invalid IL or missing references)
		//IL_110c: Unknown result type (might be due to invalid IL or missing references)
		//IL_1112: Expected O, but got Unknown
		//IL_113f: Unknown result type (might be due to invalid IL or missing references)
		//IL_1144: Unknown result type (might be due to invalid IL or missing references)
		//IL_1159: Unknown result type (might be due to invalid IL or missing references)
		//IL_115e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1167: Unknown result type (might be due to invalid IL or missing references)
		//IL_116d: Expected O, but got Unknown
		//IL_119a: Unknown result type (might be due to invalid IL or missing references)
		//IL_119f: Unknown result type (might be due to invalid IL or missing references)
		//IL_11b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_11b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_11c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_11c8: Expected O, but got Unknown
		//IL_11fb: Unknown result type (might be due to invalid IL or missing references)
		//IL_1200: Unknown result type (might be due to invalid IL or missing references)
		//IL_1215: Unknown result type (might be due to invalid IL or missing references)
		//IL_121a: Unknown result type (might be due to invalid IL or missing references)
		//IL_1223: Unknown result type (might be due to invalid IL or missing references)
		//IL_1229: Expected O, but got Unknown
		//IL_125c: Unknown result type (might be due to invalid IL or missing references)
		//IL_1261: Unknown result type (might be due to invalid IL or missing references)
		//IL_1276: Unknown result type (might be due to invalid IL or missing references)
		//IL_127b: Unknown result type (might be due to invalid IL or missing references)
		//IL_1284: Unknown result type (might be due to invalid IL or missing references)
		//IL_128a: Expected O, but got Unknown
		//IL_12ba: Unknown result type (might be due to invalid IL or missing references)
		//IL_12bf: Unknown result type (might be due to invalid IL or missing references)
		//IL_12d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_12d9: Unknown result type (might be due to invalid IL or missing references)
		//IL_12e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_12e8: Expected O, but got Unknown
		//IL_131a: Unknown result type (might be due to invalid IL or missing references)
		//IL_131f: Unknown result type (might be due to invalid IL or missing references)
		//IL_1334: Unknown result type (might be due to invalid IL or missing references)
		//IL_1339: Unknown result type (might be due to invalid IL or missing references)
		//IL_1342: Unknown result type (might be due to invalid IL or missing references)
		//IL_1348: Expected O, but got Unknown
		//IL_137a: Unknown result type (might be due to invalid IL or missing references)
		//IL_137f: Unknown result type (might be due to invalid IL or missing references)
		//IL_1394: Unknown result type (might be due to invalid IL or missing references)
		//IL_1399: Unknown result type (might be due to invalid IL or missing references)
		//IL_13a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_13a9: Expected O, but got Unknown
		//IL_13db: Unknown result type (might be due to invalid IL or missing references)
		//IL_13e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_13f5: Unknown result type (might be due to invalid IL or missing references)
		//IL_13fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_1404: Unknown result type (might be due to invalid IL or missing references)
		//IL_140a: Expected O, but got Unknown
		//IL_143c: Unknown result type (might be due to invalid IL or missing references)
		//IL_1441: Unknown result type (might be due to invalid IL or missing references)
		//IL_1456: Unknown result type (might be due to invalid IL or missing references)
		//IL_145b: Unknown result type (might be due to invalid IL or missing references)
		//IL_1465: Unknown result type (might be due to invalid IL or missing references)
		//IL_146b: Expected O, but got Unknown
		//IL_149d: Unknown result type (might be due to invalid IL or missing references)
		//IL_14a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_14b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_14bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_14c6: Unknown result type (might be due to invalid IL or missing references)
		//IL_14cc: Expected O, but got Unknown
		//IL_14fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_1501: Unknown result type (might be due to invalid IL or missing references)
		//IL_1516: Unknown result type (might be due to invalid IL or missing references)
		//IL_151b: Unknown result type (might be due to invalid IL or missing references)
		//IL_1525: Unknown result type (might be due to invalid IL or missing references)
		//IL_152b: Expected O, but got Unknown
		//IL_155c: Unknown result type (might be due to invalid IL or missing references)
		//IL_1561: Unknown result type (might be due to invalid IL or missing references)
		//IL_1576: Unknown result type (might be due to invalid IL or missing references)
		//IL_157b: Unknown result type (might be due to invalid IL or missing references)
		//IL_1585: Unknown result type (might be due to invalid IL or missing references)
		//IL_158b: Expected O, but got Unknown
		//IL_15b8: Unknown result type (might be due to invalid IL or missing references)
		//IL_15bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_15d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_15d7: Unknown result type (might be due to invalid IL or missing references)
		//IL_15e1: Unknown result type (might be due to invalid IL or missing references)
		//IL_15e7: Expected O, but got Unknown
		//IL_1619: Unknown result type (might be due to invalid IL or missing references)
		//IL_161e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1633: Unknown result type (might be due to invalid IL or missing references)
		//IL_1638: Unknown result type (might be due to invalid IL or missing references)
		//IL_1642: Unknown result type (might be due to invalid IL or missing references)
		//IL_1648: Expected O, but got Unknown
		//IL_1674: Unknown result type (might be due to invalid IL or missing references)
		//IL_1679: Unknown result type (might be due to invalid IL or missing references)
		//IL_168e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1693: Unknown result type (might be due to invalid IL or missing references)
		//IL_169d: Unknown result type (might be due to invalid IL or missing references)
		//IL_16a3: Expected O, but got Unknown
		//IL_16cf: Unknown result type (might be due to invalid IL or missing references)
		//IL_16d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_16e9: Unknown result type (might be due to invalid IL or missing references)
		//IL_16ee: Unknown result type (might be due to invalid IL or missing references)
		//IL_16f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_16fe: Expected O, but got Unknown
		//IL_1731: Unknown result type (might be due to invalid IL or missing references)
		//IL_1736: Unknown result type (might be due to invalid IL or missing references)
		//IL_174b: Unknown result type (might be due to invalid IL or missing references)
		//IL_1750: Unknown result type (might be due to invalid IL or missing references)
		//IL_175a: Unknown result type (might be due to invalid IL or missing references)
		//IL_1760: Expected O, but got Unknown
		//IL_1793: Unknown result type (might be due to invalid IL or missing references)
		//IL_1798: Unknown result type (might be due to invalid IL or missing references)
		//IL_17ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_17b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_17bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_17c2: Expected O, but got Unknown
		//IL_17f5: Unknown result type (might be due to invalid IL or missing references)
		//IL_17fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_180f: Unknown result type (might be due to invalid IL or missing references)
		//IL_1814: Unknown result type (might be due to invalid IL or missing references)
		//IL_181e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1824: Expected O, but got Unknown
		//IL_1855: Unknown result type (might be due to invalid IL or missing references)
		//IL_185a: Unknown result type (might be due to invalid IL or missing references)
		//IL_186f: Unknown result type (might be due to invalid IL or missing references)
		//IL_1874: Unknown result type (might be due to invalid IL or missing references)
		//IL_187e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1884: Expected O, but got Unknown
		//IL_18b1: Unknown result type (might be due to invalid IL or missing references)
		//IL_18b6: Unknown result type (might be due to invalid IL or missing references)
		//IL_18cb: Unknown result type (might be due to invalid IL or missing references)
		//IL_18d0: Unknown result type (might be due to invalid IL or missing references)
		if (unit.Entity.Name == "唐太宗")
		{
			unit.UnitBase = (GameObject)SLMALoader.SDic["bases"]["Humanoid"];
			unit.m_props = (GameObject[])(object)new GameObject[11]
			{
				(GameObject)SLMALoader.SDic["clothes"]["Cp_good_cleric_hair001"],
				(GameObject)SLMALoader.SDic["clothes"]["mongolian_moustache_001"],
				(GameObject)SLMALoader.SDic["clothes"]["halloween_candle_robe001"],
				(GameObject)SLMALoader.SDic["clothes"]["Skirt001"],
				(GameObject)SLMALoader.SDic["clothes"]["Viking_Belt001"],
				(GameObject)SLMALoader.SDic["clothes"]["evil_cleric_shoes001"],
				(GameObject)SLMALoader.SDic["clothes"]["holiday_shirt001"],
				(GameObject)SLMALoader.SDic["clothes"]["Ancient_Helmet004"],
				(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_pants001"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Hair004"],
				(GameObject)SLMALoader.SDic["clothes"]["Western_hat_001"]
			};
			PropItemData[] array = new PropItemData[11];
			PropItemData val = new PropItemData();
			val.m_colors = new int[4] { 49, 49, 49, 49 };
			val.m_isTeamColor = new bool[4];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(0.7360636f, 0.5161165f, 0.4134746f);
			array[0] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { -1 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, -0.01466304f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array[1] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 12, 12, 12 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array[2] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 12 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 2f, 0f);
			val.m_scale = new Vector3(1f, -2f, 1f);
			array[3] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 3, 16, 15 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, -0.1466314f, 0f);
			val.m_scale = new Vector3(1f, 0.6187583f, 1.2f);
			array[4] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 49, 49 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array[5] = val;
			val = new PropItemData();
			val.m_colors = new int[4] { 11, -1, 12, 12 };
			val.m_isTeamColor = new bool[4];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array[6] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 49, 49, 49 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 0.7653898f, 0.3841482f);
			array[7] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 12, 12, 12 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 2f);
			array[8] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 49 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array[9] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { -1, 49 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 0.1509849f);
			array[10] = val;
			unit.m_propData = (PropItemData[])(object)array;
		}
		if (unit.Entity.Name == "年糕工")
		{
			unit.UnitBase = (GameObject)SLMALoader.SDic["bases"]["Humanoid"];
			unit.m_props = (GameObject[])(object)new GameObject[6]
			{
				(GameObject)SLMALoader.SDic["clothes"]["Bandana001"],
				(GameObject)SLMALoader.SDic["clothes"]["PompadourHair001"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Pants005"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Belt003"],
				(GameObject)SLMALoader.SDic["clothes"]["Ancient_Belt004"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Shoes003"]
			};
			PropItemData[] array2 = new PropItemData[6];
			PropItemData val = new PropItemData();
			val.m_colors = new int[1] { 40 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0.01f, 0.01f);
			val.m_scale = new Vector3(1.1f, 0.7f, 1.1f);
			array2[0] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 48 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array2[1] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 3, 41 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array2[2] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 41 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array2[3] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 41 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(-0.15f, -0.35f, 0.01f);
			val.m_scale = new Vector3(0.25f, 3f, 0.7f);
			array2[4] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { -1, -1 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array2[5] = val;
			unit.m_propData = (PropItemData[])(object)array2;
		}
		if (unit.Entity.Name == "大妈")
		{
			unit.TargetingComponent = (ITargetingComponent)(object)default(FriendlyLeastHealthTargeting);
			unit.UnitBase = (GameObject)SLMALoader.SDic["bases"]["Humanoid"];
			unit.m_props = (GameObject[])(object)new GameObject[7]
			{
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Hair005"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Hair003"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Shirt007"],
				(GameObject)SLMALoader.SDic["clothes"]["WW_Scarf001"],
				(GameObject)SLMALoader.SDic["clothes"]["Viking_Ullr_pants001"],
				(GameObject)SLMALoader.SDic["clothes"]["legacy_darkpeasant_shoes001"],
				(GameObject)SLMALoader.SDic["clothes"]["asia_hwacha_pants001"]
			};
			PropItemData[] array3 = new PropItemData[7];
			PropItemData val = new PropItemData();
			val.m_colors = new int[2] { 63, -1 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array3[0] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 47 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, -0.01f, 0f);
			val.m_scale = new Vector3(1.4f, 1.5f, 1.2f);
			array3[1] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 3, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array3[2] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 4 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array3[3] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 3, 3 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array3[4] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 3 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array3[5] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 3 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array3[6] = val;
			unit.m_propData = (PropItemData[])(object)array3;
		}
		if (unit.Entity.Name == "财神赵公明")
		{
			unit.UnitBase = (GameObject)SLMALoader.SDic["bases"]["Humanoid"];
			unit.m_props = (GameObject[])(object)new GameObject[23]
			{
				(GameObject)SLMALoader.SDic["clothes"]["mongolian_moustache_001"],
				(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_circlet001"],
				(GameObject)SLMALoader.SDic["clothes"]["western_beard005"],
				(GameObject)SLMALoader.SDic["clothes"]["western_beard005"],
				(GameObject)SLMALoader.SDic["clothes"]["good_smitepriest_hat001"],
				(GameObject)SLMALoader.SDic["clothes"]["legacy_pharao_hat001"],
				(GameObject)SLMALoader.SDic["clothes"]["Misc_Mask001"],
				(GameObject)SLMALoader.SDic["clothes"]["Western_hat_001"],
				(GameObject)SLMALoader.SDic["clothes"]["Western_ballnchain_hat001"],
				(GameObject)SLMALoader.SDic["clothes"]["Western_ballnchain_hat001"],
				(GameObject)SLMALoader.SDic["clothes"]["Western_ballnchain_hat001"],
				(GameObject)SLMALoader.SDic["clothes"]["Western_ballnchain_hat001"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Hair006"],
				(GameObject)SLMALoader.SDic["clothes"]["MonsterMask001"],
				(GameObject)SLMALoader.SDic["clothes"]["pirate_Queen_armbands001"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Vest001"],
				(GameObject)SLMALoader.SDic["clothes"]["Ancient_Shirt005"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Shirt004"],
				(GameObject)SLMALoader.SDic["clothes"]["asia_hwacha_shirt001"],
				(GameObject)SLMALoader.SDic["clothes"]["asia_chukonu_shirt001"],
				(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_pants001"],
				(GameObject)SLMALoader.SDic["clothes"]["Asia_Shoes001"],
				(GameObject)SLMALoader.SDic["clothes"]["good_smitepriest_pants001"]
			};
			PropItemData[] array4 = new PropItemData[23];
			PropItemData val = new PropItemData();
			val.m_colors = new int[1] { 47 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0.04f, 0f);
			val.m_scale = new Vector3(1.2f, 1.3f, 1f);
			array4[0] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 47, 47 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0.002f, -0.17f, 0.055f);
			val.m_scale = new Vector3(0.35f, -1f, 0.2f);
			array4[1] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 47 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0.045f, 0.065f, 0.035f);
			val.m_scale = new Vector3(0.7f, 0.6f, 0.4f);
			array4[2] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 47 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(-0.045f, 0.065f, 0.035f);
			val.m_scale = new Vector3(-0.7f, 0.6f, 0.4f);
			array4[3] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 65, 3, 65 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0.01f, -0.005f);
			val.m_scale = new Vector3(0.9f, 0.75f, 0.9f);
			array4[4] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 65, 65, 65 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0f, -0.03f);
			val.m_scale = new Vector3(0.9f, 0.26f, 0.6f);
			array4[5] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { -1, 4 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0.01f, -0.06f);
			val.m_scale = new Vector3(1.1f, 0.65f, 0.6f);
			array4[6] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0.04f, 0f);
			val.m_scale = new Vector3(0.89f, 0.3f, 0.05f);
			array4[7] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(-0.18f, 0.06f, 0f);
			val.m_scale = new Vector3(0.35f, -0.3f, 0.2f);
			array4[8] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0.185f, 0.06f, 0f);
			val.m_scale = new Vector3(-0.35f, -0.3f, 0.2f);
			array4[9] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0.185f, 0.055f, 0f);
			val.m_scale = new Vector3(0.2f, 0.3f, 0.15f);
			array4[10] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(-0.182f, 0.055f, 0f);
			val.m_scale = new Vector3(-0.2f, 0.3f, 0.15f);
			array4[11] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 3, -1 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0.002f);
			val.m_scale = new Vector3(1f, 0.9f, 0.9f);
			array4[12] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, -1 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0.08f, -0.095f);
			val.m_scale = new Vector3(0.43f, 0.5f, 0.6f);
			array4[13] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 65 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[14] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 65, 26 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(0.43f, 0.5f, 1f);
			array4[15] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 3 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[16] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 3 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[17] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 3, 3, 26 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[18] = val;
			val = new PropItemData();
			val.m_colors = new int[4] { 3, 26, 16, 65 };
			val.m_isTeamColor = new bool[4];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[19] = val;
			val = new PropItemData();
			val.m_colors = new int[3] { 3, 65, 65 };
			val.m_isTeamColor = new bool[3];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[20] = val;
			val = new PropItemData();
			val.m_colors = new int[2] { 3, 65 };
			val.m_isTeamColor = new bool[2];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[21] = val;
			val = new PropItemData();
			val.m_colors = new int[1] { 65 };
			val.m_isTeamColor = new bool[1];
			val.m_positionOffset = new Vector3(0f, 0f, 0f);
			val.m_scale = new Vector3(1f, 1f, 1f);
			array4[22] = val;
			unit.m_propData = (PropItemData[])(object)array4;
		}
	}

	public static void EditClothes(GameObject cloth, CharacterItem item, PropItemData data, Unit unit, int index, LandfallContentDatabase db)
	{
	}

	public static void EditProjectiles(GameObject proj, ProjectileHit projhit, Unit unit, LandfallContentDatabase db)
	{
	}

	public static void EditCombatMoves(GameObject move, int index, Unit unit, LandfallContentDatabase db)
	{
	}

	public static void CodeAfterSpawn(Unit unit, LandfallContentDatabase db)
	{
	}

	public static void Init(LandfallContentDatabase db)
	{
		//IL_0031: Unknown result type (might be due to invalid IL or missing references)
		//IL_0037: Expected O, but got Unknown
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: Expected O, but got Unknown
		//IL_0073: Unknown result type (might be due to invalid IL or missing references)
		//IL_0079: Expected O, but got Unknown
		//IL_0094: Unknown result type (might be due to invalid IL or missing references)
		//IL_009a: Expected O, but got Unknown
		//IL_00b5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bb: Expected O, but got Unknown
		//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00dc: Expected O, but got Unknown
		//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00fd: Expected O, but got Unknown
		//IL_0118: Unknown result type (might be due to invalid IL or missing references)
		//IL_011e: Expected O, but got Unknown
		//IL_0139: Unknown result type (might be due to invalid IL or missing references)
		//IL_013f: Expected O, but got Unknown
		//IL_015b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0161: Expected O, but got Unknown
		//IL_017d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0183: Expected O, but got Unknown
		//IL_019f: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a5: Expected O, but got Unknown
		//IL_01c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_01c7: Expected O, but got Unknown
		//IL_01e3: Unknown result type (might be due to invalid IL or missing references)
		//IL_01e9: Expected O, but got Unknown
		//IL_0205: Unknown result type (might be due to invalid IL or missing references)
		//IL_020b: Expected O, but got Unknown
		//IL_021a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0221: Expected O, but got Unknown
		//IL_0257: Unknown result type (might be due to invalid IL or missing references)
		//IL_025c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0272: Unknown result type (might be due to invalid IL or missing references)
		//IL_0277: Unknown result type (might be due to invalid IL or missing references)
		//IL_0281: Unknown result type (might be due to invalid IL or missing references)
		//IL_0288: Expected O, but got Unknown
		//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_02e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_02ee: Expected O, but got Unknown
		//IL_0324: Unknown result type (might be due to invalid IL or missing references)
		//IL_0329: Unknown result type (might be due to invalid IL or missing references)
		//IL_033f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0344: Unknown result type (might be due to invalid IL or missing references)
		//IL_034e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0355: Expected O, but got Unknown
		//IL_0385: Unknown result type (might be due to invalid IL or missing references)
		//IL_038a: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a5: Unknown result type (might be due to invalid IL or missing references)
		//IL_03af: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b6: Expected O, but got Unknown
		//IL_03ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0407: Unknown result type (might be due to invalid IL or missing references)
		//IL_040c: 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_041d: Expected O, but got Unknown
		//IL_0452: Unknown result type (might be due to invalid IL or missing references)
		//IL_0457: Unknown result type (might be due to invalid IL or missing references)
		//IL_046d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0472: Unknown result type (might be due to invalid IL or missing references)
		//IL_047c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0483: Expected O, but got Unknown
		//IL_04b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_04be: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_04d9: Unknown result type (might be due to invalid IL or missing references)
		//IL_04e3: Unknown result type (might be due to invalid IL or missing references)
		//IL_04ea: Expected O, but got Unknown
		//IL_0520: Unknown result type (might be due to invalid IL or missing references)
		//IL_0525: Unknown result type (might be due to invalid IL or missing references)
		//IL_053b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0540: Unknown result type (might be due to invalid IL or missing references)
		//IL_054a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0551: Expected O, but got Unknown
		//IL_0587: Unknown result type (might be due to invalid IL or missing references)
		//IL_058c: Unknown result type (might be due to invalid IL or missing references)
		//IL_05a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_05a7: 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_05b9: Expected O, but got Unknown
		//IL_05ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_05f4: Unknown result type (might be due to invalid IL or missing references)
		//IL_060a: Unknown result type (might be due to invalid IL or missing references)
		//IL_060f: Unknown result type (might be due to invalid IL or missing references)
		//IL_061a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0621: Expected O, but got Unknown
		//IL_0654: Unknown result type (might be due to invalid IL or missing references)
		//IL_0659: Unknown result type (might be due to invalid IL or missing references)
		//IL_066f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0674: Unknown result type (might be due to invalid IL or missing references)
		//IL_067f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0686: Expected O, but got Unknown
		//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_06d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_06d9: Unknown result type (might be due to invalid IL or missing references)
		//IL_06e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_06eb: Expected O, but got Unknown
		//IL_0720: Unknown result type (might be due to invalid IL or missing references)
		//IL_0725: 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_074b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0752: Expected O, but got Unknown
		//IL_0781: Unknown result type (might be due to invalid IL or missing references)
		//IL_0786: Unknown result type (might be due to invalid IL or missing references)
		//IL_079c: Unknown result type (might be due to invalid IL or missing references)
		//IL_07a1: Unknown result type (might be due to invalid IL or missing references)
		//IL_07ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_07b3: Expected O, but got Unknown
		//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_0802: Unknown result type (might be due to invalid IL or missing references)
		//IL_0807: Unknown result type (might be due to invalid IL or missing references)
		//IL_0850: Unknown result type (might be due to invalid IL or missing references)
		//IL_0856: Expected O, but got Unknown
		//IL_0871: Unknown result type (might be due to invalid IL or missing references)
		//IL_0877: Expected O, but got Unknown
		//IL_0892: Unknown result type (might be due to invalid IL or missing references)
		//IL_0898: Expected O, but got Unknown
		//IL_08b3: Unknown result type (might be due to invalid IL or missing references)
		//IL_08b9: Expected O, but got Unknown
		//IL_08d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_08da: Expected O, but got Unknown
		//IL_08f5: Unknown result type (might be due to invalid IL or missing references)
		//IL_08fb: Expected O, but got Unknown
		//IL_0916: Unknown result type (might be due to invalid IL or missing references)
		//IL_091c: Expected O, but got Unknown
		//IL_0937: Unknown result type (might be due to invalid IL or missing references)
		//IL_093d: Expected O, but got Unknown
		//IL_0958: Unknown result type (might be due to invalid IL or missing references)
		//IL_095e: Expected O, but got Unknown
		//IL_097a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0980: Expected O, but got Unknown
		//IL_099c: Unknown result type (might be due to invalid IL or missing references)
		//IL_09a2: Expected O, but got Unknown
		//IL_09be: Unknown result type (might be due to invalid IL or missing references)
		//IL_09c4: Expected O, but got Unknown
		//IL_09e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_09e6: Expected O, but got Unknown
		//IL_0a02: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a08: Expected O, but got Unknown
		//IL_0a24: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a2a: Expected O, but got Unknown
		//IL_0a39: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a40: Expected O, but got Unknown
		//IL_0a76: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a7b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a91: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a96: Unknown result type (might be due to invalid IL or missing references)
		//IL_0aa0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0aa7: Expected O, but got Unknown
		//IL_0adc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ae1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0af7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0afc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b06: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b0d: Expected O, but got Unknown
		//IL_0b43: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b48: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b5e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b63: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b6d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b74: Expected O, but got Unknown
		//IL_0ba4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ba9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bbf: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bc4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bce: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bd5: Expected O, but got Unknown
		//IL_0c0b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c10: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c26: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c2b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c35: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c3c: Expected O, but got Unknown
		//IL_0c70: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c75: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c8b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c90: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c9a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ca1: Expected O, but got Unknown
		//IL_0cd7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cdc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cf2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cf7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d01: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d08: Expected O, but got Unknown
		//IL_0d3e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d43: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d59: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d5e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d68: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d6f: Expected O, but got Unknown
		//IL_0da5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0daa: Unknown result type (might be due to invalid IL or missing references)
		//IL_0dc0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0dc5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0dd0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0dd7: Expected O, but got Unknown
		//IL_0e0d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e12: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e28: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e2d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e38: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e3f: Expected O, but got Unknown
		//IL_0e72: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e77: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e8d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e92: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e9d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ea4: Expected O, but got Unknown
		//IL_0ed7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0edc: 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_0ef7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f02: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f09: Expected O, but got Unknown
		//IL_0f3c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f41: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f57: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f5c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f67: Unknown result type (might be due to invalid IL or missing references)
		//IL_0f6e: Expected O, but got Unknown
		//IL_0f9e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fa3: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fb9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fbe: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fc9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0fd0: Expected O, but got Unknown
		//IL_1004: Unknown result type (might be due to invalid IL or missing references)
		//IL_1009: Unknown result type (might be due to invalid IL or missing references)
		//IL_101f: Unknown result type (might be due to invalid IL or missing references)
		//IL_1024: Unknown result type (might be due to invalid IL or missing references)
		//IL_11ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_1400: Unknown result type (might be due to invalid IL or missing references)
		//IL_1405: Unknown result type (might be due to invalid IL or missing references)
		//IL_1410: Unknown result type (might be due to invalid IL or missing references)
		//IL_141e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1423: Unknown result type (might be due to invalid IL or missing references)
		//IL_142e: Unknown result type (might be due to invalid IL or missing references)
		//IL_1364: Unknown result type (might be due to invalid IL or missing references)
		//IL_136b: Expected O, but got Unknown
		UnitBlueprint val = SLMATool.CreateUnit("门神1", (UnitBlueprint)null, (Faction)null, (Sprite)null);
		val.m_props = (GameObject[])(object)new GameObject[15]
		{
			(GameObject)SLMALoader.SDic["clothes"]["Ancient_Helmet004"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Helmet003"],
			(GameObject)SLMALoader.SDic["clothes"]["good_glaive_helmet001"],
			(GameObject)SLMALoader.SDic["clothes"]["mongolian_moustache_001"],
			(GameObject)SLMALoader.SDic["clothes"]["asia_redjade_torso002"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Armor001"],
			(GameObject)SLMALoader.SDic["clothes"]["Ancient_ChestArmor002"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_ShoulderPad001"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_ShoulderPad001"],
			(GameObject)SLMALoader.SDic["clothes"]["Ancient_ShoulderPad001"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Pants003"],
			(GameObject)SLMALoader.SDic["clothes"]["asia_redjade_shoes001"],
			(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_arms001"],
			(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_glove001"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Pants002"]
		};
		PropItemData[] array = new PropItemData[15];
		PropItemData val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 65, 18 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, -0.02f);
		val2.m_scale = new Vector3(1f, 1f, 0.7f);
		array[0] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 47, 65 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[1] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 4, 3 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1.2f, 1f, 1f);
		array[2] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[1] { 46 };
		val2.m_isTeamColor = new bool[1];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[3] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 3, 3, 3 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[4] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 48, 18 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[5] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[4] { 46, 27, 4, 3 };
		val2.m_isTeamColor = new bool[4];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[6] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 4, 4 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, -0.02f, -0.02f);
		val2.m_scale = new Vector3(1.5f, 1.5f, 1.3f);
		array[7] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 47, 5 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1.1f, 1.5f, 1.15f);
		array[8] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 18, 3 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[9] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 1, 3 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[10] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 3, 3 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[11] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 46, 47 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[12] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[1] { 3 };
		val2.m_isTeamColor = new bool[1];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[13] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 3, 47 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array[14] = val2;
		val.m_propData = (PropItemData[])(object)array;
		val.damageMultiplier = 0f;
		UnitBlueprint val3 = SLMATool.CreateUnit("门神2", (UnitBlueprint)null, (Faction)null, (Sprite)null);
		val3.m_props = (GameObject[])(object)new GameObject[15]
		{
			(GameObject)SLMALoader.SDic["clothes"]["Ancient_Helmet004"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Helmet003"],
			(GameObject)SLMALoader.SDic["clothes"]["good_glaive_helmet001"],
			(GameObject)SLMALoader.SDic["clothes"]["mongolian_moustache_001"],
			(GameObject)SLMALoader.SDic["clothes"]["asia_redjade_torso002"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Armor001"],
			(GameObject)SLMALoader.SDic["clothes"]["Ancient_ChestArmor002"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_ShoulderPad001"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_ShoulderPad001"],
			(GameObject)SLMALoader.SDic["clothes"]["Ancient_ShoulderPad001"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Pants003"],
			(GameObject)SLMALoader.SDic["clothes"]["asia_redjade_shoes001"],
			(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_arms001"],
			(GameObject)SLMALoader.SDic["clothes"]["good_gauntlet_glove001"],
			(GameObject)SLMALoader.SDic["clothes"]["Asia_Pants002"]
		};
		PropItemData[] array2 = new PropItemData[15];
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 65, 45 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, -0.02f);
		val2.m_scale = new Vector3(1f, 1f, 0.7f);
		array2[0] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 47, 25 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[1] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 65, 3 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1.2f, 1f, 1f);
		array2[2] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[1] { 46 };
		val2.m_isTeamColor = new bool[1];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[3] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 3, 3, 3 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[4] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 4, 26 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[5] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[4] { 46, 18, -1, -1 };
		val2.m_isTeamColor = new bool[4];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[6] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 46, 4 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, -0.02f, -0.02f);
		val2.m_scale = new Vector3(1.5f, 1.5f, 1.3f);
		array2[7] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 47, 5 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1.1f, 1.5f, 1.15f);
		array2[8] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[3] { 47, 1, 3 };
		val2.m_isTeamColor = new bool[3];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[9] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 1, 3 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[10] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 3, 3 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[11] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 3, 3 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[12] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[1] { 45 };
		val2.m_isTeamColor = new bool[1];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[13] = val2;
		val2 = new PropItemData();
		val2.m_colors = new int[2] { 6, 47 };
		val2.m_isTeamColor = new bool[2];
		val2.m_positionOffset = new Vector3(0f, 0f, 0f);
		val2.m_scale = new Vector3(1f, 1f, 1f);
		array2[14] = val2;
		val3.m_propData = (PropItemData[])(object)array2;
		val3.damageMultiplier = 0f;
		val.health = 50000f;
		val3.health = 50000f;
		AssetBundle val4;
		using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("newyear"))
		{
			val4 = AssetBundle.LoadFromStream(stream);
		}
		AssetBundle val5;
		using (Stream stream2 = Assembly.GetExecutingAssembly().GetManifestResourceStream("newyearmap"))
		{
			val5 = AssetBundle.LoadFromStream(stream2);
		}
		using (Stream stream3 = Assembly.GetExecutingAssembly().GetManifestResourceStream("tabsg_video"))
		{
			AssetBundle.LoadFromStream(stream3);
		}
		mod = SLMABundleMod.CreatSLMABundleMod("New Year Mod", "1.0.0");
		mod.Dev_mode = true;
		mod.AddAssetBundle("Mod", val4);
		mod.AddAssetBundle("Scene", val5);
		LoadAssetBundle(mod, "Mod");
		GameObject[] array3 = val4.LoadAllAssets<GameObject>();
		foreach (GameObject val6 in array3)
		{
			if (((Object)val6).name == "年糕锤" && Object.op_Implicit((Object)(object)val6.GetComponent<WeaponItem>()))
			{
				val6.AddComponent<年糕锤子>();
			}
			if (((Object)val6).name == "一盘饺子" && Object.op_Implicit((Object)(object)val6.GetComponent<WeaponItem>()))
			{
				val6.AddComponent<饺子>();
			}
			if (((Object)val6).name == "门神卷轴" && Object.op_Implicit((Object)(object)val6.GetComponent<WeaponItem>()))
			{
				val6.AddComponent<卷轴>().blueprints = (UnitBlueprint[])(object)new UnitBlueprint[2] { val, val3 };
			}
		}
		MapAsset[] array4 = val4.LoadAllAssets<MapAsset>();
		foreach (MapAsset val7 in array4)
		{
			Dictionary<DatabaseID, int> mapAssetIndexLookup = HelpLibrary.m_mapAssetIndexLookup;
			mapAssetIndexLookup.Add(val7.Entity.GUID, mapAssetIndexLookup.Count);
			HelpLibrary.m_mapAssetIndexLookup = mapAssetIndexLookup;
			List<MapAsset> list = HelpLibrary.m_orderedMapAssets.ToList();
			list.Add(val7);
			HelpLibrary.m_orderedMapAssets = list.ToArray();
		}
		UnitBlueprint[] array5 = val4.LoadAllAssets<UnitBlueprint>();
		for (int j = 0; j < array5.Length; j++)
		{
			EditBlueprint(array5[j], db);
		}
		SoundBank[] array6 = mod.GetAssetBundle("Mod").LoadAllAssets<SoundBank>();
		foreach (SoundBank val8 in array6)
		{
			if (((Object)val8).name.Contains("Sound"))
			{
				SoundBank soundBank = ServiceLocator.GetService<SoundPlayer>().soundBank;
				SoundBankCategory[] categories = val8.Categories;
				for (int k = 0; k < categories.Length; k++)
				{
					categories[k].categoryMixerGroup = soundBank.Categories[0].categoryMixerGroup;
				}
				List<SoundBankCategory> list2 = soundBank.Categories.ToList();
				list2.AddRange(val8.Categories);
				soundBank.Categories = list2.ToArray();
			}
			if (!((Object)val8).name.Contains("Music"))
			{
				continue;
			}
			SoundBank bank = ServiceLocator.GetService<MusicHandler>().bank;
			List<SoundBankCategory> list3 = bank.Categories.ToList();
			list3.AddRange(val8.Categories);
			SoundBankCategory[] categories2 = val8.Categories;
			foreach (SoundBankCategory val9 in categories2)
			{
				SoundEffectInstance[] soundEffects = val9.soundEffects;
				foreach (SoundEffectInstance val10 in soundEffects)
				{
					SongInstance val11 = new SongInstance();
					val11.clip = val10.clipTypes[0].clips[0];
					val11.soundEffectInstance = val10;
					val11.songRef = val9.categoryName + "/" + val10.soundRef;
					ServiceLocator.GetService<MusicHandler>().m_songs.Add(val11.songRef, val11);
				}
			}
			bank.Categories = list3.ToArray();
		}
		new GameObject
		{
			name = "MapsCore",
			hideFlags = (HideFlags)52
		}.AddComponent<ScenesManager>();
		new GameObject
		{
			name = "Timer",
			hideFlags = (HideFlags)52
		}.AddComponent<Timer>();
	}

	public static void EditWeapons(GameObject weapon, Team team, Unit unit, MeleeWeapon melee, RangeWeapon range, LandfallContentDatabase db)
	{
	}

	public static void TryChangeColorbyindex(this GameObject gameObject, Color color, int index)
	{
		//IL_000a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0010: Expected O, but got Unknown
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		Material val = new Material(Shader.Find("Standard"));
		val.SetColor("_Color", color);
		val.SetFloat("_Mode", 3f);
		val.SetInt("_SrcBlend", 5);
		val.SetInt("_DstBlend", 10);
		val.EnableKeyword("_ALPHABLEND_ON");
		val.renderQueue = 3000;
		if (Object.op_Implicit((Object)(object)gameObject.GetComponentInChildren<TeamColor>()))
		{
			Object.Destroy((Object)(object)gameObject.GetComponentInChildren<TeamColor>());
		}
		Renderer[] componentsInChildren = gameObject.GetComponentsInChildren<Renderer>();
		for (int i = 0; i < componentsInChildren.Length; i++)
		{
			Material[] materials = componentsInChildren[i].materials;
			int num = 0;
			if (num < materials.Length)
			{
				componentsInChildren[i].materials[num] = val;
				break;
			}
		}
	}

	public static Sprite GetSprite(string name)
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0052: 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)
		using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(name);
		Texture2D val = new Texture2D(4, 4);
		byte[] array = new byte[stream.Length];
		stream.Read(array, 0, (int)stream.Length);
		ImageConversion.LoadImage(val, array);
		return Sprite.Create(val, new Rect(0f, 0f, (float)((Texture)val).width, (float)((Texture)val).height), new Vector2(0.5f, 0.5f));
	}

	public static void DestoryAll<T>(this GameObject game) where T : Object
	{
		if (Object.op_Implicit((Object)(object)game.GetComponentInChildren<T>()))
		{
			T[] componentsInChildren = game.GetComponentsInChildren<T>();
			for (int i = 0; i < componentsInChildren.Length; i++)
			{
				Object.Destroy((Object)(object)componentsInChildren[i]);
			}
		}
	}

	public static GameObject CreateNewMove(string name, int id = 0)
	{
		//IL_001f: Unknown result type (might be due to invalid IL or missing references)
		//IL_002f: Expected O, but got Unknown
		GameObject obj = UPool.MyPool.AddObject(name, (GameObject)SLMALoader.SDic["moves"]["Halfling_Jump"], true, (HideFlags)52, (Sprite)null, id, false);
		obj.DestoryAll<DodgeMove>();
		((UnityEventBase)obj.GetComponentInChildren<ConditionalEvent>().events[0].turnOnEvent).RemoveAllListeners();
		((UnityEventBase)obj.GetComponentInChildren<ConditionalEvent>().events[0].continuousEvent).RemoveAllListeners();
		return obj;
	}

	public static void SetMoveConditionalValue(this ConditionalEventInstance gameObject, ConditionType type, ValueType valuet, float value)
	{
		//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)
		//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_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_004c: 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_0053: Unknown result type (might be due to invalid IL or missing references)
		//IL_0054: 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_0065: Expected O, but got Unknown
		bool flag = false;
		EventCondition[] conditions = gameObject.conditions;
		foreach (EventCondition val in conditions)
		{
			if (val.conditionType == type)
			{
				val.valueType = valuet;
				val.value = value;
				flag = true;
			}
		}
		if (!flag)
		{
			List<EventCondition> list = gameObject.conditions.ToList();
			list.Add(new EventCondition
			{
				conditionType = type,
				valueType = valuet,
				value = value
			});
			gameObject.conditions = list.ToArray();
		}
	}

	public static bool LoadAssetBundle(SLMABundleMod mod, string name)
	{
		//IL_01d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0217: 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_0117: 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_02c0: Unknown result type (might be due to invalid IL or missing references)
		AssetBundle assetBundle = mod.GetAssetBundle(name);
		if (!Object.op_Implicit((Object)(object)assetBundle))
		{
			return false;
		}
		GameObject[] array = assetBundle.LoadAllAssets<GameObject>();
		foreach (GameObject val in array)
		{
			if (val.GetComponentInChildren<IDatabaseEntity>() != null)
			{
				IDatabaseEntity componentInChildren = val.GetComponentInChildren<IDatabaseEntity>();
				Dictionary<DatabaseID, GameObject> dictionary = new Dictionary<DatabaseID, GameObject>();
				if (componentInChildren is WeaponItem)
				{
					dictionary = HelpLibrary.m_weapons;
				}
				else if (componentInChildren is SpecialAbility)
				{
					dictionary = HelpLibrary.m_combatMoves;
				}
				else if (componentInChildren is PropItem)
				{
					dictionary = HelpLibrary.m_characterProps;
				}
				else if (componentInChildren is Unit)
				{
					dictionary = HelpLibrary.m_unitBases;
				}
				else if (componentInChildren is ProjectileEntity)
				{
					dictionary = HelpLibrary.m_projectiles;
				}
				Debug.Log((object)("[FhpSlib]Load:" + val.GetComponentInChildren<IDatabaseEntity>().Entity.Name));
				dictionary.Add(val.GetComponentInChildren<IDatabaseEntity>().Entity.GUID, val.gameObject);
				Dictionary<DatabaseID, Object> dictionary2 = (Dictionary<DatabaseID, Object>)typeof(AssetLoader).GetField("m_nonStreamableAssets", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ContentDatabase.Instance().AssetLoader);
				dictionary2.Add(val.GetComponentInChildren<IDatabaseEntity>().Entity.GUID, (Object)(object)val.gameObject);
				typeof(AssetLoader).GetField("m_nonStreamableAssets", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(ContentDatabase.Instance().AssetLoader, dictionary2);
				if (componentInChildren is WeaponItem)
				{
					HelpLibrary.m_weapons = dictionary;
				}
				else if (componentInChildren is SpecialAbility)
				{
					HelpLibrary.m_combatMoves = dictionary;
				}
				else if (componentInChildren is PropItem)
				{
					HelpLibrary.m_characterProps = dictionary;
				}
				else if (componentInChildren is Unit)
				{
					HelpLibrary.m_unitBases = dictionary;
				}
				else if (componentInChildren is ProjectileEntity)
				{
					HelpLibrary.m_projectiles = dictionary;
				}
			}
		}
		UnitBlueprint[] array2 = assetBundle.LoadAllAssets<UnitBlueprint>();
		foreach (UnitBlueprint val2 in array2)
		{
			Dictionary<DatabaseID, UnitBlueprint> unitBlueprints = HelpLibrary.m_unitBlueprints;
			unitBlueprints.Add(val2.Entity.GUID, val2);
			Dictionary<DatabaseID, Object> dictionary3 = (Dictionary<DatabaseID, Object>)typeof(AssetLoader).GetField("m_nonStreamableAssets", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ContentDatabase.Instance().AssetLoader);
			dictionary3.Add(val2.Entity.GUID, (Object)(object)val2);
			typeof(AssetLoader).GetField("m_nonStreamableAssets", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(ContentDatabase.Instance().AssetLoader, dictionary3);
			HelpLibrary.m_unitBlueprints = unitBlueprints;
		}
		Faction[] array3 = assetBundle.LoadAllAssets<Faction>();
		foreach (Faction val3 in array3)
		{
			Dictionary<DatabaseID, Faction> factions = HelpLibrary.m_factions;
			factions.Add(val3.Entity.GUID, val3);
			Dictionary<DatabaseID, Object> dictionary4 = (Dictionary<DatabaseID, Object>)typeof(AssetLoader).GetField("m_nonStreamableAssets", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ContentDatabase.Instance().AssetLoader);
			dictionary4.Add(val3.Entity.GUID, (Object)(object)val3);
			typeof(AssetLoader).GetField("m_nonStreamableAssets", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(ContentDatabase.Instance().AssetLoader, dictionary4);
			HelpLibrary.m_factions = factions;
		}
		return true;
	}
}
[BepInPlugin("newyear", "fhp.cc.newyear", "1.0.0")]
internal class Loader : BaseUnityPlugin
{
	private void Awake()
	{
		((MonoBehaviour)this).StartCoroutine("call");
	}

	private IEnumerator call()
	{
		yield return (object)new WaitUntil((Func<bool>)(() => (Object)(object)Object.FindObjectOfType<ServiceLocator>() != (Object)null));
		yield return (object)new WaitUntil((Func<bool>)(() => ServiceLocator.GetService<ISaveLoaderService>() != null));
		yield return (object)new WaitForSecondsRealtime(0.3f);
		SLMALoader.GetInstance();
		LandfallContentDatabase landfallContentDatabase = ContentDatabase.Instance().LandfallContentDatabase;
		UManager.Init(landfallContentDatabase);
		new Harmony(UManager.modname).PatchAll();
		GOSLMA.EditWeapons = ((GOSLMA.EditWeapons == null) ? new Action<GameObject, Team, Unit, MeleeWeapon, RangeWeapon, LandfallContentDatabase>(UManager.EditWeapons) : ((Action<GameObject, Team, Unit, MeleeWeapon, RangeWeapon, LandfallContentDatabase>)Delegate.Combine(new Action<GameObject, Team, Unit, MeleeWeapon, RangeWeapon, LandfallContentDatabase>(UManager.EditWeapons), GOSLMA.EditWeapons)));
		GOSLMA.EditClothes = ((GOSLMA.EditClothes == null) ? new Action<GameObject, CharacterItem, PropItemData, Unit, int, LandfallContentDatabase>(UManager.EditClothes) : ((Action<GameObject, CharacterItem, PropItemData, Unit, int, LandfallContentDatabase>)Delegate.Combine(new Action<GameObject, CharacterItem, PropItemData, Unit, int, LandfallContentDatabase>(UManager.EditClothes), GOSLMA.EditClothes)));
		GOSLMA.EditCombatMoves = ((GOSLMA.EditCombatMoves == null) ? new Action<GameObject, int, Unit, LandfallContentDatabase>(UManager.EditCombatMoves) : ((Action<GameObject, int, Unit, LandfallContentDatabase>)Delegate.Combine(new Action<GameObject, int, Unit, LandfallContentDatabase>(UManager.EditCombatMoves), GOSLMA.EditCombatMoves)));
		GOSLMA.CodeAfterSpawn = ((GOSLMA.CodeAfterSpawn == null) ? new Action<Unit, LandfallContentDatabase>(UManager.CodeAfterSpawn) : ((Action<Unit, LandfallContentDatabase>)Delegate.Combine(new Action<Unit, LandfallContentDatabase>(UManager.CodeAfterSpawn), GOSLMA.CodeAfterSpawn)));
		GOSLMA.EditProjectiles = ((GOSLMA.EditProjectiles == null) ? new Action<GameObject, ProjectileHit, Unit, LandfallContentDatabase>(UManager.EditProjectiles) : ((Action<GameObject, ProjectileHit, Unit, LandfallContentDatabase>)Delegate.Combine(new Action<GameObject, ProjectileHit, Unit, LandfallContentDatabase>(UManager.EditProjectiles), GOSLMA.EditProjectiles)));
		UnitBlueprint[] array = Resources.FindObjectsOfTypeAll<UnitBlueprint>();
		for (int i = 0; i < array.Length; i++)
		{
			UManager.EditBlueprint(array[i], landfallContentDatabase);
		}
		Debug.Log((object)("Loaded " + UManager.modname + " Successfully"));
		Debug.Log((object)(UManager.modname + "is made in SFT by FhpSlime"));
		Debug.Log((object)(UManager.modder + "wished you a pleasant trip"));
	}
}
public static class STool
{
	public static void RendererColorChanger(Renderer[] renderers, Color color)
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		for (int i = 0; i < renderers.Length; i++)
		{
			Material[] materials = renderers[i].materials;
			for (int j = 0; j < materials.Length; j++)
			{
				materials[j].color = color;
			}
		}
	}

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

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

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

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

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

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

	public static Vector3 AddV3(Vector3 vector3, float x, float y, float z)
	{
		//IL_0000: 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_0010: 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 new Vector3(vector3.x + x, vector3.y + y, vector3.z + z);
	}
}
public class ScenesManager : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	private sealed class <>c__5
	{
		public static readonly <>c__5 <>9 = new <>c__5();

		public static Action <>9__0_0;

		public static UnityAction <>9__0_1;

		internal void <SceneLoaded>b__0_0()
		{
			TABSSceneManager.LoadMainMenu();
		}

		internal void <SceneLoaded>b__0_1()
		{
			Time.timeScale = 1f;
			TABSSceneManager.LoadScene("VideoPlayer", false);
			ServiceLocator.GetService<GameStateManager>().EnterNoneState();
		}
	}

	public ScenesManager()
	{
		SceneManager.sceneLoaded += SceneLoaded;
	}

	public void SceneLoaded(Scene scene, LoadSceneMode loadSceneMode)
	{
		//IL_034f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0354: 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_01b3: Unknown result type (might be due to invalid IL or missing references)
		//IL_0195: Unknown result type (might be due to invalid IL or missing references)
		//IL_019a: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a0: Expected O, but got Unknown
		if (((Scene)(ref scene)).name.Contains("Video"))
		{
			GameObject.Find("Canvas/RawImage").GetComponentInChildren<VideoPlayer>().clip = UManager.mod.GetAssetBundle("Mod").LoadAsset<VideoClip>("新年祝愿");
			GameObject.Find("Canvas/RawImage").AddComponent<VideoGo>().action = delegate
			{
				TABSSceneManager.LoadMainMenu();
			};
		}
		if (((Scene)(ref scene)).name.ToLower().Contains("menu"))
		{
			GameObject val = GameObject.Find("Canvas");
			if ((Object)(object)val != (Object)null && DateTime.Now.Year == 2024 && !Object.op_Implicit((Object)(object)GameObject.Find("新年大祝愿!")))
			{
				Button[] componentsInChildren = val.GetComponentsInChildren<Button>();
				foreach (Button val2 in componentsInChildren)
				{
					if (!(((Object)((Component)val2).gameObject).name == "Quit"))
					{
						continue;
					}
					GameObject obj = Object.Instantiate<GameObject>(((Component)val2).gameObject);
					((Object)obj).name = "新年大祝愿!";
					obj.transform.parent = ((Component)val2).transform.parent;
					obj.transform.SetSiblingIndex(((Component)val2).transform.GetSiblingIndex());
					TextMeshProUGUI component = ((Component)obj.transform.GetChild(0)).GetComponent<TextMeshProUGUI>();
					((Component)component).GetComponent<LocalizeText>().LocaleID = "新年大祝愿!";
					((UnityEventBase)obj.GetComponent<Button>().onClick).RemoveAllListeners();
					ButtonClickedEvent onClick = obj.GetComponentInChildren<Button>().onClick;
					object obj2 = <>c__5.<>9__0_1;
					if (obj2 == null)
					{
						UnityAction val3 = delegate
						{
							Time.timeScale = 1f;
							TABSSceneManager.LoadScene("VideoPlayer", false);
							ServiceLocator.GetService<GameStateManager>().EnterNoneState();
						};
						<>c__5.<>9__0_1 = val3;
						obj2 = (object)val3;
					}
					((UnityEvent)onClick).AddListener((UnityAction)obj2);
					((TMP_Text)component).text = "新年大祝愿!";
					((Graphic)component).color = Color.red;
					return;
				}
			}
		}
		if (!((Scene)(ref scene)).name.Contains("New Year"))
		{
			return;
		}
		GameObject val4 = null;
		GameObject val5 = null;
		GameObject[] rootGameObjects = ((Scene)(ref scene)).GetRootGameObjects();
		foreach (GameObject val6 in rootGameObjects)
		{
			if (((Object)val6).name == "AStar_WanLi")
			{
				val4 = val6;
				Debug.Log((object)"find astar");
			}
			if (((Object)val6).name == "Plane")
			{
				val5 = val6;
				Debug.Log((object)"find setting");
			}
		}
		if ((Object)(object)val4 != (Object)null && (Object)(object)val5 != (Object)null)
		{
			Debug.Log((object)"Start Bake Pathfinder");
			AstarPath componentInChildren = val4.GetComponentInChildren<AstarPath>(true);
			val4.SetActive(true);
			if (componentInChildren.data.graphs.Length != 0)
			{
				componentInChildren.data.RemoveGraph(componentInChildren.data.graphs[0]);
			}
			componentInChildren.data.AddGraph(typeof(RecastGraph));
			componentInChildren.data.recastGraph.minRegionSize = 0.1f;
			componentInChildren.data.recastGraph.characterRadius = 0.3f;
			componentInChildren.data.recastGraph.cellSize = 0.2f;
			((NavmeshBase)componentInChildren.data.recastGraph).forcedBoundsSize = new Vector3(val5.GetComponent<MapSettings>().m_mapRadius * 2f, val5.GetComponent<MapSettings>().m_mapRadius * val5.GetComponent<MapSettings>().mapRadiusYMultiplier * 2f, val5.GetComponent<MapSettings>().m_mapRadius * 2f);
			componentInChildren.data.recastGraph.rasterizeMeshes = false;
			componentInChildren.data.recastGraph.rasterizeColliders = true;
			componentInChildren.data.recastGraph.mask = UManager.mod.GetAssetBundle("Mod").LoadAsset<GameObject>("Astar").GetComponent<Explosion>()
				.layerMask;
			componentInChildren.Scan((NavGraph[])null);
		}
	}
}
public class 年糕锤子 : CollisionWeaponEffect
{
	public void Start()
	{
	}

	public void Update()
	{
	}

	public override void DoEffect(Transform hitTransform, Collision collision)
	{
		//IL_008c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0091: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
		//IL_00cf: 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_00f6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
		Unit componentInParent = ((Component)((Component)hitTransform).transform).GetComponentInParent<Unit>();
		Unit componentInParent2 = ((Component)this).GetComponentInParent<Unit>();
		if (!componentInParent.dead && componentInParent.data.health <= componentInParent.data.maxHealth * 0.4f)
		{
			componentInParent.data.healthHandler.Die((Unit)null);
			componentInParent.data.Dead = true;
			Object.Destroy((Object)(object)((Component)componentInParent).gameObject);
			GameObject val = Object.Instantiate<GameObject>(UManager.mod.GetAssetBundle("Mod").LoadAsset<GameObject>("年糕"), componentInParent.data.mainRig.position, Quaternion.identity, (Transform)null);
			val.transform.position = new Vector3(val.transform.position.x, componentInParent.data.groundPosition.y + 0.2f, val.transform.position.z);
			val.AddComponent<年糕>();
			val.GetComponent<年糕>().team = componentInParent2.data.team;
		}
	}
}
public class 年糕 : MonoBehaviour
{
	public Team team;

	public void Start()
	{
	}

	public void OnTriggerEnter(Collider other)
	{
		//IL_001b: 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_0038: Unknown result type (might be due to invalid IL or missing references)
		Debug.Log((object)other);
		Unit componentInParent = ((Component)other).GetComponentInParent<Unit>();
		if (Object.op_Implicit((Object)(object)componentInParent) && componentInParent.data.team == team)
		{
			((Damagable)componentInParent.data.healthHandler).TakeDamage(-500f, Vector3.forward, (Unit)null, (DamageType)3);
			componentInParent.data.takeFallDamage = false;
			componentInParent.AddAttackSpeed(3f);
		}
	}
}
public class 饺子 : CollisionWeaponEffect
{
	public override void DoEffect(Transform hitTransform, Collision collision)
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		//IL_0031: Unknown result type (might be due to invalid IL or missing references)
		//IL_0055: Unknown result type (might be due to invalid IL or missing references)
		Unit componentInParent = ((Component)hitTransform).GetComponentInParent<Unit>();
		Transform transform = ((Component)componentInParent.data.hip).transform;
		transform.localScale *= 1f + Random.Range(0f, 0.8f);
		componentInParent.AddAttackSpeed(-0.8f);
		((Damagable)componentInParent.data.healthHandler).TakeDamage(-200f, Vector3.forward, (Unit)null, (DamageType)0);
	}
}
public class Timer : MonoBehaviour
{
	public void Start()
	{
		((MonoBehaviour)this).StartCoroutine_Auto(Timerd());
	}

	private IEnumerator Timerd()
	{
		yield return (object)new WaitUntil((Func<bool>)(() => DateTime.Now.Year == 2023 && DateTime.Now.Hour == 23 && DateTime.Now.Minute == 59 && DateTime.Now.Second >= 55 && DateTime.Now.Year != 2024));
		ServiceLocator.GetService<ModalPanel>().OpenUnlockPanel("新年快乐!!请欣赏FhpStudio带给你的烟花Show! tip:看看后去主菜单找找新的按钮噢!", UManager.mod.GetAssetBundle("Mod").LoadAsset<Sprite>("6"));
		MapSettings map = Object.FindObjectOfType<MapSettings>();
		Color[] colors = (Color[])(object)new Color[5]
		{
			new Color(0f, 2f, 0f),
			new Color(0f, 0f, 2f),
			new Color(0f, 2f, 2f),
			new Color(2f, 2f, 2f),
			new Color(2f, 2f, 0f)
		};
		for (int i = 0; i < 1000; i++)
		{
			for (int j = 0; j < 15; j++)
			{
				GameObject obj = Object.Instantiate<GameObject>((GameObject)SLMALoader.SDic["explosions"]["E_FireWork"]);
				obj.transform.position = new Vector3(Random.Range(map.m_mapCenter.x - map.m_mapRadius, map.m_mapCenter.x + map.m_mapRadius), map.m_mapCenter.y + 10f, Random.Range(map.m_mapCenter.z - map.m_mapRadius, map.m_mapCenter.z + map.m_mapRadius));
				Transform transform = obj.transform;
				transform.localScale *= Random.Range(0.8f, 3f);
				HelpLibrary.TryChangeColor(obj, colors[Random.Range(0, colors.Length)]);
				yield return (object)new WaitForSecondsRealtime(0.02f);
			}
			yield return (object)new WaitForSecondsRealtime(0.5f);
		}
	}
}
public class VideoGo : MonoBehaviour
{
	private double video_time;

	private double currentTime;

	public Action action;

	private void Start()
	{
		video_time = ((Component)this).GetComponent<VideoPlayer>().clip.length;
	}

	private void Update()
	{
		Time.timeScale = 1f;
		currentTime += Time.deltaTime;
		if (currentTime >= video_time)
		{
			((Component)this).GetComponent<VideoPlayer>().Stop();
			action();
		}
	}
}
public class 卷轴 : MonoBehaviour
{
	private bool spawn;

	public UnitBlueprint[] blueprints;

	public void Update()
	{
		//IL_0038: Unknown result type (might be due to invalid IL or missing references)
		//IL_0048: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: 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_007c: Unknown result type (might be due to invalid IL or missing references)
		//IL_008c: Unknown result type (might be due to invalid IL or missing references)
		if (!spawn && (Object)(object)((Component)this).GetComponentInParent<Unit>().data.targetData != (Object)null)
		{
			for (int i = 0; i < 2; i++)
			{
				blueprints[i].Spawn(new Vector3(((Component)this).transform.position.x, ((Component)this).transform.position.y, ((Component)this).transform.position.