Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Shawesomes Divine Armaments v5.0.3
Shawesomes_Divine_Armaments.dll
Decompiled a month ago
The result has been truncated due to the large size, download it to view full contents!
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 BepInEx.Configuration; using BepInEx.Logging; using CustomEffects; using HarmonyLib; using Jotunn; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; using Microsoft.CodeAnalysis; using Shawesomes_Divine_Armaments; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("CapeofShawesome")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CapeofShawesome")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e0e26f8d-a8f0-41a7-a502-951624fa6f31")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } public static class Utils2 { private const BindingFlags bindingFlags = BindingFlags.Public; public static T GetCopyOf<T>(this Component comp, T other) where T : Component { Type type = ((object)comp).GetType(); if (type != ((object)other).GetType()) { return default(T); } List<Type> list = new List<Type>(); Type baseType = type.BaseType; while (baseType != null && !(baseType == typeof(MonoBehaviour))) { list.Add(baseType); baseType = baseType.BaseType; } IEnumerable<PropertyInfo> enumerable = type.GetProperties(BindingFlags.Public); foreach (Type item in list) { enumerable = enumerable.Concat(item.GetProperties(BindingFlags.Public)); } enumerable = from property in enumerable where !(type == typeof(Rigidbody)) || !(property.Name == "inertiaTensor") where !property.CustomAttributes.Any((CustomAttributeData attribute) => attribute.AttributeType == typeof(ObsoleteAttribute)) select property; foreach (PropertyInfo pinfo in enumerable) { if (pinfo.CanWrite && !enumerable.Any((PropertyInfo e) => e.Name == $"shared{char.ToUpper(pinfo.Name[0])}{pinfo.Name.Substring(1)}")) { try { pinfo.SetValue(comp, pinfo.GetValue(other, null), null); } catch { } } } IEnumerable<FieldInfo> enumerable2 = type.GetFields(BindingFlags.Public); foreach (FieldInfo finfo in enumerable2) { foreach (Type item2 in list) { if (!enumerable2.Any((FieldInfo e) => e.Name == $"shared{char.ToUpper(finfo.Name[0])}{finfo.Name.Substring(1)}")) { enumerable2 = enumerable2.Concat(item2.GetFields(BindingFlags.Public)); } } } foreach (FieldInfo item3 in enumerable2) { item3.SetValue(comp, item3.GetValue(other)); } enumerable2 = enumerable2.Where((FieldInfo field) => field.CustomAttributes.Any((CustomAttributeData attribute) => attribute.AttributeType == typeof(ObsoleteAttribute))); foreach (FieldInfo item4 in enumerable2) { item4.SetValue(comp, item4.GetValue(other)); } return (T)(object)((comp is T) ? comp : null); } public static T AddComponent<T>(this GameObject go, T toAdd) where T : Component { return go.AddComponent(((object)toAdd).GetType()).GetCopyOf(toAdd); } public static void updateSKMesh(Transform parent, SkinnedMeshRenderer skmesh) { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) List<ParticleSystem> list = ((Component)parent).GetComponentsInChildren<ParticleSystem>().ToList(); foreach (ParticleSystem item in list) { ShapeModule shape = item.shape; if (!Object.op_Implicit((Object)(object)((ShapeModule)(ref shape)).skinnedMeshRenderer)) { ShapeModule shape2 = item.shape; ((ShapeModule)(ref shape2)).skinnedMeshRenderer = skmesh; } } } public static SkinnedMeshRenderer createSkMeshRen(Transform objectTrans, Transform attach_skin) { SkinnedMeshRenderer val = default(SkinnedMeshRenderer); if (!((Component)objectTrans).gameObject.TryGetComponent<SkinnedMeshRenderer>(ref val)) { val = ((Component)objectTrans).gameObject.AddComponent<SkinnedMeshRenderer>(); } val.rootBone = attach_skin.Find("Armature").Find("Hips"); return val; } public static Mesh createBonedMesh(Mesh newmesh, Mesh copymesh, Vector3 pos, Vector3 rot, Vector3 scale, bool stretch = true) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0004: Unknown result type (might be due to invalid IL or missing references) Mesh newmesh2 = AlignedSkinMesh(newmesh, pos, rot, scale); return copyBoneWeights(newmesh2, copymesh, stretch); } public static Mesh AlignedSkinMesh(Mesh meshtomodify, Vector3 pos, Vector3 rot, Vector3 scale) { //IL_0016: 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_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Unknown result type (might be due to invalid IL or missing references) Mesh val = Object.Instantiate<Mesh>(meshtomodify); List<Vector3> list = new List<Vector3>(); for (int i = 0; i < meshtomodify.vertices.Count(); i++) { Vector3 val2 = Quaternion.Euler(rot) * new Vector3(meshtomodify.vertices[i].x * scale.x, meshtomodify.vertices[i].y * scale.y, meshtomodify.vertices[i].z * scale.z); list.Add(new Vector3(val2.x + pos.x, val2.y + pos.y, val2.z + pos.z)); } val.SetVertices(list); ((Object)val).name = "copymesh"; return val; } public static Mesh copyBoneWeights(Mesh newmesh, Mesh copymesh, bool stretch = true) { //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0087: 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) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_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_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) BoneWeight[] array = (BoneWeight[])(object)new BoneWeight[newmesh.vertexCount]; newmesh.bindposes = copymesh.bindposes; if (stretch) { for (int i = 0; i < newmesh.vertexCount; i++) { int closestVert = getClosestVert(newmesh.vertices[i], copymesh.vertices); array[i] = copymesh.boneWeights[closestVert]; } } else { Vector3 val = Vector3.zero; for (int j = 0; j < newmesh.vertexCount; j++) { val += newmesh.vertices[j]; } int closestVert2 = getClosestVert(val / (float)newmesh.vertexCount, copymesh.vertices); for (int k = 0; k < newmesh.vertexCount; k++) { array[k] = copymesh.boneWeights[closestVert2]; } } newmesh.boneWeights = array; return newmesh; } public static int getClosestVert(Vector3 vert, Vector3[] basemesh) { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) float num = 99999f; int result = -1; for (int i = 0; i < basemesh.Length; i++) { float num2 = Vector3.Distance(vert, basemesh[i]); if (num2 < num) { num = num2; result = i; } } return result; } public static void alignMeshAllChidren(Transform objectTrans, Transform basetransform) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0033: 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) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: 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_0056: 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_0059: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) MeshFilter[] componentsInChildren = ((Component)objectTrans).GetComponentsInChildren<MeshFilter>(); for (int i = 0; i < componentsInChildren.Length; i++) { Transform val = ((Component)componentsInChildren[i]).transform; Vector3 val2 = val.localPosition; Vector3 val3 = ((Component)val).transform.localEulerAngles; Vector3 val4 = ((Component)val).transform.localScale; for (int j = 0; j < 20; j++) { if (!((Object)(object)val.parent != (Object)(object)objectTrans)) { break; } val = val.parent; val4 = Vector3.Scale(val4, val.localScale); val2 = Vector3.Scale(val4, val2) + val.localPosition; val3 += val.localEulerAngles; } SkinnedMeshRenderer val5 = createSkMeshRen(((Component)componentsInChildren[i]).transform, basetransform); val5.sharedMesh = AlignedSkinMesh(val5.sharedMesh, val2, val3, val4); } } public static void boneMeshAllChidren(Transform objectTrans, Transform basetransform, Mesh baseMesh, bool stretch = true) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) Transform val = basetransform.Find("Armature").Find("Hips"); MeshFilter[] componentsInChildren = ((Component)objectTrans).GetComponentsInChildren<MeshFilter>(); for (int i = 0; i < componentsInChildren.Length; i++) { Transform val2 = ((Component)componentsInChildren[i]).transform; Vector3 val3 = val2.localPosition; Vector3 val4 = ((Component)val2).transform.localEulerAngles; Vector3 val5 = ((Component)val2).transform.localScale; for (int j = 0; j < 20; j++) { if (!((Object)(object)val2.parent != (Object)(object)objectTrans)) { break; } val2 = val2.parent; val5 = Vector3.Scale(val5, val2.localScale); val3 = Vector3.Scale(val5, val3) + val2.localPosition; val4 += val2.localEulerAngles; } val3 += new Vector3(0f, 0f - val.localPosition.y, 0f - val.localPosition.z); SkinnedMeshRenderer val6 = createSkMeshRen(((Component)componentsInChildren[i]).transform, basetransform); val6.sharedMesh = createBonedMesh(val6.sharedMesh, baseMesh, val3, val4, val5, stretch); } } public static void setStyleTex(Material mat, Texture2D styles) { mat.EnableKeyword("_USESTYLES_ON"); mat.SetFloat("_Style", 0f); mat.SetFloat("_UseStyles", 1f); mat.SetTexture("_StyleTex", (Texture)(object)styles); } public static Mesh createScaledCape(Mesh originalMesh, Vector3 scaleTop, Vector3 scaleBot, Vector3 offset = default(Vector3)) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0046: 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_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: 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_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) Vector3 zero = Vector3.zero; Vector3 one = Vector3.one; Mesh val = Object.Instantiate<Mesh>(originalMesh); List<Vector3> list = new List<Vector3>(); for (int i = 0; i < originalMesh.vertices.Count(); i++) { Vector3 val2 = originalMesh.vertices[i]; ((Vector3)(ref zero))..ctor(Mathf.Max(zero.x, val2.x), Mathf.Max(zero.y, val2.y), Mathf.Max(zero.z, val2.z)); ((Vector3)(ref one))..ctor(Mathf.Min(one.x, val2.x), Mathf.Min(one.y, val2.y), Mathf.Min(one.z, val2.z)); } Vector3 val4 = default(Vector3); for (int j = 0; j < originalMesh.vertices.Count(); j++) { Vector3 val3 = originalMesh.vertices[j]; float num = val3.x * (scaleBot.x + (scaleTop.x - scaleBot.x) * (val3.z - one.z) / (zero.z - one.z)); float num2 = val3.y * (scaleBot.y + (scaleTop.y - scaleBot.y) * (val3.z - one.z) / (zero.z - one.z)); ((Vector3)(ref val4))..ctor(num, num2, val3.z); list.Add(new Vector3(val4.x + offset.x, val4.y + offset.y, val4.z + offset.z)); } val.SetVertices(list); ((Object)val).name = "scaled_" + ((Object)val).name; return val; } public static void resolveMocksinChildren(Transform parentTrans) { //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) for (int num = parentTrans.childCount - 1; num >= 0; num--) { Transform child = parentTrans.GetChild(num); if (((Object)child).name.StartsWith("ATmock_")) { GameObject val = getmockGo(((Object)child).name, parentTrans); if (Object.op_Implicit((Object)(object)val)) { Transform val2 = global::Shawesomes_Divine_Armaments.Shawesomes_Divine_Armaments.CopyIntoParent<Transform>(val.transform, parentTrans); val2.localPosition = child.localPosition; val2.localEulerAngles = child.localEulerAngles; val2.localScale = child.localScale; ((Object)val2).name = ((Object)child).name.Split(new char[1] { '.' })[0]; child.parent = null; } } } } public static GameObject getmockGo(string mockname, Transform newParent) { string[] array = mockname.Split(new char[1] { '.' }); if (!array[0].StartsWith("ATmock_")) { return null; } Transform transform; try { transform = PrefabManager.Instance.GetPrefab(array[0].Replace("ATmock_", "")).transform; } catch { return null; } for (int i = 1; i < array.Length; i++) { try { transform = ((Component)transform.Find(array[i])).transform; } catch { } } return ((Component)transform).gameObject; } } public class CraftingConditions : MonoBehaviour { public GameObject Root; public static List<ItemData> ConditionItems = new List<ItemData>(); public static string[] thunderstorm_prefNname = new string[2] { "Thunderstorm_Item", "Active Thunderstorm" }; public static string[] tamednearby_prefNname = new string[2] { "HasTamed_Item", "Tamed Creatures Nearby" }; public static string[] refinernearby_prefNname = new string[2] { "HasRefiner_Item", "Refineries Nearby" }; public static string[] onfire_prefNname = new string[2] { "OnFire_Item", "Is on Fire... in Ashlands" }; public static string[] freezing_prefNname = new string[2] { "Freezing_Item", "Is Freezing in Deep North" }; [HarmonyPostfix] [HarmonyPatch(typeof(Inventory), "CountItems")] private static void PostfixCountItems(Inventory __instance, ref int __result, string name, int quality, bool matchWorldLevel) { if (ConditionItems.Exists((ItemData item) => item.m_shared.m_name == name)) { __result += hasCondition(name, __instance); } } private static int hasCondition(string name, Inventory inv) { //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: 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_00f8: Unknown result type (might be due to invalid IL or missing references) switch (name) { case "Active Thunderstorm": { int num = ((EnvMan.instance.GetCurrentEnvironment().m_name == Weather.ThunderStorm) ? 33 : 0); num += ((EnvMan.instance.GetCurrentEnvironment().m_name == Weather.ClearThunderStorm) ? 33 : 0); num += ((EnvMan.instance.GetCurrentEnvironment().m_name == Weather.EikthyrsThunderstorm) ? 33 : 0); return num + ((EnvMan.instance.GetCurrentEnvironment().m_name == "Mistlands_thunder") ? 33 : 0); } case "Tamed Creatures Nearby": { Vector3 position2 = ((Component)Player.m_localPlayer).transform.position; return getTamedCloseto(position2, 10f); } case "Refineries Nearby": { Vector3 position = ((Component)Player.m_localPlayer).transform.position; return getSmelters(position, 20f); } default: if (name == onfire_prefNname[1]) { return getOnFire(Player.m_localPlayer); } if (name == freezing_prefNname[1]) { return getFreezing(Player.m_localPlayer); } return 0; } } public static int getTamedCloseto(Vector3 center, float maxdist) { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) List<Character> allCharacters = Character.GetAllCharacters(); int num = 0; foreach (Character item in allCharacters) { if (Vector3.Distance(((Component)item).transform.position, center) < maxdist && item.m_tamed && ((Component)item).GetComponent<ZNetView>().IsValid()) { num++; } } return num; } public static int getSmelters(Vector3 center, float maxdist) { //IL_0017: Unknown result type (might be due to invalid IL or missing references) int num = 0; int mask = LayerMask.GetMask(new string[1] { "piece_nonsolid" }); Collider[] array = Physics.OverlapSphere(center, maxdist, mask, (QueryTriggerInteraction)2); List<GameObject> list = new List<GameObject>(); Collider[] array2 = array; foreach (Collider val in array2) { if (!Object.op_Implicit((Object)(object)((Component)val).transform.parent)) { continue; } GameObject gameObject = ((Component)((Component)val).transform.parent).gameObject; if (((Object)gameObject).name.StartsWith("eitrrefinery") && Object.op_Implicit((Object)(object)gameObject.GetComponent<Smelter>()) && !list.Contains(gameObject)) { list.Add(gameObject); if (((Component)gameObject.transform.Find("_enabled")).gameObject.activeSelf) { num++; } } } return num; } public static int getOnFire(Player plr) { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Invalid comparison between Unknown and I4 //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Invalid comparison between Unknown and I4 //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Invalid comparison between Unknown and I4 //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Invalid comparison between Unknown and I4 //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Invalid comparison between Unknown and I4 List<StatusEffect> statusEffects = ((Character)plr).m_seman.m_statusEffects; float num = 0f; float num2 = 1f; if ((int)EnvMan.instance.m_currentBiome != 32) { return 0; } foreach (StatusEffect item in statusEffects) { Type type = ((object)item).GetType(); if (type == typeof(SE_Burning)) { SE_Burning val = (SE_Burning)(object)((item is SE_Burning) ? item : null); num += val.m_fireDamagePerHit; } else { if (!(type == typeof(SE_Stats))) { continue; } SE_Stats val2 = (SE_Stats)(object)((item is SE_Stats) ? item : null); foreach (DamageModPair mod in val2.m_mods) { if ((int)mod.m_type == 32) { if ((int)mod.m_modifier == 1) { num2 *= 1.8f; } else if ((int)mod.m_modifier == 5) { num2 *= 3.6f; } else if ((int)mod.m_modifier == 3) { num += 10f; } } } } } return (int)(num * num2); } public static int getFreezing(Player plr) { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Invalid comparison between Unknown and I4 //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Invalid comparison between Unknown and I4 //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Invalid comparison between Unknown and I4 //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Invalid comparison between Unknown and I4 //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Invalid comparison between Unknown and I4 List<StatusEffect> statusEffects = ((Character)plr).m_seman.m_statusEffects; float num = 0f; float num2 = 1f; if ((int)EnvMan.instance.m_currentBiome != 64) { return 0; } foreach (StatusEffect item in statusEffects) { Type type = ((object)item).GetType(); if (type == typeof(SE_Frost)) { SE_Frost val = (SE_Frost)(object)((item is SE_Frost) ? item : null); num += val.m_freezeTimePlayer / 3f; } else { if (!(type == typeof(SE_Stats))) { continue; } SE_Stats val2 = (SE_Stats)(object)((item is SE_Stats) ? item : null); if ((int)val2.m_hitType == 6) { num -= val2.m_healthPerTick; } foreach (DamageModPair mod in val2.m_mods) { if ((int)mod.m_type == 64) { if ((int)mod.m_modifier == 1) { num2 *= 1.8f; } else if ((int)mod.m_modifier == 5) { num2 *= 3.6f; } } } } } return (int)(num * num2); } [HarmonyPrefix] [HarmonyPatch(typeof(Player), "HaveRequirements", new Type[] { typeof(Recipe), typeof(bool), typeof(int), typeof(int) })] private static void PostfixHaveRequirementItems(Player __instance, Recipe recipe, bool discover, int qualityLevel) { bool flag = false; if (EnvMan.instance.GetCurrentEnvironment().m_name == Weather.ThunderStorm && !__instance.m_knownMaterial.Contains(thunderstorm_prefNname[1])) { __instance.m_knownMaterial.Add(thunderstorm_prefNname[1]); flag = true; } if (!__instance.m_knownMaterial.Contains(tamednearby_prefNname[1])) { __instance.m_knownMaterial.Add(tamednearby_prefNname[1]); flag = true; } if (!__instance.m_knownMaterial.Contains(refinernearby_prefNname[1])) { __instance.m_knownMaterial.Add(refinernearby_prefNname[1]); flag = true; } if (!__instance.m_knownMaterial.Contains(onfire_prefNname[1])) { __instance.m_knownMaterial.Add(onfire_prefNname[1]); flag = true; } if (!__instance.m_knownMaterial.Contains(freezing_prefNname[1])) { __instance.m_knownMaterial.Add(freezing_prefNname[1]); flag = true; } if (flag) { __instance.UpdateKnownRecipesList(); } } private void Awake() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown Root = new GameObject("CraftingConditions"); Root.transform.SetParent(global::Shawesomes_Divine_Armaments.Shawesomes_Divine_Armaments.Root.transform); Root.SetActive(false); Object.DontDestroyOnLoad((Object)(object)Root); global::Shawesomes_Divine_Armaments.Shawesomes_Divine_Armaments.logger.LogWarning((object)"in crafting condish awake"); } public static void setConditionItems() { addThunderstormCondition(); addHasTamedCondition(); addHasSmeltersCondition(); addOnFireCondition(); addFreezingCondition(); } private static void addThunderstormCondition() { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown CustomItem item = ItemManager.Instance.GetItem(thunderstorm_prefNname[0]); if (item == null) { item = new CustomItem(thunderstorm_prefNname[0], "Thunderstone"); ItemManager.Instance.AddItem(item); ItemData itemData = item.ItemDrop.m_itemData; itemData.m_shared.m_name = thunderstorm_prefNname[1]; itemData.m_shared.m_description = "A thunderstorm is occurring"; itemData.m_shared.m_icons[0] = global::Shawesomes_Divine_Armaments.Shawesomes_Divine_Armaments.ActiveTStormIcon; ConditionItems.Add(itemData); } } private static void addHasTamedCondition() { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown CustomItem item = ItemManager.Instance.GetItem(tamednearby_prefNname[0]); if (item == null) { item = new CustomItem(tamednearby_prefNname[0], "TrophyBoar"); ItemManager.Instance.AddItem(item); ItemData itemData = item.ItemDrop.m_itemData; itemData.m_shared.m_name = tamednearby_prefNname[1]; itemData.m_shared.m_description = "You have tamed creatures nearby"; ConditionItems.Add(itemData); } } private static void addHasSmeltersCondition() { //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Expected O, but got Unknown CustomItem item = ItemManager.Instance.GetItem(refinernearby_prefNname[0]); if (item == null) { item = new CustomItem(refinernearby_prefNname[0], "Eitr"); ItemManager.Instance.AddItem(item); ItemData itemData = item.ItemDrop.m_itemData; itemData.m_shared.m_name = refinernearby_prefNname[1]; itemData.m_shared.m_description = "You have refineries nearby"; GameObject prefab = PrefabManager.Instance.GetPrefab("eitrrefinery"); itemData.m_shared.m_icons[0] = prefab.GetComponent<Piece>().m_icon; ConditionItems.Add(itemData); } } private static void addOnFireCondition() { //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Expected O, but got Unknown CustomItem item = ItemManager.Instance.GetItem(onfire_prefNname[0]); if (item == null) { item = new CustomItem(onfire_prefNname[0], "TrophySurtling"); ItemManager.Instance.AddItem(item); ItemData itemData = item.ItemDrop.m_itemData; itemData.m_shared.m_name = onfire_prefNname[1]; itemData.m_shared.m_description = "You are on fire while in Ahslands"; GameObject prefab = PrefabManager.Instance.GetPrefab("bonfire"); itemData.m_shared.m_icons[0] = prefab.GetComponent<Piece>().m_icon; ConditionItems.Add(itemData); } } private static void addFreezingCondition() { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown CustomItem item = ItemManager.Instance.GetItem(freezing_prefNname[0]); if (item == null) { item = new CustomItem(freezing_prefNname[0], "FreezeGland"); ItemManager.Instance.AddItem(item); ItemData itemData = item.ItemDrop.m_itemData; itemData.m_shared.m_name = freezing_prefNname[1]; itemData.m_shared.m_description = "You are Freezing while in the Deep North"; itemData.m_shared.m_icons[0] = global::Shawesomes_Divine_Armaments.Shawesomes_Divine_Armaments.FreezingIcon; ConditionItems.Add(itemData); } } } public class ActiveClothMesh : MonoBehaviour { public Mesh clothmesh = new Mesh(); public Cloth clothref; public float roughness = 0.001f; private float lastTime = 0f; public List<ParticleSystem> partsys; private void Start() { //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)clothref)) { clothref = ((Component)((Component)this).transform.parent).GetComponentInChildren<Cloth>(); } ((Object)clothmesh).name = "ClothMesh"; clothmesh.vertices = clothref.vertices; clothmesh.normals = clothref.normals; partsys = ((Component)this).gameObject.GetComponentsInChildren<ParticleSystem>().ToList(); foreach (ParticleSystem partsy in partsys) { ShapeModule shape = partsy.shape; if (!Object.op_Implicit((Object)(object)((ShapeModule)(ref shape)).skinnedMeshRenderer)) { ShapeModule shape2 = partsy.shape; ((ShapeModule)(ref shape2)).skinnedMeshRenderer = ((Component)this).gameObject.GetComponent<SkinnedMeshRenderer>(); } } } private void Update() { if (Time.time - lastTime > roughness) { if (Object.op_Implicit((Object)(object)clothref)) { clothmesh.vertices = clothref.vertices; clothmesh.normals = clothref.normals; } else { clothref = ((Component)((Component)this).transform.parent).GetComponentInChildren<Cloth>(); } lastTime = Time.time; } } } namespace CustomEffects { [HarmonyPatch] public static class InvisCloakAIPatch { private static string invisCloakName = "ninebytecloak"; private static bool IsPlayerInvisible(Player player) { if ((Object)(object)player == (Object)null || !((Character)player).IsCrouching()) { return false; } if (((Humanoid)player).m_shoulderItem != null && (Object)(object)((Humanoid)player).m_shoulderItem.m_dropPrefab != (Object)null && ((Object)((Humanoid)player).m_shoulderItem.m_dropPrefab).name == invisCloakName) { return true; } return false; } [HarmonyPatch(typeof(BaseAI), "IsAlerted")] [HarmonyPostfix] private static void BaseAI_IsAlerted_Postfix(BaseAI __instance, ref bool __result) { if (__result) { object? obj = ((object)__instance).GetType().GetField("m_targetCreature", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(__instance); Character val = (Character)((obj is Character) ? obj : null); Player val2 = (Player)(object)((val is Player) ? val : null); if (val2 != null && IsPlayerInvisible(val2)) { __result = false; } } } [HarmonyPatch(typeof(MonsterAI), "UpdateAI")] [HarmonyPrefix] private static void MonsterAI_UpdateAI_Prefix(MonsterAI __instance) { if ((Object)(object)__instance == (Object)null) { return; } FieldInfo field = typeof(MonsterAI).GetField("m_targetCreature", BindingFlags.Instance | BindingFlags.NonPublic); if (!(field == null)) { object? value = field.GetValue(__instance); Character val = (Character)((value is Character) ? value : null); Player val2 = (Player)(object)((val is Player) ? val : null); if (val2 != null && IsPlayerInvisible(val2)) { field.SetValue(__instance, null); } } } [HarmonyPatch(typeof(BaseAI), "FindEnemy")] [HarmonyPostfix] private static void BaseAI_FindEnemy_Postfix(BaseAI __instance, ref Character __result) { Character obj = __result; Player val = (Player)(object)((obj is Player) ? obj : null); if (val != null && IsPlayerInvisible(val)) { __result = null; } } [HarmonyPatch(typeof(MonsterAI), "OnDamaged")] [HarmonyPrefix] private static bool MonsterAI_OnDamaged_Prefix(MonsterAI __instance, float damage, Character attacker) { Player val = (Player)(object)((attacker is Player) ? attacker : null); if (val != null && IsPlayerInvisible(val)) { return true; } return true; } } internal class InvisCloak { private static string invisCloakName = "ninebytecloak"; public static bool overwriteParticles = false; [HarmonyPostfix] [HarmonyPatch(typeof(Player), "SetCrouch")] private static void playerCrouch(Player __instance, bool crouch) { bool flag = false; if (((Humanoid)__instance).m_shoulderItem != null && (Object)(object)((Humanoid)__instance).m_shoulderItem.m_dropPrefab != (Object)null && ((Object)((Humanoid)__instance).m_shoulderItem.m_dropPrefab).name == invisCloakName) { flag = true; } DA_CustomEffects dA_CustomEffects = default(DA_CustomEffects); if (!((Component)__instance).gameObject.TryGetComponent<DA_CustomEffects>(ref dA_CustomEffects)) { dA_CustomEffects = ((Component)__instance).gameObject.AddComponent<DA_CustomEffects>(); } dA_CustomEffects.UpdateVis(); updateEffect((Character)(object)__instance, crouch && flag, dA_CustomEffects); } [HarmonyPostfix] [HarmonyPatch(typeof(VisEquipment), "UpdateVisuals")] private static void visEquipUpdate(VisEquipment __instance) { DA_CustomEffects dA_CustomEffects = default(DA_CustomEffects); Player val = default(Player); if (((Component)__instance).gameObject.TryGetComponent<DA_CustomEffects>(ref dA_CustomEffects) && dA_CustomEffects.UpdateVis() && ((Component)__instance).TryGetComponent<Player>(ref val)) { if (((Humanoid)val).m_shoulderItem != null && (Object)(object)((Humanoid)val).m_shoulderItem.m_dropPrefab != (Object)null && ((Object)((Humanoid)val).m_shoulderItem.m_dropPrefab).name == invisCloakName) { updateEffect((Character)(object)val, ((Character)val).IsCrouching(), dA_CustomEffects); } else { updateEffect((Character)(object)val, isInvis: false, dA_CustomEffects); } } } public static void updateEffect(Character character, bool isInvis, DA_CustomEffects da) { da.SetVis(isInvis); } } public class DA_CustomEffects : MonoBehaviour { private Dictionary<Renderer, Material> originalMats = new Dictionary<Renderer, Material>(); private Material baseMat; private Material particleMat; private void Awake() { Renderer[] componentsInChildren = ((Component)this).gameObject.GetComponentsInChildren<Renderer>(); Transform child = ZNetScene.instance.GetPrefab("DragonTear").transform.GetChild(0); baseMat = global::Shawesomes_Divine_Armaments.Shawesomes_Divine_Armaments.invisMat; particleMat = ((Component)((Component)child).transform.GetChild(1)).GetComponent<Renderer>().material; Renderer[] array = componentsInChildren; foreach (Renderer val in array) { if (!originalMats.ContainsKey(val)) { originalMats.Add(val, val.material); } } } public bool UpdateVis() { bool result = false; Character val = default(Character); if (!((Component)this).gameObject.TryGetComponent<Character>(ref val)) { return result; } Renderer[] componentsInChildren = ((Component)this).gameObject.GetComponentsInChildren<Renderer>(); List<Renderer> list = new List<Renderer>(); foreach (KeyValuePair<Renderer, Material> originalMat in originalMats) { if (!componentsInChildren.Contains(originalMat.Key)) { result = true; list.Add(originalMat.Key); } } foreach (Renderer item in list) { originalMats.Remove(item); } Renderer[] array = componentsInChildren; foreach (Renderer val2 in array) { if (!originalMats.ContainsKey(val2)) { originalMats.Add(val2, val2.material); result = true; } } return result; } public void SetVis(bool isInvis) { foreach (KeyValuePair<Renderer, Material> originalMat in originalMats) { if (isInvis) { if (((object)originalMat.Key).GetType() == typeof(ParticleSystemRenderer)) { if (InvisCloak.overwriteParticles) { originalMat.Key.material = particleMat; } } else { originalMat.Key.material = baseMat; } } else { originalMat.Key.material = originalMat.Value; } } } } } namespace Shawesomes_Divine_Armaments { [BepInPlugin("Shawesome.Shawesomes_Divine_Armaments", "Shawesomes_Divine_Armaments", "5.0.3")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Shawesomes_Divine_Armaments : BaseUnityPlugin { [HarmonyPatch(typeof(ObjectDB), "Awake")] private static class AddItems_Patch { private static void Postfix(ObjectDB __instance) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) Scene activeScene = SceneManager.GetActiveScene(); if (((Scene)(ref activeScene)).name == "main") { if (ZNet.instance.IsServer()) { harmonyLog.LogMessage((object)"Updating Recipes as Server2"); AddItemRecipes(); } AddEffectsToZNet(); } } } [HarmonyPatch(typeof(Terminal), "Awake")] private static class RegisterShawCommands { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static ConsoleEvent <>9__0_0; internal void <Postfix>b__0_0(ConsoleEventArgs args) { if (!Object.op_Implicit((Object)(object)Player.m_localPlayer)) { return; } foreach (StatusEffect statusEffect in ((Character)Player.m_localPlayer).GetSEMan().GetStatusEffects()) { Debug.Log((object)("name: " + ((Object)statusEffect).name + " hash: " + statusEffect.m_nameHash + " display: " + statusEffect.m_name)); } } } private static void Postfix() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Expected O, but got Unknown //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown object obj = <>c.<>9__0_0; if (obj == null) { ConsoleEvent val = delegate { if (!Object.op_Implicit((Object)(object)Player.m_localPlayer)) { return; } foreach (StatusEffect statusEffect in ((Character)Player.m_localPlayer).GetSEMan().GetStatusEffects()) { Debug.Log((object)("name: " + ((Object)statusEffect).name + " hash: " + statusEffect.m_nameHash + " display: " + statusEffect.m_name)); } }; <>c.<>9__0_0 = val; obj = (object)val; } ConsoleCommand val2 = new ConsoleCommand("list_status", "list out the names of status effects", (ConsoleEvent)obj, false, false, false, false, false, (ConsoleOptionsFetcher)null, false, false, false); } } [HarmonyPatch(typeof(Player), "SetMaxEitr")] private static class Player_SetMaxEitr_Patch { private static void Prefix(Player __instance, ref float eitr) { if (!((Object)(object)__instance != (Object)(object)Player.m_localPlayer)) { if (((Character)__instance).GetSEMan().HaveStatusEffect(StringExtensionMethods.GetStableHashCode("Potion_DivineElixir_Large"))) { eitr += 250f; } if (((Character)__instance).GetSEMan().HaveStatusEffect(StringExtensionMethods.GetStableHashCode("Caliburn_Blessing_SE"))) { eitr += 110f; } } } } [HarmonyPatch(typeof(Player), "SetMaxStamina")] private static class Player_SetMaxStamina_Patch { private static void Prefix(Player __instance, ref float stamina) { if (!((Object)(object)__instance != (Object)(object)Player.m_localPlayer)) { if (((Character)__instance).GetSEMan().HaveStatusEffect(StringExtensionMethods.GetStableHashCode("Potion_DivineElixir_Large"))) { stamina += 250f; } if (((Character)__instance).GetSEMan().HaveStatusEffect(StringExtensionMethods.GetStableHashCode("Caliburn_Blessing_SE"))) { stamina += 110f; } } } } [HarmonyPatch(typeof(Player), "SetMaxHealth")] private static class Player_SetMaxHealth_Patch { private static void Prefix(Player __instance, ref float health) { if (!((Object)(object)__instance != (Object)(object)Player.m_localPlayer)) { if (((Character)__instance).GetSEMan().HaveStatusEffect(StringExtensionMethods.GetStableHashCode("Potion_DivineElixir_Large"))) { health += 250f; } if (((Character)__instance).GetSEMan().HaveStatusEffect(StringExtensionMethods.GetStableHashCode("Caliburn_Blessing_SE"))) { health += 110f; } } } } [HarmonyPatch(typeof(ItemStyle), "Setup")] private static class ItemStyle_Setup_Patch { private static void Postfix(ItemStyle __instance, int style) { //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Unknown result type (might be due to invalid IL or missing references) //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_0194: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Unknown result type (might be due to invalid IL or missing references) IEquipmentVisual[] componentsInChildren = ((Component)((Component)__instance).transform.parent).GetComponentsInChildren<IEquipmentVisual>(); for (int i = 0; i < componentsInChildren.Length; i++) { if (((object)componentsInChildren[i]).GetType() != typeof(ItemStyle)) { continue; } IEquipmentVisual obj = componentsInChildren[i]; MonoBehaviour val = (MonoBehaviour)(object)((obj is MonoBehaviour) ? obj : null); if (!Object.op_Implicit((Object)(object)val)) { continue; } Material material = ((Component)val).GetComponent<Renderer>().material; material.SetFloat("_Style", (float)style); Color[] colorArray = material.GetColorArray("_StyleColors"); Color[] colorArray2 = material.GetColorArray("_StyleTints"); if (colorArray != null) { material.SetColor("_Color", colorArray[Math.Min(colorArray.Length - 1, style)]); } if (colorArray2 != null) { material.SetColor("_TintColor", colorArray2[Math.Min(colorArray2.Length - 1, style)]); } Color[] colorArray3 = material.GetColorArray("_StyleGradient0"); Color[] colorArray4 = material.GetColorArray("_StyleGradient1"); if (colorArray3 == null && colorArray4 == null) { continue; } ParticleSystem component = ((Component)val).GetComponent<ParticleSystem>(); if (Object.op_Implicit((Object)(object)component)) { ColorOverLifetimeModule colorOverLifetime = component.colorOverLifetime; MinMaxGradient color = ((ColorOverLifetimeModule)(ref colorOverLifetime)).color; GradientColorKey[] array = (GradientColorKey[])((MinMaxGradient)(ref color)).gradient.colorKeys.Clone(); if (colorArray3 != null) { array[0].color = colorArray3[style]; } if (colorArray4 != null) { array[1].color = colorArray4[style]; } color = ((ColorOverLifetimeModule)(ref colorOverLifetime)).color; Gradient gradient = ((MinMaxGradient)(ref color)).gradient; gradient.colorKeys = array; ((ColorOverLifetimeModule)(ref colorOverLifetime)).color = new MinMaxGradient(gradient); } } } } [HarmonyPatch(typeof(Game), "Awake")] private static class GameAwakePatch { private static void Prefix(Game __instance) { foreach (GameObject portal in portals) { __instance.m_portalPrefabs.Add(portal); } } } public Harmony harmony; public static GameObject Root; public static CraftingConditions craftcond; public string version = "1.0.0"; public static ManualLogSource logger; public static ManualLogSource harmonyLog; public static AssetBundle Shawcassets; public static Sprite FreezingIcon; public static Sprite ActiveTStormIcon; public static Material invisMat; public static readonly List<GameObject> portals = new List<GameObject>(); public static GameObject arcanium_go; public static GameObject shaw_helm_go; public static GameObject shawhelm2_go; public static GameObject shawbody_go; public static GameObject shawlegs_go; public static GameObject shawshield_go; public static GameObject caliburn1_go; public static GameObject BBOS_go; public static GameObject MBOS_go; public static GameObject Buildnir_go; public static GameObject tbolt_go; public static GameObject Gungnir_go; public static GameObject feastprep_go; public static GameObject Meldlegs_go; public static GameObject Meldchest_go; public static GameObject Meldhelm_go; public static GameObject nbChest_go; public static GameObject nbl_go; public static GameObject nbb_go; public static GameObject firechest_go; public static GameObject fireeyes_go; public static GameObject firelegs_go; public static GameObject fchest_go; public static GameObject feyes_go; public static GameObject flegs_go; public static GameObject dkhelm_go; public static GameObject dkchest_go; public static GameObject dklegs_go; public static GameObject sdraghelm_go; public static GameObject sdragchest_go; public static GameObject sdraglegs_go; public static GameObject draghelm_go; public static GameObject dragchest_go; public static GameObject draglegs_go; public static GameObject ohelm_go; public static GameObject ochest_go; public static GameObject olegs_go; public static GameObject Rclaw_go; public static GameObject Lclaw_go; public static GameObject rsword_go; public static GameObject fpshield_go; public static GameObject sbshield_go; public static GameObject dkaxe_go; public static GameObject dkshield_go; public static GameObject deprep_go; public static GameObject ntgun_go; public static GameObject ntservo_go; public static GameObject ntbow_go; public static GameObject ntstaff_go; public static GameObject dberg_go; public static GameObject dlance_go; public static GameObject draxe_go; public static GameObject dbow_go; public static GameObject dcres_go; public static GameObject csword_go; public static GameObject slhelm_go; public static GameObject dwsword_go; public static GameObject aslg_go; public static GameObject nbcape_go; public static GameObject vd_go; public static List<GameObject> EffectList = new List<GameObject>(); public static ConfigEntry<string> recipe_arcanium; public static ConfigEntry<string> station_arcanium; public static ConfigEntry<string> recipe_Shaw_helm; public static ConfigEntry<string> station_Shaw_helm; public static ConfigEntry<string> recipe_Shaw_helm2; public static ConfigEntry<string> station_Shaw_helm2; public static ConfigEntry<string> recipe_shawbody; public static ConfigEntry<string> station_shawbody; public static ConfigEntry<string> recipe_shawlegs; public static ConfigEntry<string> station_shawlegs; public static ConfigEntry<string> recipe_shawshield; public static ConfigEntry<string> station_shawshield; public static ConfigEntry<string> recipe_caliburn1; public static ConfigEntry<string> station_caliburn1; public static ConfigEntry<string> recipe_BBOS; public static ConfigEntry<string> station_BBOS; public static ConfigEntry<string> recipe_MBOS; public static ConfigEntry<string> station_MBOS; public static ConfigEntry<string> recipe_Buildnir; public static ConfigEntry<string> station_Buildnir; public static ConfigEntry<string> recipe_tbolt; public static ConfigEntry<string> station_tbolt; public static ConfigEntry<string> recipe_Gungnir; public static ConfigEntry<string> station_Gungnir; public static ConfigEntry<string> recipe_feastprep; public static ConfigEntry<string> station_feastprep; public static ConfigEntry<string> recipe_Meldlegs; public static ConfigEntry<string> station_Meldlegs; public static ConfigEntry<string> recipe_Meldchest; public static ConfigEntry<string> station_Meldchest; public static ConfigEntry<string> recipe_Meldhelm; public static ConfigEntry<string> station_Meldhelm; public static ConfigEntry<string> recipe_Meldcape; public static ConfigEntry<string> station_Meldcape; public static ConfigEntry<string> recipe_Shawcape; public static ConfigEntry<string> station_Shawcape; public static ConfigEntry<string> recipe_Pyrocape; public static ConfigEntry<string> station_Pyrocape; public static ConfigEntry<string> recipe_nbChest; public static ConfigEntry<string> station_nbChest; public static ConfigEntry<string> recipe_nbl; public static ConfigEntry<string> station_nbl; public static ConfigEntry<string> recipe_nbb; public static ConfigEntry<string> station_nbb; public static ConfigEntry<string> recipe_firechest; public static ConfigEntry<string> station_firechest; public static ConfigEntry<string> recipe_fireeyes; public static ConfigEntry<string> station_fireeyes; public static ConfigEntry<string> recipe_firelegs; public static ConfigEntry<string> station_firelegs; public static ConfigEntry<string> recipe_fchest; public static ConfigEntry<string> station_fchest; public static ConfigEntry<string> recipe_feyes; public static ConfigEntry<string> station_feyes; public static ConfigEntry<string> recipe_flegs; public static ConfigEntry<string> station_flegs; public static ConfigEntry<string> recipe_dkhelm; public static ConfigEntry<string> station_dkhelm; public static ConfigEntry<string> recipe_dkchest; public static ConfigEntry<string> station_dkchest; public static ConfigEntry<string> recipe_dklegs; public static ConfigEntry<string> station_dklegs; public static ConfigEntry<string> recipe_sdraghelm; public static ConfigEntry<string> station_sdraghelm; public static ConfigEntry<string> recipe_sdragchest; public static ConfigEntry<string> station_sdragchest; public static ConfigEntry<string> recipe_sdraglegs; public static ConfigEntry<string> station_sdraglegs; public static ConfigEntry<string> recipe_draghelm; public static ConfigEntry<string> station_draghelm; public static ConfigEntry<string> recipe_dragchest; public static ConfigEntry<string> station_dragchest; public static ConfigEntry<string> recipe_draglegs; public static ConfigEntry<string> station_draglegs; public static ConfigEntry<string> recipe_ohelm; public static ConfigEntry<string> station_ohelm; public static ConfigEntry<string> recipe_ochest; public static ConfigEntry<string> station_ochest; public static ConfigEntry<string> recipe_olegs; public static ConfigEntry<string> station_olegs; public static ConfigEntry<string> recipe_Rclaw; public static ConfigEntry<string> station_Rclaw; public static ConfigEntry<string> recipe_Lclaw; public static ConfigEntry<string> station_Lclaw; public static ConfigEntry<string> recipe_rsword; public static ConfigEntry<string> station_rsword; public static ConfigEntry<string> recipe_fpshield; public static ConfigEntry<string> station_fpshield; public static ConfigEntry<string> recipe_sbshield; public static ConfigEntry<string> station_sbshield; public static ConfigEntry<string> recipe_dkaxe; public static ConfigEntry<string> station_dkaxe; public static ConfigEntry<string> recipe_dkshield; public static ConfigEntry<string> station_dkshield; public static ConfigEntry<string> recipe_deprep; public static ConfigEntry<string> station_deprep; public static ConfigEntry<string> recipe_ntgun; public static ConfigEntry<string> station_ntgun; public static ConfigEntry<string> recipe_ntservo; public static ConfigEntry<string> station_ntservo; public static ConfigEntry<string> recipe_ntbow; public static ConfigEntry<string> station_ntbow; public static ConfigEntry<string> recipe_ntstaff; public static ConfigEntry<string> station_ntstaff; public static ConfigEntry<string> recipe_dberg; public static ConfigEntry<string> station_dberg; public static ConfigEntry<string> recipe_dlance; public static ConfigEntry<string> station_dlance; public static ConfigEntry<string> recipe_draxe; public static ConfigEntry<string> station_draxe; public static ConfigEntry<string> recipe_dbow; public static ConfigEntry<string> station_dbow; public static ConfigEntry<string> recipe_dcres; public static ConfigEntry<string> station_dcres; public static ConfigEntry<string> recipe_csword; public static ConfigEntry<string> station_csword; public static ConfigEntry<string> recipe_slhelm; public static ConfigEntry<string> station_slhelm; public static ConfigEntry<string> recipe_dwsword; public static ConfigEntry<string> station_dwsword; public static ConfigEntry<string> recipe_aslg; public static ConfigEntry<string> station_aslg; public static ConfigEntry<string> recipe_9bcape; public static ConfigEntry<string> station_9bcape; public static ConfigEntry<string> recipe_vd; public static ConfigEntry<string> station_vd; public static ConfigEntry<string> recipe_Frostcape; public static ConfigEntry<string> station_Frostcape; public static ConfigEntry<string> recipe_Dhakcape; public static ConfigEntry<string> station_Dhakcape; public static ConfigEntry<string> recipe_JMCcape; public static ConfigEntry<string> station_JMCcape; public void Awake() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Expected O, but got Unknown //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Expected O, but got Unknown //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Expected O, but got Unknown //IL_0175: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Expected O, but got Unknown //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Expected O, but got Unknown //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Expected O, but got Unknown //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Expected O, but got Unknown //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Expected O, but got Unknown //IL_0227: Unknown result type (might be due to invalid IL or missing references) //IL_022c: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Expected O, but got Unknown //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_023f: Expected O, but got Unknown //IL_0267: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0275: Expected O, but got Unknown //IL_0275: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Expected O, but got Unknown //IL_02a7: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02b5: Expected O, but got Unknown //IL_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Expected O, but got Unknown //IL_02e7: Unknown result type (might be due to invalid IL or missing references) //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Expected O, but got Unknown //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_02ff: Expected O, but got Unknown //IL_0327: Unknown result type (might be due to invalid IL or missing references) //IL_032c: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Expected O, but got Unknown //IL_0335: Unknown result type (might be due to invalid IL or missing references) //IL_033f: Expected O, but got Unknown //IL_0367: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Unknown result type (might be due to invalid IL or missing references) //IL_0375: Expected O, but got Unknown //IL_0375: Unknown result type (might be due to invalid IL or missing references) //IL_037f: Expected O, but got Unknown //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_03b5: Expected O, but got Unknown //IL_03b5: Unknown result type (might be due to invalid IL or missing references) //IL_03bf: Expected O, but got Unknown //IL_03e7: 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_03f5: Expected O, but got Unknown //IL_03f5: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Expected O, but got Unknown //IL_0427: Unknown result type (might be due to invalid IL or missing references) //IL_042c: Unknown result type (might be due to invalid IL or missing references) //IL_0435: Expected O, but got Unknown //IL_0435: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Expected O, but got Unknown //IL_0467: Unknown result type (might be due to invalid IL or missing references) //IL_046c: Unknown result type (might be due to invalid IL or missing references) //IL_0475: Expected O, but got Unknown //IL_0475: Unknown result type (might be due to invalid IL or missing references) //IL_047f: Expected O, but got Unknown //IL_04a7: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04b5: Expected O, but got Unknown //IL_04b5: Unknown result type (might be due to invalid IL or missing references) //IL_04bf: Expected O, but got Unknown //IL_04e7: Unknown result type (might be due to invalid IL or missing references) //IL_04ec: Unknown result type (might be due to invalid IL or missing references) //IL_04f5: Expected O, but got Unknown //IL_04f5: Unknown result type (might be due to invalid IL or missing references) //IL_04ff: Expected O, but got Unknown //IL_0527: Unknown result type (might be due to invalid IL or missing references) //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_0535: Expected O, but got Unknown //IL_0535: Unknown result type (might be due to invalid IL or missing references) //IL_053f: Expected O, but got Unknown //IL_0567: Unknown result type (might be due to invalid IL or missing references) //IL_056c: Unknown result type (might be due to invalid IL or missing references) //IL_0575: Expected O, but got Unknown //IL_0575: Unknown result type (might be due to invalid IL or missing references) //IL_057f: Expected O, but got Unknown //IL_05a7: Unknown result type (might be due to invalid IL or missing references) //IL_05ac: Unknown result type (might be due to invalid IL or missing references) //IL_05b5: Expected O, but got Unknown //IL_05b5: Unknown result type (might be due to invalid IL or missing references) //IL_05bf: Expected O, but got Unknown //IL_05e7: Unknown result type (might be due to invalid IL or missing references) //IL_05ec: Unknown result type (might be due to invalid IL or missing references) //IL_05f5: Expected O, but got Unknown //IL_05f5: Unknown result type (might be due to invalid IL or missing references) //IL_05ff: Expected O, but got Unknown //IL_0627: Unknown result type (might be due to invalid IL or missing references) //IL_062c: Unknown result type (might be due to invalid IL or missing references) //IL_0635: Expected O, but got Unknown //IL_0635: Unknown result type (might be due to invalid IL or missing references) //IL_063f: Expected O, but got Unknown //IL_0667: Unknown result type (might be due to invalid IL or missing references) //IL_066c: Unknown result type (might be due to invalid IL or missing references) //IL_0675: Expected O, but got Unknown //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_067f: Expected O, but got Unknown //IL_06a7: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Unknown result type (might be due to invalid IL or missing references) //IL_06b5: Expected O, but got Unknown //IL_06b5: Unknown result type (might be due to invalid IL or missing references) //IL_06bf: Expected O, but got Unknown //IL_06e7: Unknown result type (might be due to invalid IL or missing references) //IL_06ec: Unknown result type (might be due to invalid IL or missing references) //IL_06f5: Expected O, but got Unknown //IL_06f5: Unknown result type (might be due to invalid IL or missing references) //IL_06ff: Expected O, but got Unknown //IL_0727: Unknown result type (might be due to invalid IL or missing references) //IL_072c: Unknown result type (might be due to invalid IL or missing references) //IL_0735: Expected O, but got Unknown //IL_0735: Unknown result type (might be due to invalid IL or missing references) //IL_073f: Expected O, but got Unknown //IL_0767: Unknown result type (might be due to invalid IL or missing references) //IL_076c: Unknown result type (might be due to invalid IL or missing references) //IL_0775: Expected O, but got Unknown //IL_0775: Unknown result type (might be due to invalid IL or missing references) //IL_077f: Expected O, but got Unknown //IL_07a7: Unknown result type (might be due to invalid IL or missing references) //IL_07ac: Unknown result type (might be due to invalid IL or missing references) //IL_07b5: Expected O, but got Unknown //IL_07b5: Unknown result type (might be due to invalid IL or missing references) //IL_07bf: 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_07f5: Expected O, but got Unknown //IL_07f5: Unknown result type (might be due to invalid IL or missing references) //IL_07ff: Expected O, but got Unknown //IL_0827: Unknown result type (might be due to invalid IL or missing references) //IL_082c: Unknown result type (might be due to invalid IL or missing references) //IL_0835: Expected O, but got Unknown //IL_0835: Unknown result type (might be due to invalid IL or missing references) //IL_083f: Expected O, but got Unknown //IL_0867: Unknown result type (might be due to invalid IL or missing references) //IL_086c: Unknown result type (might be due to invalid IL or missing references) //IL_0875: Expected O, but got Unknown //IL_0875: Unknown result type (might be due to invalid IL or missing references) //IL_087f: Expected O, but got Unknown //IL_08a7: Unknown result type (might be due to invalid IL or missing references) //IL_08ac: Unknown result type (might be due to invalid IL or missing references) //IL_08b5: Expected O, but got Unknown //IL_08b5: Unknown result type (might be due to invalid IL or missing references) //IL_08bf: Expected O, but got Unknown //IL_08e7: Unknown result type (might be due to invalid IL or missing references) //IL_08ec: Unknown result type (might be due to invalid IL or missing references) //IL_08f5: Expected O, but got Unknown //IL_08f5: Unknown result type (might be due to invalid IL or missing references) //IL_08ff: Expected O, but got Unknown //IL_0927: Unknown result type (might be due to invalid IL or missing references) //IL_092c: Unknown result type (might be due to invalid IL or missing references) //IL_0935: Expected O, but got Unknown //IL_0935: Unknown result type (might be due to invalid IL or missing references) //IL_093f: Expected O, but got Unknown //IL_0967: Unknown result type (might be due to invalid IL or missing references) //IL_096c: Unknown result type (might be due to invalid IL or missing references) //IL_0975: Expected O, but got Unknown //IL_0975: Unknown result type (might be due to invalid IL or missing references) //IL_097f: Expected O, but got Unknown //IL_09a7: Unknown result type (might be due to invalid IL or missing references) //IL_09ac: Unknown result type (might be due to invalid IL or missing references) //IL_09b5: Expected O, but got Unknown //IL_09b5: Unknown result type (might be due to invalid IL or missing references) //IL_09bf: Expected O, but got Unknown //IL_09e7: Unknown result type (might be due to invalid IL or missing references) //IL_09ec: Unknown result type (might be due to invalid IL or missing references) //IL_09f5: Expected O, but got Unknown //IL_09f5: Unknown result type (might be due to invalid IL or missing references) //IL_09ff: Expected O, but got Unknown //IL_0a27: Unknown result type (might be due to invalid IL or missing references) //IL_0a2c: Unknown result type (might be due to invalid IL or missing references) //IL_0a35: Expected O, but got Unknown //IL_0a35: Unknown result type (might be due to invalid IL or missing references) //IL_0a3f: Expected O, but got Unknown //IL_0a67: Unknown result type (might be due to invalid IL or missing references) //IL_0a6c: Unknown result type (might be due to invalid IL or missing references) //IL_0a75: Expected O, but got Unknown //IL_0a75: Unknown result type (might be due to invalid IL or missing references) //IL_0a7f: Expected O, but got Unknown //IL_0aa7: Unknown result type (might be due to invalid IL or missing references) //IL_0aac: Unknown result type (might be due to invalid IL or missing references) //IL_0ab5: Expected O, but got Unknown //IL_0ab5: Unknown result type (might be due to invalid IL or missing references) //IL_0abf: Expected O, but got Unknown //IL_0ae7: Unknown result type (might be due to invalid IL or missing references) //IL_0aec: Unknown result type (might be due to invalid IL or missing references) //IL_0af5: Expected O, but got Unknown //IL_0af5: Unknown result type (might be due to invalid IL or missing references) //IL_0aff: Expected O, but got Unknown //IL_0b27: Unknown result type (might be due to invalid IL or missing references) //IL_0b2c: Unknown result type (might be due to invalid IL or missing references) //IL_0b35: Expected O, but got Unknown //IL_0b35: Unknown result type (might be due to invalid IL or missing references) //IL_0b3f: Expected O, but got Unknown //IL_0b67: Unknown result type (might be due to invalid IL or missing references) //IL_0b6c: Unknown result type (might be due to invalid IL or missing references) //IL_0b75: Expected O, but got Unknown //IL_0b75: Unknown result type (might be due to invalid IL or missing references) //IL_0b7f: Expected O, but got Unknown //IL_0ba7: Unknown result type (might be due to invalid IL or missing references) //IL_0bac: Unknown result type (might be due to invalid IL or missing references) //IL_0bb5: Expected O, but got Unknown //IL_0bb5: Unknown result type (might be due to invalid IL or missing references) //IL_0bbf: Expected O, but got Unknown //IL_0be7: Unknown result type (might be due to invalid IL or missing references) //IL_0bec: Unknown result type (might be due to invalid IL or missing references) //IL_0bf5: Expected O, but got Unknown //IL_0bf5: Unknown result type (might be due to invalid IL or missing references) //IL_0bff: Expected O, but got Unknown //IL_0c27: Unknown result type (might be due to invalid IL or missing references) //IL_0c2c: Unknown result type (might be due to invalid IL or missing references) //IL_0c35: Expected O, but got Unknown //IL_0c35: Unknown result type (might be due to invalid IL or missing references) //IL_0c3f: Expected O, but got Unknown //IL_0c67: Unknown result type (might be due to invalid IL or missing references) //IL_0c6c: Unknown result type (might be due to invalid IL or missing references) //IL_0c75: Expected O, but got Unknown //IL_0c75: Unknown result type (might be due to invalid IL or missing references) //IL_0c7f: Expected O, but got Unknown //IL_0ca7: Unknown result type (might be due to invalid IL or missing references) //IL_0cac: Unknown result type (might be due to invalid IL or missing references) //IL_0cb5: Expected O, but got Unknown //IL_0cb5: Unknown result type (might be due to invalid IL or missing references) //IL_0cbf: Expected O, but got Unknown //IL_0ce7: Unknown result type (might be due to invalid IL or missing references) //IL_0cec: Unknown result type (might be due to invalid IL or missing references) //IL_0cf5: Expected O, but got Unknown //IL_0cf5: Unknown result type (might be due to invalid IL or missing references) //IL_0cff: Expected O, but got Unknown //IL_0d27: Unknown result type (might be due to invalid IL or missing references) //IL_0d2c: Unknown result type (might be due to invalid IL or missing references) //IL_0d35: Expected O, but got Unknown //IL_0d35: Unknown result type (might be due to invalid IL or missing references) //IL_0d3f: Expected O, but got Unknown //IL_0d67: Unknown result type (might be due to invalid IL or missing references) //IL_0d6c: Unknown result type (might be due to invalid IL or missing references) //IL_0d75: Expected O, but got Unknown //IL_0d75: Unknown result type (might be due to invalid IL or missing references) //IL_0d7f: Expected O, but got Unknown //IL_0da7: Unknown result type (might be due to invalid IL or missing references) //IL_0dac: Unknown result type (might be due to invalid IL or missing references) //IL_0db5: Expected O, but got Unknown //IL_0db5: Unknown result type (might be due to invalid IL or missing references) //IL_0dbf: Expected O, but got Unknown //IL_0de7: Unknown result type (might be due to invalid IL or missing references) //IL_0dec: Unknown result type (might be due to invalid IL or missing references) //IL_0df5: Expected O, but got Unknown //IL_0df5: Unknown result type (might be due to invalid IL or missing references) //IL_0dff: Expected O, but got Unknown //IL_0e27: Unknown result type (might be due to invalid IL or missing references) //IL_0e2c: Unknown result type (might be due to invalid IL or missing references) //IL_0e35: Expected O, but got Unknown //IL_0e35: Unknown result type (might be due to invalid IL or missing references) //IL_0e3f: Expected O, but got Unknown //IL_0e67: Unknown result type (might be due to invalid IL or missing references) //IL_0e6c: Unknown result type (might be due to invalid IL or missing references) //IL_0e75: Expected O, but got Unknown //IL_0e75: Unknown result type (might be due to invalid IL or missing references) //IL_0e7f: Expected O, but got Unknown //IL_0ea7: Unknown result type (might be due to invalid IL or missing references) //IL_0eac: Unknown result type (might be due to invalid IL or missing references) //IL_0eb5: Expected O, but got Unknown //IL_0eb5: Unknown result type (might be due to invalid IL or missing references) //IL_0ebf: Expected O, but got Unknown //IL_0ee7: Unknown result type (might be due to invalid IL or missing references) //IL_0eec: Unknown result type (might be due to invalid IL or missing references) //IL_0ef5: Expected O, but got Unknown //IL_0ef5: Unknown result type (might be due to invalid IL or missing references) //IL_0eff: Expected O, but got Unknown //IL_0f27: Unknown result type (might be due to invalid IL or missing references) //IL_0f2c: Unknown result type (might be due to invalid IL or missing references) //IL_0f35: Expected O, but got Unknown //IL_0f35: Unknown result type (might be due to invalid IL or missing references) //IL_0f3f: Expected O, but got Unknown //IL_0f67: Unknown result type (might be due to invalid IL or missing references) //IL_0f6c: Unknown result type (might be due to invalid IL or missing references) //IL_0f75: Expected O, but got Unknown //IL_0f75: Unknown result type (might be due to invalid IL or missing references) //IL_0f7f: Expected O, but got Unknown //IL_0fa7: Unknown result type (might be due to invalid IL or missing references) //IL_0fac: Unknown result type (might be due to invalid IL or missing references) //IL_0fb5: Expected O, but got Unknown //IL_0fb5: Unknown result type (might be due to invalid IL or missing references) //IL_0fbf: Expected O, but got Unknown //IL_0fe7: Unknown result type (might be due to invalid IL or missing references) //IL_0fec: Unknown result type (might be due to invalid IL or missing references) //IL_0ff5: Expected O, but got Unknown //IL_0ff5: Unknown result type (might be due to invalid IL or missing references) //IL_0fff: Expected O, but got Unknown //IL_1027: Unknown result type (might be due to invalid IL or missing references) //IL_102c: Unknown result type (might be due to invalid IL or missing references) //IL_1035: Expected O, but got Unknown //IL_1035: Unknown result type (might be due to invalid IL or missing references) //IL_103f: Expected O, but got Unknown //IL_1067: Unknown result type (might be due to invalid IL or missing references) //IL_106c: Unknown result type (might be due to invalid IL or missing references) //IL_1075: Expected O, but got Unknown //IL_1075: Unknown result type (might be due to invalid IL or missing references) //IL_107f: Expected O, but got Unknown //IL_10a7: 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_10b5: Expected O, but got Unknown //IL_10b5: Unknown result type (might be due to invalid IL or missing references) //IL_10bf: Expected O, but got Unknown //IL_10e7: Unknown result type (might be due to invalid IL or missing references) //IL_10ec: Unknown result type (might be due to invalid IL or missing references) //IL_10f5: Expected O, but got Unknown //IL_10f5: Unknown result type (might be due to invalid IL or missing references) //IL_10ff: Expected O, but got Unknown //IL_1127: Unknown result type (might be due to invalid IL or missing references) //IL_112c: Unknown result type (might be due to invalid IL or missing references) //IL_1135: Expected O, but got Unknown //IL_1135: Unknown result type (might be due to invalid IL or missing references) //IL_113f: Expected O, but got Unknown //IL_1167: Unknown result type (might be due to invalid IL or missing references) //IL_116c: Unknown result type (might be due to invalid IL or missing references) //IL_1175: Expected O, but got Unknown //IL_1175: Unknown result type (might be due to invalid IL or missing references) //IL_117f: Expected O, but got Unknown //IL_11a7: Unknown result type (might be due to invalid IL or missing references) //IL_11ac: Unknown result type (might be due to invalid IL or missing references) //IL_11b5: Expected O, but got Unknown //IL_11b5: Unknown result type (might be due to invalid IL or missing references) //IL_11bf: Expected O, but got Unknown //IL_11e7: Unknown result type (might be due to invalid IL or missing references) //IL_11ec: Unknown result type (might be due to invalid IL or missing references) //IL_11f5: Expected O, but got Unknown //IL_11f5: Unknown result type (might be due to invalid IL or missing references) //IL_11ff: Expected O, but got Unknown //IL_1227: Unknown result type (might be due to invalid IL or missing references) //IL_122c: Unknown result type (might be due to invalid IL or missing references) //IL_1235: Expected O, but got Unknown //IL_1235: Unknown result type (might be due to invalid IL or missing references) //IL_123f: Expected O, but got Unknown //IL_1267: Unknown result type (might be due to invalid IL or missing references) //IL_126c: Unknown result type (might be due to invalid IL or missing references) //IL_1275: Expected O, but got Unknown //IL_1275: Unknown result type (might be due to invalid IL or missing references) //IL_127f: Expected O, but got Unknown //IL_12a7: Unknown result type (might be due to invalid IL or missing references) //IL_12ac: Unknown result type (might be due to invalid IL or missing references) //IL_12b5: Expected O, but got Unknown //IL_12b5: Unknown result type (might be due to invalid IL or missing references) //IL_12bf: Expected O, but got Unknown //IL_12e7: Unknown result type (might be due to invalid IL or missing references) //IL_12ec: Unknown result type (might be due to invalid IL or missing references) //IL_12f5: Expected O, but got Unknown //IL_12f5: Unknown result type (might be due to invalid IL or missing references) //IL_12ff: Expected O, but got Unknown //IL_1327: Unknown result type (might be due to invalid IL or missing references) //IL_132c: Unknown result type (might be due to invalid IL or missing references) //IL_1335: Expected O, but got Unknown //IL_1335: Unknown result type (might be due to invalid IL or missing references) //IL_133f: Expected O, but got Unknown //IL_1367: Unknown result type (might be due to invalid IL or missing references) //IL_136c: Unknown result type (might be due to invalid IL or missing references) //IL_1375: Expected O, but got Unknown //IL_1375: Unknown result type (might be due to invalid IL or missing references) //IL_137f: Expected O, but got Unknown //IL_13a7: Unknown result type (might be due to invalid IL or missing references) //IL_13ac: Unknown result type (might be due to invalid IL or missing references) //IL_13b5: Expected O, but got Unknown //IL_13b5: Unknown result type (might be due to invalid IL or missing references) //IL_13bf: Expected O, but got Unknown //IL_13e7: Unknown result type (might be due to invalid IL or missing references) //IL_13ec: Unknown result type (might be due to invalid IL or missing references) //IL_13f5: Expected O, but got Unknown //IL_13f5: Unknown result type (might be due to invalid IL or missing references) //IL_13ff: Expected O, but got Unknown //IL_1427: Unknown result type (might be due to invalid IL or missing references) //IL_142c: Unknown result type (might be due to invalid IL or missing references) //IL_1435: Expected O, but got Unknown //IL_1435: Unknown result type (might be due to invalid IL or missing references) //IL_143f: Expected O, but got Unknown //IL_1467: Unknown result type (might be due to invalid IL or missing references) //IL_146c: Unknown result type (might be due to invalid IL or missing references) //IL_1475: Expected O, but got Unknown //IL_1475: Unknown result type (might be due to invalid IL or missing references) //IL_147f: Expected O, but got Unknown //IL_14a7: Unknown result type (might be due to invalid IL or missing references) //IL_14ac: Unknown result type (might be due to invalid IL or missing references) //IL_14b5: Expected O, but got Unknown //IL_14b5: Unknown result type (might be due to invalid IL or missing references) //IL_14bf: Expected O, but got Unknown //IL_14e7: Unknown result type (might be due to invalid IL or missing references) //IL_14ec: Unknown result type (might be due to invalid IL or missing references) //IL_14f5: Expected O, but got Unknown //IL_14f5: Unknown result type (might be due to invalid IL or missing references) //IL_14ff: Expected O, but got Unknown //IL_1527: Unknown result type (might be due to invalid IL or missing references) //IL_152c: Unknown result type (might be due to invalid IL or missing references) //IL_1535: Expected O, but got Unknown //IL_1535: Unknown result type (might be due to invalid IL or missing references) //IL_153f: Expected O, but got Unknown //IL_1567: Unknown result type (might be due to invalid IL or missing references) //IL_156c: Unknown result type (might be due to invalid IL or missing references) //IL_1575: Expected O, but got Unknown //IL_1575: Unknown result type (might be due to invalid IL or missing references) //IL_157f: Expected O, but got Unknown //IL_15a7: Unknown result type (might be due to invalid IL or missing references) //IL_15ac: Unknown result type (might be due to invalid IL or missing references) //IL_15b5: Expected O, but got Unknown //IL_15b5: Unknown result type (might be due to invalid IL or missing references) //IL_15bf: Expected O, but got Unknown //IL_15e7: Unknown result type (might be due to invalid IL or missing references) //IL_15ec: Unknown result type (might be due to invalid IL or missing references) //IL_15f5: Expected O, but got Unknown //IL_15f5: Unknown result type (might be due to invalid IL or missing references) //IL_15ff: Expected O, but got Unknown //IL_1627: Unknown result type (might be due to invalid IL or missing references) //IL_162c: Unknown result type (might be due to invalid IL or missing references) //IL_1635: Expected O, but got Unknown //IL_1635: Unknown result type (might be due to invalid IL or missing references) //IL_163f: Expected O, but got Unknown //IL_1667: Unknown result type (might be due to invalid IL or missing references) //IL_166c: Unknown result type (might be due to invalid IL or missing references) //IL_1675: Expected O, but got Unknown //IL_1675: Unknown result type (might be due to invalid IL or missing references) //IL_167f: Expected O, but got Unknown //IL_16a7: Unknown result type (might be due to invalid IL or missing references) //IL_16ac: Unknown result type (might be due to invalid IL or missing references) //IL_16b5: Expected O, but got Unknown //IL_16b5: Unknown result type (might be due to invalid IL or missing references) //IL_16bf: Expected O, but got Unknown //IL_16e7: Unknown result type (might be due to invalid IL or missing references) //IL_16ec: Unknown result type (might be due to invalid IL or missing references) //IL_16f5: Expected O, but got Unknown //IL_16f5: Unknown result type (might be due to invalid IL or missing references) //IL_16ff: Expected O, but got Unknown //IL_1727: Unknown result type (might be due to invalid IL or missing references) //IL_172c: Unknown result type (might be due to invalid IL or missing references) //IL_1735: Expected O, but got Unknown //IL_1735: Unknown result type (might be due to invalid IL or missing references) //IL_173f: Expected O, but got Unknown //IL_1767: Unknown result type (might be due to invalid IL or missing references) //IL_176c: Unknown result type (might be due to invalid IL or missing references) //IL_1775: Expected O, but got Unknown //IL_1775: Unknown result type (might be due to invalid IL or missing references) //IL_177f: Expected O, but got Unknown //IL_17a7: Unknown result type (might be due to invalid IL or missing references) //IL_17ac: Unknown result type (might be due to invalid IL or missing references) //IL_17b5: Expected O, but got Unknown //IL_17b5: Unknown result type (might be due to invalid IL or missing references) //IL_17bf: Expected O, but got Unknown //IL_17e7: Unknown result type (might be due to invalid IL or missing references) //IL_17ec: Unknown result type (might be due to invalid IL or missing references) //IL_17f5: Expected O, but got Unknown //IL_17f5: Unknown result type (might be due to invalid IL or missing references) //IL_17ff: Expected O, but got Unknown //IL_1827: Unknown result type (might be due to invalid IL or missing references) //IL_182c: Unknown result type (might be due to invalid IL or missing references) //IL_1835: Expected O, but got Unknown //IL_1835: Unknown result type (might be due to invalid IL or missing references) //IL_183f: Expected O, but got Unknown //IL_1867: Unknown result type (might be due to invalid IL or missing references) //IL_186c: Unknown result type (might be due to invalid IL or missing references) //IL_1875: Expected O, but got Unknown //IL_1875: Unknown result type (might be due to invalid IL or missing references) //IL_187f: Expected O, but got Unknown //IL_18a7: Unknown result type (might be due to invalid IL or missing references) //IL_18ac: Unknown result type (might be due to invalid IL or missing references) //IL_18b5: Expected O, but got Unknown //IL_18b5: Unknown result type (might be due to invalid IL or missing references) //IL_18bf: Expected O, but got Unknown //IL_18e7: Unknown result type (might be due to invalid IL or missing references) //IL_18ec: Unknown result type (might be due to invalid IL or missing references) //IL_18f5: Expected O, but got Unknown //IL_18f5: Unknown result type (might be due to invalid IL or missing references) //IL_18ff: Expected O, but got Unknown //IL_1927: Unknown result type (might be due to invalid IL or missing references) //IL_192c: Unknown result type (might be due to invalid IL or missing references) //IL_1935: Expected O, but got Unknown //IL_1935: Unknown result type (might be due to invalid IL or missing references) //IL_193f: Expected O, but got Unknown //IL_1967: Unknown result type (might be due to invalid IL or missing references) //IL_196c: Unknown result type (might be due to invalid IL or missing references) //IL_1975: Expected O, but got Unknown //IL_1975: Unknown result type (might be due to invalid IL or missing references) //IL_197f: Expected O, but got Unknown //IL_19a7: Unknown result type (might be due to invalid IL or missing references) //IL_19ac: Unknown result type (might be due to invalid IL or missing references) //IL_19b5: Expected O, but got Unknown //IL_19b5: Unknown result type (might be due to invalid IL or missing references) //IL_19bf: Expected O, but got Unknown //IL_19e7: Unknown result type (might be due to invalid IL or missing references) //IL_19ec: Unknown result type (might be due to invalid IL or missing references) //IL_19f5: Expected O, but got Unknown //IL_19f5: Unknown result type (might be due to invalid IL or missing references) //IL_19ff: Expected O, but got Unknown //IL_1a27: Unknown result type (might be due to invalid IL or missing references) //IL_1a2c: Unknown result type (might be due to invalid IL or missing references) //IL_1a35: Expected O, but got Unknown //IL_1a35: Unknown result type (might be due to invalid IL or missing references) //IL_1a3f: Expected O, but got Unknown //IL_1a67: Unknown result type (might be due to invalid IL or missing references) //IL_1a6c: Unknown result type (might be due to invalid IL or missing references) //IL_1a75: Expected O, but got Unknown //IL_1a75: Unknown result type (might be due to invalid IL or missing references) //IL_1a7f: Expected O, but got Unknown //IL_1aa7: Unknown result type (might be due to invalid IL or missing references) //IL_1aac: Unknown result type (might be due to invalid IL or missing references) //IL_1ab5: Expected O, but got Unknown //IL_1ab5: Unknown result type (might be due to invalid IL or missing references) //IL_1abf: Expected O, but got Unknown //IL_1ae7: Unknown result type (might be due to invalid IL or missing references) //IL_1aec: Unknown result type (might be due to invalid IL or missing references) //IL_1af5: Expected O, but got Unknown //IL_1af5: Unknown result type (might be due to invalid IL or missing references) //IL_1aff: Expected O, but got Unknown //IL_1b27: Unknown result type (might be due to invalid IL or missing references) //IL_1b2c: Unknown result type (might be due to invalid IL or missing references) //IL_1b35: Expected O, but got Unknown //IL_1b35: Unknown result type (might be due to invalid IL or missing references) //IL_1b3f: Expected O, but got Unknown //IL_1b67: Unknown result type (might be due to invalid IL or missing references) //IL_1b6c: Unknown result type (might be due to invalid IL or missing references) //IL_1b75: Expected O, but got Unknown //IL_1b75: Unknown result type (might be due to invalid IL or missing references) //IL_1b7f: Expected O, but got Unknown //IL_1ba7: Unknown result type (might be due to invalid IL or missing references) //IL_1bac: Unknown result type (might be due to invalid IL or missing references) //IL_1bb5: Expected O, but got Unknown //IL_1bb5: Unknown result type (might be due to invalid IL or missing references) //IL_1bbf: Expected O, but got Unknown //IL_1be7: Unknown result type (might be due to invalid IL or missing references) //IL_1bec: Unknown result type (might be due to invalid IL or missing references) //IL_1bf5: Expected O, but got Unknown //IL_1bf5: Unknown result type (might be due to invalid IL or missing references) //IL_1bff: Expected O, but got Unknown //IL_1c27: Unknown result type (might be due to invalid IL or missing references) //IL_1c2c: Unknown result type (might be due to invalid IL or missing references) //IL_1c35: Expected O, but got Unknown //IL_1c35: Unknown result type (might be due to invalid IL or missing references) //IL_1c3f: Expected O, but got Unknown //IL_1c67: Unknown result type (might be due to invalid IL or missing references) //IL_1c6c: Unknown result type (might be due to invalid IL or missing references) //IL_1c75: Expected O, but got Unknown //IL_1c75: Unknown result type (might be due to invalid IL or missing references) //IL_1c7f: Expected O, but got Unknown //IL_1ca7: Unknown result type (might be due to invalid IL or missing references) //IL_1cac: Unknown result type (might be due to invalid IL or missing references) //IL_1cb5: Expected O, but got Unknown //IL_1cb5: Unknown result type (might be due to invalid IL or missing references) //IL_1cbf: Expected O, but got Unknown //IL_1ce7: Unknown result type (might be due to invalid IL or missing reference