Decompiled source of Shawesomes Divine Armaments v3.1.1
Shawesomes_Divine_Armaments.dll
Decompiled a day ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; 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.Logging; using CustomEffects; using HarmonyLib; using Jotunn; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; using UnityEngine; using shawcape; [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] 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 = 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] { "AT_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_0076: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00af: 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); return num + ((EnvMan.instance.GetCurrentEnvironment().m_name == Weather.ClearThunderStorm) ? 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) })] 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(Shawesomes_Divine_Armaments.Root.transform); Root.SetActive(false); Object.DontDestroyOnLoad((Object)(object)Root); Shawesomes_Divine_Armaments.logger.LogWarning((object)"in crafting condish"); } 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"; 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] = 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 { 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 = 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 shawcape { [BepInPlugin("IDshawesome4u", "Shawesomes_Divine_Armaments", "3.1.1")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Shawesomes_Divine_Armaments : BaseUnityPlugin { [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); } } } } 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; private static AssetBundle Shawcassets; public static Sprite FreezingIcon; public static Material invisMat; public void Awake() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Expected O, but got Unknown logger = ((BaseUnityPlugin)this).Logger; harmony = new Harmony("IDshawesome4u"); Root = new GameObject("Shaw Root"); craftcond = Root.AddComponent<CraftingConditions>(); Object.DontDestroyOnLoad((Object)(object)Root); harmony.PatchAll(typeof(InvisCloak)); harmonyLog = ((BaseUnityPlugin)this).Logger; ((object)ItemManager.Instance).ToString(); harmonyLog.LogWarning((object)"Divine Armaments of Unrivaled Awesomeness Descend from the Heavens... Will you be Worthy?"); Shawcassets = AssetUtils.LoadAssetBundleFromResources("Shawcassets", Assembly.GetExecutingAssembly()); FreezingIcon = Shawcassets.LoadAsset<Sprite>("Assets/ShawesomeCapeimage/FreezingCondishIcon.asset"); PrefabManager.OnVanillaPrefabsAvailable += CraftingConditions.setConditionItems; PrefabManager.OnVanillaPrefabsAvailable += Additems; Assembly executingAssembly = Assembly.GetExecutingAssembly(); harmony.PatchAll(executingAssembly); } public static void Additems() { Capeofshaw(); AddMeldursonCape(); Addjmcgoddesss(); AddNecroTechCape(); Addgaia(); AddPyroCape(); AddCryoCape(); Addfrostchest(); Addfrostlegs(); Addfrosteyes(); AddBBOS(); AddMBOS(); Addfpshield(); Addsbshield(); AddMeldlegs(); AddMeldchest(); AddMeldhelm(); Adddhakhelm(); Adddhakbody(); Adddhaklegs(); AdddhakAxe(); Adddhakshield(); AddNTGUN(); AddNTServo(); AddNTBow(); AddNTSTAFF(); AddArcanium(); Addshawhelm(); Addshawhelm1(); Addshawbody(); Addshawlegs(); Addshawshield(); AddCaliburn(); AddOmnihelm(); AddOmnichest(); AddOmnilegs(); AddEOMlightningclaw(); AddEOMlightningclawr(); AddEOMrelicsword(); AddshawesomeWF(); AddshawesomeLF(); Addshawesomedoor(); Addshawesomecomp(); Addshawesomecomp2(); Addshawesomecomp3(); Addchillisword(); Addslayerhelm(); Addslayercape(); Adddwellersword(); Addadvosledge(); Addmythwolf(); Addgodfeast(); Addfeastprep(); Adddivineelixirprep(); Adddivineelixir(); Addicechest(); Addfeasttable(); AddAsgardianDAV(); Addbuildnir(); Addthunderbolt(); AddGungnir(); PrefabManager.OnVanillaPrefabsAvailable -= Additems; } public static void AdddhakAxe() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 10, 15, false)); val.AddRequirement(new RequirementConfig("DragonEgg", 1, 1, false)); val.AddRequirement(new RequirementConfig("Ruby", 20, 10, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 20, 20, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeNTARMOR/DhakharianAXE.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addthunderbolt() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Expected O, but got Unknown //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Expected O, but got Unknown //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 40, 0, false)); val.AddRequirement(new RequirementConfig("TrophyEikthyr", 1, 0, false)); val.AddRequirement(new RequirementConfig("Amber", 20, 10, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome0ashlandsrip/shwhevnlyltng.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Adddivineelixir() { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Expected O, but got Unknown //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown GameObject val = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome/ShawDivineElixir.prefab"); CustomItem val2 = new CustomItem(val, false); if (!Object.op_Implicit((Object)(object)PrefabManager.Instance.GetPrefab(((Object)val).name))) { ItemManager.Instance.AddItem(val2); FermenterConversionConfig val3 = new FermenterConversionConfig(); ((ConversionConfig)val3).FromItem = "ShawDivineElixerBase"; ((ConversionConfig)val3).ToItem = ((Object)val).name; ((ConversionConfig)val3).Station = "fermenter"; ItemManager.Instance.AddItemConversion(new CustomItemConversion((ConversionConfig)(object)val3)); } } public static void Adddivineelixirprep() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Expected O, but got Unknown //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("MeadHealthMajor", 1, 0, false)); val.AddRequirement(new RequirementConfig("MeadEitrMinor", 1, 0, false)); val.AddRequirement(new RequirementConfig("MeadStaminaMedium", 1, 0, false)); val.AddRequirement(new RequirementConfig("MeadHealthLingering", 1, 0, false)); val.AddRequirement(new RequirementConfig("MeadEitrLingering", 1, 0, false)); val.AddRequirement(new RequirementConfig("MeadStaminaLingering", 1, 0, false)); val.AddRequirement(new RequirementConfig("CelestialFeather", 1, 0, false)); val.AddRequirement(new RequirementConfig("GemstoneBlue", 1, 0, false)); val.CraftingStation = CraftingStations.Cauldron; val.MinStationLevel = 1; val.Amount = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome/ShawDivineElixerBase.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addslayercape() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 30, 15, false)); val.AddRequirement(new RequirementConfig("DragonEgg", 1, 1, false)); val.AddRequirement(new RequirementConfig("Ruby", 20, 10, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 40, 20, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome0ashlandsrip/shawesomeslayercape.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addadvosledge() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 30, 15, false)); val.AddRequirement(new RequirementConfig("DragonEgg", 1, 1, false)); val.AddRequirement(new RequirementConfig("Ruby", 20, 10, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 40, 20, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/shawesomesledge.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addslayerhelm() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 30, 15, false)); val.AddRequirement(new RequirementConfig("DragonEgg", 1, 1, false)); val.AddRequirement(new RequirementConfig("Ruby", 20, 10, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 40, 20, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/slayerhelm.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Adddwellersword() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 30, 15, false)); val.AddRequirement(new RequirementConfig("DragonEgg", 1, 1, false)); val.AddRequirement(new RequirementConfig("Ruby", 20, 10, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 40, 20, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/swordodweller.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addchillisword() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("FlametalNew", 30, 15, false)); val.AddRequirement(new RequirementConfig("DragonEgg", 1, 1, false)); val.AddRequirement(new RequirementConfig("Ruby", 20, 10, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 40, 20, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/swordochili.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addfrosteyes() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("TrophySGolem", 1, 1, false)); val.AddRequirement(new RequirementConfig("FreezeGland", 7, 7, false)); val.AddRequirement(new RequirementConfig("TrophyDragonQueen", 1, 0, false)); val.AddRequirement(new RequirementConfig("Eitr", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/shawfrosthelm.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addfrostlegs() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("TrophySGolem", 1, 1, false)); val.AddRequirement(new RequirementConfig("FreezeGland", 7, 7, false)); val.AddRequirement(new RequirementConfig("TrophyDragonQueen", 1, 0, false)); val.AddRequirement(new RequirementConfig("Eitr", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/shawfrostlegs.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addfrostchest() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("TrophySGolem", 1, 1, false)); val.AddRequirement(new RequirementConfig("FreezeGland", 7, 7, false)); val.AddRequirement(new RequirementConfig("TrophyDragonQueen", 1, 0, false)); val.AddRequirement(new RequirementConfig("Eitr", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/shawfrostchest.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addmythwolf() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown CreatureConfig val = new CreatureConfig(); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/MythWolf.prefab"); CustomCreature val3 = new CustomCreature(val2, true, val); CreatureManager.Instance.AddCreature(val3); } public static void AddAsgardianDAV() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("Coins", 4444, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/AsgardianDAV.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Addfeasttable() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Expected O, but got Unknown //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("Coins", 1000, 0, false)); val.AddRequirement(new RequirementConfig("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("Silver", 40, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/Asgardianfoodtable.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Addicechest() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Expected O, but got Unknown //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("Coins", 777, 0, false)); val.AddRequirement(new RequirementConfig("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("Silver", 20, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/spotionicechest.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Addgodfeast() { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Expected O, but got Unknown //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Expected O, but got Unknown GameObject val = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/cookedFeastofthegods.prefab"); CustomItem val2 = new CustomItem(val, false); if (!Object.op_Implicit((Object)(object)PrefabManager.Instance.GetPrefab(((Object)val).name))) { ItemManager.Instance.AddItem(val2); CookingConversionConfig val3 = new CookingConversionConfig(); ((ConversionConfig)val3).FromItem = "UncookedFeastofthegods"; ((ConversionConfig)val3).ToItem = ((Object)val).name; val3.CookTime = 300f; ((ConversionConfig)val3).Station = CookingStations.StoneOven; ItemManager.Instance.AddItemConversion(new CustomItemConversion((ConversionConfig)(object)val3)); } } public static void Addfeastprep() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Expected O, but got Unknown //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("LoxPieUncooked", 1, 0, false)); val.AddRequirement(new RequirementConfig("FishAndBreadUncooked", 1, 0, false)); val.AddRequirement(new RequirementConfig("MeatPlatterUncooked", 1, 0, false)); val.AddRequirement(new RequirementConfig("MisthareSupremeUncooked", 1, 0, false)); val.AddRequirement(new RequirementConfig("MagicallyStuffedShroomUncooked", 1, 0, false)); val.AddRequirement(new RequirementConfig("BreadDough", 1, 0, false)); val.AddRequirement(new RequirementConfig("HoneyGlazedChickenUncooked", 1, 0, false)); val.AddRequirement(new RequirementConfig("YggdrasilPorridge", 1, 0, false)); val.CraftingStation = CraftingStations.Cauldron; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/UncookedFeastofthegods.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addgaia() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AncientSeed", 9, 9, false)); val.AddRequirement(new RequirementConfig("LinenThread", 9, 9, false)); val.AddRequirement(new RequirementConfig("CapeLinen", 1, 0, false)); val.AddRequirement(new RequirementConfig("Eitr", 1, 1, false)); invisMat = Shawcassets.LoadAsset<Material>("Assets/Shawesome/invismat.mat"); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/ninebytecloak.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddMeldlegs() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shwsmpalladinGreaves", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/mythrilllegs.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddMeldchest() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shwsmpalladinCuirass", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/mythrillchest.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddMeldhelm() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shwsmpalladinhead", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesomemythrillarmor/mythrillhead.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddEOMlightningclawr() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("EOMlightningclaw", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome40k/eomLCLAWRIGHT.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddEOMlightningclaw() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shawarcaniumshield", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome40k/EOMlightningclaw.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddEOMrelicsword() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Caliburn", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome40k/EOMrelicsword.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddOmnilegs() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shwsmpalladinGreaves", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome40k/EOMlegs.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddOmnichest() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shwsmpalladinCuirass", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome40k/EOMchest.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddOmnihelm() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("shwsmpalladinhead", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome40k/EOMhead.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbuildnir() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Expected O, but got Unknown //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Hammer", 1, 10, false)); val.AddRequirement(new RequirementConfig("Arcanium", 10, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/Buildnir.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawesomecomp3() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("BlackCore", 4, 0, false)); val.AddRequirement(new RequirementConfig("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 1, 0, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/techcomp3.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Addshawesomecomp2() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("BlackCore", 4, 0, false)); val.AddRequirement(new RequirementConfig("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 1, 0, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/techcomp2.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Addshawesomecomp() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("BlackCore", 4, 0, false)); val.AddRequirement(new RequirementConfig("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 1, 0, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/techcomp1.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Addshawesomedoor() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("BlackCore", 4, 0, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/shawsecretdoor1.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void AddshawesomeLF() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("FlametalNew", 1, 0, false)); val.AddRequirement(new RequirementConfig("SurtlingCore", 1, 0, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/slavafall.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void AddshawesomeWF() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown PieceConfig val = new PieceConfig(); val.PieceTable = PieceTables.Hammer; val.CraftingStation = CraftingStations.Workbench; val.Category = PieceCategories.Misc; val.AddRequirement(new RequirementConfig("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("SurtlingCore", 1, 0, false)); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeGOW/swaterfall.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void Adddhakshield() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Arcanium", 4, 1, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeNTArmor/DhakharShield.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawshield() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Arcanium", 4, 1, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/shawarcaniumshield.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Adddhaklegs() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Arcanium", 4, 1, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeNTArmor/dhakharianGreaves.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Adddhakhelm() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Arcanium", 4, 1, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeNTArmor/dhakharianhelm.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Adddhakbody() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Arcanium", 4, 1, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeNTArmor/dhakharianchest.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddCaliburn() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Arcanium", 4, 1, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2