Decompiled source of Shawesomes Divine Armaments v3.0.2
Shawesomes_Divine_Armaments.dll
Decompiled 3 months 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 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 shawcape; [BepInPlugin("IDshawesome4u", "Shawesomes_Divine_Armaments", "3.0.2")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Shawesomes_Divine_Armaments : BaseUnityPlugin { 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; [HarmonyPostfix] [HarmonyPatch(typeof(ItemStyle), "Setup")] private static void PostfixIDropStart(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 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(Shawesomes_Divine_Armaments)); harmony.PatchAll(typeof(CraftingConditions)); 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; IEnumerable<MethodBase> patchedMethods = harmony.GetPatchedMethods(); foreach (MethodBase item in patchedMethods) { } } public static void additems() { Capeofshaw(); AddMeldursonCape(); addjmcgoddess(); AddNecroTechCape(); AddPyroCape(); AddCryoCape(); AddBBOS(); AddMBOS(); Addfpshield(); Addsbshield(); AddGungnir(); AddMarsBC(); AddNTGUN(); AddNTServo(); AddNTBow(); AddNTSword(); AddNTSTAFF(); AddNTGUNminion1(); AddNTGUNminion2(); AddNTGUNminion3(); AddNTGUNminion4(); AddArcanium(); Addshawhelm(); Addshawhelm1(); Addshawbody(); Addshawlegs(); Addshawshield(); AddOmnihelm(); AddOmnichest(); AddOmnilegs(); AddCaliburn(); Adddhakhelm(); Adddhakbody(); Adddhaklegs(); Adddhakshield(); AddshawesomeWF(); AddshawesomeLF(); Addshawesomedoor(); Addshawesomecomp(); Addshawesomecomp2(); Addshawesomecomp3(); AddEOMlightningclaw(); AddEOMlightningclawr(); AddEOMrelicsword(); Addgodfeast(); Addfeastprep(); Addicechest(); Addfeasttable(); AddAsgardianDAV(); PrefabManager.OnVanillaPrefabsAvailable -= additems; } 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 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 Adddbuildnir() { //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_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_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("Hammer", 1, 0, false)); val.AddRequirement(new RequirementConfig("Wood", 10, 12, false)); val.AddRequirement(new RequirementConfig("Stone", 10, 12, 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("Flametal", 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 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/Caliburn.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddArcanium() { //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("DragonTear", 1, 0, false)); val.AddRequirement(new RequirementConfig("Eitr", 2, 0, false)); val.AddRequirement(new RequirementConfig("Flametal", 3, 0, false)); val.AddRequirement(new RequirementConfig("Silver", 4, 0, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/ShawesomeArmor/Arcanium.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawhelm1() { //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/shwsmpalladinheadVisor.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawlegs() { //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/shwsmpalladinGreaves.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawbody() { //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/shwsmpalladinCuirass.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawhelm() { //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/shwsmpalladinhead.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTGUNminion1() { //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 ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/skeleton_bow3.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTGUNminion2() { //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 ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/skeleton_bow4.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTGUNminion3() { //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 ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/skeleton_sword3.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTGUNminion4() { //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 ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/skeleton_sword4.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTGUN() { //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("HasRefiner_Item", 3, 2, false)); val.AddRequirement(new RequirementConfig("DhakharCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 3, 1, false)); val.AddRequirement(new RequirementConfig("DvergrNeedle", 1, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/ntrifle.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTSTAFF() { //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("HasRefiner_Item", 3, 2, false)); val.AddRequirement(new RequirementConfig("DhakharCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 3, 1, false)); val.AddRequirement(new RequirementConfig("DvergrNeedle", 1, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/NTSTAFF.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTServo() { //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("HasRefiner_Item", 3, 2, false)); val.AddRequirement(new RequirementConfig("DhakharCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 3, 1, false)); val.AddRequirement(new RequirementConfig("DvergrNeedle", 1, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/NTServoDemister.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTSword() { //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("HasRefiner_Item", 3, 2, false)); val.AddRequirement(new RequirementConfig("DhakharCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 3, 1, false)); val.AddRequirement(new RequirementConfig("DvergrNeedle", 1, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/NecroTechSword.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNTBow() { //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("HasRefiner_Item", 3, 2, false)); val.AddRequirement(new RequirementConfig("DhakharCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 3, 1, false)); val.AddRequirement(new RequirementConfig("DvergrNeedle", 1, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/NecroTechBow.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddMarsBC() { //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_0076: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("HasRefiner_Item", 3, 2, false)); val.AddRequirement(new RequirementConfig("DhakharCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 3, 1, false)); val.AddRequirement(new RequirementConfig("DvergrNeedle", 1, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("NTMarsBC", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "Battle Barge"; itemData.m_shared.m_description = "...Big Ship Go Vroom..."; itemData.m_shared.m_armor = 10f; itemData.m_shared.m_armorPerLevel = 10f; itemData.m_shared.m_maxDurability = 9000f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 11f; itemData.m_shared.m_helmetHideHair = (HelmetHairType)1; itemData.m_shared.m_movementModifier = 1f; itemData.m_shared.m_equipDuration = 0.01f; itemData.m_shared.m_itemType = (ItemType)17; DamageModPair item = default(DamageModPair); item.m_modifier = (DamageModifier)3; item.m_type = (DamageType)256; itemData.m_shared.m_damageModifiers.Add(item); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/Shawesome/battlebargeicon.png"); ref Sprite reference = ref itemData.m_shared.m_icons[0]; Object obj = array[1]; reference = (Sprite)(object)((obj is Sprite) ? obj : null); ref StatusEffect equipStatusEffect = ref itemData.m_shared.m_equipStatusEffect; Object obj2 = array[1]; equipStatusEffect = (StatusEffect)(object)MarsEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("NTMarsBC").transform; GameObject val3 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/NecroTechMARSBC.prefab"); Shawesomes_Divine_Armaments.CopyIntoParent<Transform>(val3.transform.Find("attach_skin"), transform); } private static SE_Stats MarsEffect(Sprite sprite) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_007f: 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) SE_Stats val = new SE_Stats(); ((Object)val).name = "MarsEffect"; ((StatusEffect)val).m_name = "SPACE"; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "Engines Start"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "Engines Stop"; ((StatusEffect)val).m_icon = sprite; val.m_maxMaxFallSpeed = 0.01f; val.m_fallDamageModifier = -1f; val.m_staminaRegenMultiplier = 110f; val.m_jumpModifier = new Vector3(0f, 7f, 0f); ((StatusEffect)val).m_attributes = (StatusAttribute)1; val.m_runStaminaDrainModifier = -100f; return val; } public static void AddGungnir() { //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("FireSHWSMBlade", 1, 0, false)); val.AddRequirement(new RequirementConfig("frostSHWSMBlade", 1, 0, false)); val.AddRequirement(new RequirementConfig("AtgeirHimminAfl", 1, 0, false)); val.AddRequirement(new RequirementConfig("Thunderstorm_Item", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/spearodingungnir.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addfpshield() { //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_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_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("TrophyCultist", 4, 1, false)); val.AddRequirement(new RequirementConfig(CraftingConditions.onfire_prefNname[0], 5, 2, false)); val.AddRequirement(new RequirementConfig("TrophySurtling", 4, 1, false)); val.AddRequirement(new RequirementConfig("TrophyGoblinKing", 4, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/shawfireproof.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addsbshield() { //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_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: 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("TrophyUlv", 4, 1, false)); val.AddRequirement(new RequirementConfig(CraftingConditions.freezing_prefNname[0], 1, 1, false)); val.AddRequirement(new RequirementConfig("YmirRemains", 42, 0, false)); val.AddRequirement(new RequirementConfig("TrophyDragonQueen", 4, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome1/SunBlock4000.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddBBOS() { //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_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0043: 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("ShawesomeCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("StaffIceShards", 1, 0, false)); val.AddRequirement(new RequirementConfig("Eyescream", 10, 4, false)); val.AddRequirement(new RequirementConfig(CraftingConditions.freezing_prefNname[0], 1, 1, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome/FrostSHWSMBlade.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddMBOS() { //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_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0043: 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("ShawesomeCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("StaffFireball", 1, 0, false)); val.AddRequirement(new RequirementConfig("Flametal", 10, 4, false)); val.AddRequirement(new RequirementConfig(CraftingConditions.onfire_prefNname[0], 5, 2, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset<GameObject>("Assets/Shawesome/FireSHWSMBlade.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddCryoCape() { //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_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0030: 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_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_0148: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_016b: 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_0183: Unknown result type (might be due to invalid IL