using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Shawesomes_Infinte_Multiverse")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Shawesomes_Infinte_Multiverse")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e0e26f8d-a8f0-41a7-a502-951624fa6f31")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace Shawesomes_Infinite_Multiverse { public class Ascend : MonoBehaviour { private static Ascend instance; public static readonly List FLIGHT_ITEM_PREFABS = new List { "", "TurtleHermitQloud", "sflightkipower" }; public static readonly float ASCEND_SPEED = 10f; public static readonly float HORIZONTAL_SPEED = 20f; public static readonly float RUN_ASCEND_SPEED = 25f; public static readonly float RUN_HORIZONTAL_SPEED = 25f; public static readonly float HOVER_ASCEND_SPEED = 0f; public static readonly float HOVER_HORIZONTAL_SPEED = 0f; public static readonly float DESCENT_SPEED = 40f; public static readonly float STAMINA_USAGE = 5f; public static readonly bool REQUIRE_EQUIPPED = true; public static readonly bool SIMULATE_GROUND = false; public static Ascend Instance { get { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown if ((Object)(object)instance == (Object)null) { GameObject val = new GameObject("Ascend"); instance = val.AddComponent(); Object.DontDestroyOnLoad((Object)(object)val); } return instance; } } private void Awake() { if ((Object)(object)instance != (Object)null && (Object)(object)instance != (Object)(object)this) { Object.Destroy((Object)(object)((Component)this).gameObject); } else { instance = this; } } public static void InitConfig(ConfigFile config) { if ((Object)(object)instance != (Object)null) { instance.ApplyConfig(); } } public void ApplyConfig() { } } [HarmonyPatch(typeof(Character), "UpdateMotion")] public static class SimpleAscend_Character_UpdateMotion_Patch { [HarmonyPostfix] public static void Postfix(Character __instance, float dt) { //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: 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) //IL_01ac: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Unknown result type (might be due to invalid IL or missing references) //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_021e: Unknown result type (might be due to invalid IL or missing references) //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02b9: Unknown result type (might be due to invalid IL or missing references) //IL_02be: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance != (Object)(object)Player.m_localPlayer) { return; } Player val = (Player)(object)((__instance is Player) ? __instance : null); if ((Object)(object)val == (Object)null || !HasRequiredItem(val) || val.GetStamina() <= 0f) { return; } Rigidbody component = ((Component)__instance).GetComponent(); if ((Object)(object)component == (Object)null) { return; } bool key = Input.GetKey((KeyCode)304); bool key2 = Input.GetKey((KeyCode)32); bool key3 = Input.GetKey((KeyCode)308); bool key4 = Input.GetKey((KeyCode)306); bool flag = false; float num = 0f; float num2 = 0f; if (Input.GetKey((KeyCode)97) || Input.GetKey((KeyCode)276)) { num -= 1f; } if (Input.GetKey((KeyCode)100) || Input.GetKey((KeyCode)275)) { num += 1f; } if (Input.GetKey((KeyCode)119) || Input.GetKey((KeyCode)273)) { num2 += 1f; } if (Input.GetKey((KeyCode)115) || Input.GetKey((KeyCode)274)) { num2 -= 1f; } Vector3 val2 = default(Vector3); ((Vector3)(ref val2))..ctor(num, 0f, num2); bool flag2 = ((Vector3)(ref val2)).magnitude > 0.1f; if (flag2) { ((Vector3)(ref val2)).Normalize(); } Camera component2 = ((Component)((Component)GameCamera.instance).transform).GetComponent(); Vector3 forward = ((Component)component2).transform.forward; Vector3 right = ((Component)component2).transform.right; Vector3 val3 = new Vector3(forward.x, 0f, forward.z); Vector3 normalized = ((Vector3)(ref val3)).normalized; val3 = new Vector3(right.x, 0f, right.z); Vector3 normalized2 = ((Vector3)(ref val3)).normalized; Vector3 val4 = normalized * num2 + normalized2 * num; if (flag2) { ((Vector3)(ref val4)).Normalize(); } Vector3 velocity = component.velocity; float y = Ascend.ASCEND_SPEED; float num3 = Ascend.HORIZONTAL_SPEED; if (key4) { y = 0f - Ascend.DESCENT_SPEED; flag = true; } else if (key3) { y = Ascend.HOVER_ASCEND_SPEED; num3 = Ascend.HOVER_HORIZONTAL_SPEED; flag = true; } else if (key) { y = Ascend.RUN_ASCEND_SPEED; num3 = Ascend.RUN_HORIZONTAL_SPEED; flag = true; } else { if (!key2) { return; } flag = true; } if (key2 || key3 || key4) { velocity.y = y; } if (flag2) { Vector3 val5 = val4 * num3; velocity.x = val5.x; velocity.z = val5.z; } if (flag) { ((Character)val).UseStamina(Ascend.STAMINA_USAGE * dt); component.velocity = velocity; } } private static bool HasRequiredItem(Player player) { if ((Object)(object)player == (Object)null || ((Humanoid)player).GetInventory() == null) { return false; } if (Ascend.REQUIRE_EQUIPPED) { foreach (ItemData equippedItem in ((Humanoid)player).GetInventory().GetEquippedItems()) { if (!((Object)(object)equippedItem.m_dropPrefab != (Object)null)) { continue; } foreach (string fLIGHT_ITEM_PREFAB in Ascend.FLIGHT_ITEM_PREFABS) { if (((Object)equippedItem.m_dropPrefab).name.Equals(fLIGHT_ITEM_PREFAB, StringComparison.OrdinalIgnoreCase)) { return true; } } } } else { foreach (ItemData allItem in ((Humanoid)player).GetInventory().GetAllItems()) { if (!((Object)(object)allItem.m_dropPrefab != (Object)null)) { continue; } foreach (string fLIGHT_ITEM_PREFAB2 in Ascend.FLIGHT_ITEM_PREFABS) { if (((Object)allItem.m_dropPrefab).name.Equals(fLIGHT_ITEM_PREFAB2, StringComparison.OrdinalIgnoreCase)) { return true; } } } } return false; } } [HarmonyPatch(typeof(Character), "IsOnGround")] public static class SimpleAscend_Character_IsOnGround_Patch { [HarmonyPostfix] public static void Postfix(Character __instance, ref bool __result) { if (!((Object)(object)__instance != (Object)(object)Player.m_localPlayer) && ZInput.GetButton("Jump") && Ascend.SIMULATE_GROUND) { __result = true; } } } [HarmonyPatch(typeof(Player), "Update")] public static class Player_Update_Patch { static Player_Update_Patch() { } [HarmonyPostfix] public static void Postfix(Player __instance) { if ((Object)(object)__instance != (Object)(object)Player.m_localPlayer) { return; } try { ControllerSwapperSystem.HandleControllerSwap(__instance); } catch { } } } [HarmonyPatch(typeof(Animator), "set_runtimeAnimatorController")] public static class Animator_runtimeAnimatorController_Patch { static Animator_runtimeAnimatorController_Patch() { } [HarmonyPrefix] public static bool Prefix(Animator __instance, RuntimeAnimatorController value) { try { if (ControllerSwapperSystem.IsUsingCustomController() && (Object)(object)__instance == (Object)(object)((Character)(Player.m_localPlayer?)).m_animator) { if ((Object)(object)value == (Object)(object)ControllerSwapperSystem.GetOriginalController() || (Object)(object)value == (Object)(object)ControllerSwapperSystem.GetCustomController()) { return true; } return false; } } catch { } return true; } } public class ItemSetComparer : IEqualityComparer> { public bool Equals(List x, List y) { if (x == null && y == null) { return true; } if (x == null || y == null) { return false; } if (x.Count != y.Count) { return false; } return new HashSet(x).SetEquals(new HashSet(y)); } public int GetHashCode(List obj) { if (obj == null) { return 0; } int num = 0; foreach (string item in obj) { num ^= item.GetHashCode(); } return num; } } public static class ControllerSwapperSystem { private static ManualLogSource logger; private const bool ENABLE_CONTROLLER_SWAPPER = true; private const string ITEM_CONTROLLER_MAPPINGS = "TurtleHermitQloud:nimbus_animator,Spheredsss:nimbus_animator,sflightkipower:ascend_animator"; private const bool CHECK_RIGHT_HAND = true; private const bool CHECK_LEFT_HAND = true; private const bool CHECK_UTILITY = true; private const bool CHECK_HELMET = true; private const bool CHECK_CHEST = true; private const bool CHECK_LEGS = true; private const bool CHECK_SHOULDER = true; private static RuntimeAnimatorController originalController; private static Dictionary controllerCache = new Dictionary(); private static string currentControllerName = null; private static bool isUsingCustomController = false; private const string ASCEND_PARAM = "IsAscending"; private const string HOVER_PARAM = "IsHovering"; private const string DESCEND_PARAM = "IsDescending"; private const string RUN_PARAM = "IsRunning"; private static bool wasAscending = false; private static bool wasHovering = false; private static bool wasDescending = false; private static bool wasRunning = false; private static readonly string ASCEND_SFX = "sfx_flyascend"; private static readonly string HOVER_SFX = ""; private static readonly string DESCEND_SFX = "sfx_flydescend"; private static readonly string RUN_SFX = "sfx_flyfast"; private static readonly string ASCEND_VFX = ""; private static readonly string HOVER_VFX = ""; private static readonly string DESCEND_VFX = ""; private static readonly string RUN_VFX = "vfx_flyfast"; private static GameObject activeAscendSfx = null; private static GameObject activeHoverSfx = null; private static GameObject activeDescendSfx = null; private static GameObject activeRunSfx = null; private static GameObject activeAscendVfx = null; private static GameObject activeHoverVfx = null; private static GameObject activeDescendVfx = null; private static GameObject activeRunVfx = null; private static readonly bool ASCEND_CONTINUOUS_SFX = false; private static readonly bool HOVER_CONTINUOUS_SFX = false; private static readonly bool DESCEND_CONTINUOUS_SFX = false; private static readonly bool RUN_CONTINUOUS_SFX = false; private static readonly bool ASCEND_CONTINUOUS_VFX = false; private static readonly bool HOVER_CONTINUOUS_VFX = false; private static readonly bool DESCEND_CONTINUOUS_VFX = false; private static readonly bool RUN_CONTINUOUS_VFX = false; private static string currentSingleItemTrigger = null; private static List currentSetTrigger = null; private static Dictionary, string> itemSetControllerMap = new Dictionary, string>(new ItemSetComparer()); private static Dictionary itemControllerMap = new Dictionary(); private static float lastItemCheckTime = 0f; private static float itemCheckInterval = 0.2f; private static bool wasItemEquippedLastCheck = false; private static void ParseItemControllerMappings() { itemControllerMap.Clear(); itemSetControllerMap.Clear(); string text = "TurtleHermitQloud:nimbus_animator,Spheredsss:nimbus_animator,sflightkipower:ascend_animator"; if (!string.IsNullOrEmpty(text)) { string[] array = text.Split(new char[1] { ',' }); string[] array2 = array; foreach (string text2 in array2) { if (string.IsNullOrEmpty(text2)) { continue; } string[] array3 = text2.Split(new char[1] { ':' }); if (array3.Length < 2) { continue; } string value = array3[^1].Trim(); if (array3.Length == 2) { string key = array3[0].Trim().ToLower(); itemControllerMap[key] = value; continue; } List list = new List(); for (int j = 0; j < array3.Length - 1; j++) { string text3 = array3[j].Trim().ToLower(); if (!string.IsNullOrEmpty(text3)) { list.Add(text3); } } if (list.Count > 0) { itemSetControllerMap[list] = value; } } } int num = itemControllerMap.Count + itemSetControllerMap.Count; } public static bool IsUsingCustomController() { return isUsingCustomController; } public static RuntimeAnimatorController GetCustomController() { if (!string.IsNullOrEmpty(currentControllerName) && controllerCache.ContainsKey(currentControllerName)) { return controllerCache[currentControllerName]; } return null; } public static RuntimeAnimatorController GetOriginalController() { return originalController; } public static void Initialize() { logger = Shawesomes_Infinite_Multiverse.logger; lastItemCheckTime = 0f; wasItemEquippedLastCheck = false; ParseItemControllerMappings(); try { AssetBundle val = AssetUtils.LoadAssetBundleFromResources("animators", Assembly.GetExecutingAssembly()); if (!((Object)(object)val != (Object)null)) { return; } HashSet hashSet = new HashSet(); foreach (string value in itemControllerMap.Values) { hashSet.Add(value); } foreach (string value2 in itemSetControllerMap.Values) { hashSet.Add(value2); } foreach (string item in hashSet) { try { RuntimeAnimatorController val2 = null; val2 = val.LoadAsset(item); if ((Object)(object)val2 == (Object)null && !item.EndsWith(".controller")) { val2 = val.LoadAsset(item + ".controller"); } if ((Object)(object)val2 == (Object)null && !item.StartsWith("Assets/")) { val2 = val.LoadAsset("Assets/" + item); } if ((Object)(object)val2 == (Object)null && !item.StartsWith("Assets/") && !item.EndsWith(".controller")) { val2 = val.LoadAsset("Assets/" + item + ".controller"); } if ((Object)(object)val2 != (Object)null) { controllerCache[item] = val2; } } catch (Exception) { } } } catch (Exception) { } } private static bool HasRequiredItemEquipped(Player player, out string controllerName) { controllerName = null; if ((Object)(object)player == (Object)null) { return false; } lastItemCheckTime = Time.time; if (currentSetTrigger != null && isUsingCustomController) { if (HasAllRequiredItems(player, currentSetTrigger)) { controllerName = currentControllerName; wasItemEquippedLastCheck = true; return true; } wasItemEquippedLastCheck = false; return false; } if (currentSingleItemTrigger != null && isUsingCustomController) { if (IsItemEquipped(player, currentSingleItemTrigger)) { controllerName = currentControllerName; wasItemEquippedLastCheck = true; return true; } wasItemEquippedLastCheck = false; return false; } foreach (List key in itemSetControllerMap.Keys) { if (HasAllRequiredItems(player, key)) { controllerName = itemSetControllerMap[key]; currentSetTrigger = new List(key); currentSingleItemTrigger = null; wasItemEquippedLastCheck = true; return true; } } bool flag = true; ItemData rightItem = ((Humanoid)player).GetRightItem(); if (rightItem != null && MatchesItem(rightItem, out controllerName, out string itemName)) { currentSingleItemTrigger = itemName; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } bool flag2 = true; ItemData leftItem = ((Humanoid)player).GetLeftItem(); if (leftItem != null && MatchesItem(leftItem, out controllerName, out string itemName2)) { currentSingleItemTrigger = itemName2; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } if (((Humanoid)player).m_utilityItem != null && MatchesItem(((Humanoid)player).m_utilityItem, out controllerName, out string itemName3)) { currentSingleItemTrigger = itemName3; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } if (((Humanoid)player).m_helmetItem != null && MatchesItem(((Humanoid)player).m_helmetItem, out controllerName, out string itemName4)) { currentSingleItemTrigger = itemName4; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } if (((Humanoid)player).m_chestItem != null && MatchesItem(((Humanoid)player).m_chestItem, out controllerName, out string itemName5)) { currentSingleItemTrigger = itemName5; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } if (((Humanoid)player).m_legItem != null && MatchesItem(((Humanoid)player).m_legItem, out controllerName, out string itemName6)) { currentSingleItemTrigger = itemName6; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } if (((Humanoid)player).m_shoulderItem != null && MatchesItem(((Humanoid)player).m_shoulderItem, out controllerName, out string itemName7)) { currentSingleItemTrigger = itemName7; currentSetTrigger = null; wasItemEquippedLastCheck = true; return true; } currentSingleItemTrigger = null; currentSetTrigger = null; wasItemEquippedLastCheck = false; return false; } private static bool HasAllRequiredItems(Player player, List requiredItems) { foreach (string requiredItem in requiredItems) { if (!IsItemEquipped(player, requiredItem)) { return false; } } return true; } private static bool IsItemEquipped(Player player, string requiredItemName) { bool flag = true; ItemData rightItem = ((Humanoid)player).GetRightItem(); if (rightItem != null && ItemMatchesName(rightItem, requiredItemName)) { return true; } bool flag2 = true; ItemData leftItem = ((Humanoid)player).GetLeftItem(); if (leftItem != null && ItemMatchesName(leftItem, requiredItemName)) { return true; } if (((Humanoid)player).m_utilityItem != null && ItemMatchesName(((Humanoid)player).m_utilityItem, requiredItemName)) { return true; } if (((Humanoid)player).m_helmetItem != null && ItemMatchesName(((Humanoid)player).m_helmetItem, requiredItemName)) { return true; } if (((Humanoid)player).m_chestItem != null && ItemMatchesName(((Humanoid)player).m_chestItem, requiredItemName)) { return true; } if (((Humanoid)player).m_legItem != null && ItemMatchesName(((Humanoid)player).m_legItem, requiredItemName)) { return true; } if (((Humanoid)player).m_shoulderItem != null && ItemMatchesName(((Humanoid)player).m_shoulderItem, requiredItemName)) { return true; } return false; } private static bool MatchesItem(ItemData item, out string controllerName) { string itemName; return MatchesItem(item, out controllerName, out itemName); } private static bool MatchesItem(ItemData item, out string controllerName, out string itemName) { controllerName = null; itemName = null; if (item == null) { return false; } string text = (Object.op_Implicit((Object)(object)item.m_dropPrefab) ? ((Object)item.m_dropPrefab).name.ToLower() : ""); if (!string.IsNullOrEmpty(text) && itemControllerMap.ContainsKey(text)) { controllerName = itemControllerMap[text]; itemName = text; return true; } if (item.m_shared != null && !string.IsNullOrEmpty(item.m_shared.m_name)) { string text2 = item.m_shared.m_name.ToLower(); if (itemControllerMap.ContainsKey(text2)) { controllerName = itemControllerMap[text2]; itemName = text2; return true; } } return false; } private static bool ItemMatchesName(ItemData item, string requiredItemName) { if (item == null || string.IsNullOrEmpty(requiredItemName)) { return false; } string text = (Object.op_Implicit((Object)(object)item.m_dropPrefab) ? ((Object)item.m_dropPrefab).name.ToLower() : ""); if (!string.IsNullOrEmpty(text) && text == requiredItemName) { return true; } if (item.m_shared != null && !string.IsNullOrEmpty(item.m_shared.m_name)) { string text2 = item.m_shared.m_name.ToLower(); if (text2 == requiredItemName) { return true; } } return false; } public static void ApplyCustomController(Player player, string controllerName) { //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) if (string.IsNullOrEmpty(controllerName) || (Object)(object)player == (Object)null) { return; } string text = "unknown"; if (currentSingleItemTrigger != null) { text = "single item '" + currentSingleItemTrigger + "'"; } else if (currentSetTrigger != null) { text = $"item set with {currentSetTrigger.Count} items"; } RuntimeAnimatorController value = null; if (!controllerCache.TryGetValue(controllerName, out value) || (Object)(object)value == (Object)null) { return; } try { if ((Object)(object)originalController == (Object)null && (Object)(object)((Character)player).m_animator != (Object)null) { originalController = ((Character)player).m_animator.runtimeAnimatorController; } Vector3 velocity = ((Character)player).GetVelocity(); SetMovementAnimationParameters(((Character)player).m_animator); currentControllerName = controllerName; ((Character)player).m_animator.runtimeAnimatorController = value; SetMovementAnimationParameters(((Character)player).m_animator); ((Character)player).m_animator.Update(0f); ((Character)player).m_animator.Update(0.1f); ((Character)player).m_animator.Update(0.1f); if ((Object)(object)((Character)player).m_body != (Object)null) { ((Character)player).m_body.velocity = velocity; } isUsingCustomController = true; } catch (Exception) { } } private static void RestoreOriginalController(Player player) { //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) if (!isUsingCustomController || (Object)(object)originalController == (Object)null) { return; } try { CleanupAllVfx(); wasAscending = false; wasHovering = false; wasDescending = false; wasRunning = false; if ((Object)(object)((Character)player).m_animator != (Object)null) { Vector3 velocity = ((Character)player).GetVelocity(); SetMovementAnimationParameters(((Character)player).m_animator); ((Character)player).m_animator.runtimeAnimatorController = originalController; SetMovementAnimationParameters(((Character)player).m_animator); ((Character)player).m_animator.Update(0f); ((Character)player).m_animator.Update(0.1f); ((Character)player).m_animator.Update(0.1f); if ((Object)(object)((Character)player).m_body != (Object)null) { ((Character)player).m_body.velocity = velocity; } isUsingCustomController = false; currentControllerName = null; currentSingleItemTrigger = null; currentSetTrigger = null; } } catch (Exception) { } } private static void SetMovementAnimationParameters(Animator animator) { if (!((Object)(object)animator == (Object)null)) { animator.SetBool("wakeup", false); animator.SetBool("sleeping", false); animator.SetFloat("forward_speed", 1f); } } public static void UpdateFlightAnimationTriggers(Player player) { if ((Object)(object)player == (Object)null || (Object)(object)((Character)player).m_animator == (Object)null || !isUsingCustomController) { return; } bool key = Input.GetKey((KeyCode)32); bool key2 = Input.GetKey((KeyCode)308); bool key3 = Input.GetKey((KeyCode)306); bool key4 = Input.GetKey((KeyCode)304); ((Character)player).m_animator.SetBool("IsAscending", key); ((Character)player).m_animator.SetBool("IsHovering", key2); ((Character)player).m_animator.SetBool("IsDescending", key3); ((Character)player).m_animator.SetBool("IsRunning", key4); if (key != wasAscending) { if (key) { if (!string.IsNullOrEmpty(ASCEND_SFX)) { if (ASCEND_CONTINUOUS_SFX) { activeAscendSfx = PlayContinuousSoundEffect(player, ASCEND_SFX, activeAscendSfx); } else { PlaySoundEffect(player, ASCEND_SFX); } } if (!string.IsNullOrEmpty(ASCEND_VFX)) { if (ASCEND_CONTINUOUS_VFX) { activeAscendVfx = SpawnVisualEffect(player, ASCEND_VFX, activeAscendVfx); } else { SpawnVisualEffect(player, ASCEND_VFX, null); } } } else { if ((Object)(object)activeAscendVfx != (Object)null) { Object.Destroy((Object)(object)activeAscendVfx); activeAscendVfx = null; } if ((Object)(object)activeAscendSfx != (Object)null) { Object.Destroy((Object)(object)activeAscendSfx); activeAscendSfx = null; } } wasAscending = key; } if (key2 != wasHovering) { if (key2) { if (!string.IsNullOrEmpty(HOVER_SFX)) { if (HOVER_CONTINUOUS_SFX) { activeHoverSfx = PlayContinuousSoundEffect(player, HOVER_SFX, activeHoverSfx); } else { PlaySoundEffect(player, HOVER_SFX); } } if (!string.IsNullOrEmpty(HOVER_VFX)) { if (HOVER_CONTINUOUS_VFX) { activeHoverVfx = SpawnVisualEffect(player, HOVER_VFX, activeHoverVfx); } else { SpawnVisualEffect(player, HOVER_VFX, null); } } } else { if ((Object)(object)activeHoverVfx != (Object)null) { Object.Destroy((Object)(object)activeHoverVfx); activeHoverVfx = null; } if ((Object)(object)activeHoverSfx != (Object)null) { Object.Destroy((Object)(object)activeHoverSfx); activeHoverSfx = null; } } wasHovering = key2; } if (key3 != wasDescending) { if (key3) { if (!string.IsNullOrEmpty(DESCEND_SFX)) { if (DESCEND_CONTINUOUS_SFX) { activeDescendSfx = PlayContinuousSoundEffect(player, DESCEND_SFX, activeDescendSfx); } else { PlaySoundEffect(player, DESCEND_SFX); } } if (!string.IsNullOrEmpty(DESCEND_VFX)) { if (DESCEND_CONTINUOUS_VFX) { activeDescendVfx = SpawnVisualEffect(player, DESCEND_VFX, activeDescendVfx); } else { SpawnVisualEffect(player, DESCEND_VFX, null); } } } else { if ((Object)(object)activeDescendVfx != (Object)null) { Object.Destroy((Object)(object)activeDescendVfx); activeDescendVfx = null; } if ((Object)(object)activeDescendSfx != (Object)null) { Object.Destroy((Object)(object)activeDescendSfx); activeDescendSfx = null; } } wasDescending = key3; } if (key4 == wasRunning) { return; } if (key4) { if (!string.IsNullOrEmpty(RUN_SFX)) { if (RUN_CONTINUOUS_SFX) { activeRunSfx = PlayContinuousSoundEffect(player, RUN_SFX, activeRunSfx); } else { PlaySoundEffect(player, RUN_SFX); } } if (!string.IsNullOrEmpty(RUN_VFX)) { if (RUN_CONTINUOUS_VFX) { activeRunVfx = SpawnVisualEffect(player, RUN_VFX, activeRunVfx); } else { SpawnVisualEffect(player, RUN_VFX, null); } } } else { if ((Object)(object)activeRunVfx != (Object)null) { Object.Destroy((Object)(object)activeRunVfx); activeRunVfx = null; } if ((Object)(object)activeRunSfx != (Object)null) { Object.Destroy((Object)(object)activeRunSfx); activeRunSfx = null; } } wasRunning = key4; } private static void ResetFlightTriggers(Animator animator) { if (!((Object)(object)animator == (Object)null)) { animator.SetBool("IsAscending", false); animator.SetBool("IsHovering", false); animator.SetBool("IsDescending", false); animator.SetBool("IsRunning", false); } } private static void PlaySoundEffect(Player player, string prefabName) { //IL_0041: 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) if ((Object)(object)player == (Object)null || string.IsNullOrEmpty(prefabName)) { return; } try { ZNetScene instance = ZNetScene.instance; GameObject val = ((instance != null) ? instance.GetPrefab(prefabName) : null); if ((Object)(object)val != (Object)null) { GameObject val2 = Object.Instantiate(val, ((Component)player).transform.position, Quaternion.identity); } } catch (Exception) { } } private static GameObject PlayContinuousSoundEffect(Player player, string prefabName, GameObject currentSfx) { //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_008a: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)player == (Object)null || string.IsNullOrEmpty(prefabName)) { return null; } try { if ((Object)(object)currentSfx != (Object)null) { Object.Destroy((Object)(object)currentSfx); } ZNetScene instance = ZNetScene.instance; GameObject val = ((instance != null) ? instance.GetPrefab(prefabName) : null); if ((Object)(object)val != (Object)null) { GameObject val2 = Object.Instantiate(val, ((Component)player).transform.position, Quaternion.identity); val2.transform.SetParent(((Component)player).transform); val2.transform.localPosition = Vector3.zero; if (ASCEND_CONTINUOUS_SFX || HOVER_CONTINUOUS_SFX || DESCEND_CONTINUOUS_SFX || RUN_CONTINUOUS_SFX) { RemoveDestructionComponents(val2); AudioSource[] componentsInChildren = val2.GetComponentsInChildren(); AudioSource[] array = componentsInChildren; foreach (AudioSource val3 in array) { if ((Object)(object)val3 != (Object)null) { val3.loop = true; } } } return val2; } } catch (Exception) { } return null; } private static void RemoveDestructionComponents(GameObject gameObject) { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Expected O, but got Unknown if ((Object)(object)gameObject == (Object)null) { return; } try { TimedDestruction component = gameObject.GetComponent(); if ((Object)(object)component != (Object)null) { Object.Destroy((Object)(object)component); } foreach (Transform item in gameObject.transform) { Transform val = item; TimedDestruction component2 = ((Component)val).GetComponent(); if ((Object)(object)component2 != (Object)null) { Object.Destroy((Object)(object)component2); } } } catch (Exception) { } } private static GameObject SpawnVisualEffect(Player player, string prefabName, GameObject currentVfx) { //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)player == (Object)null || string.IsNullOrEmpty(prefabName)) { return null; } try { if ((Object)(object)currentVfx != (Object)null) { Object.Destroy((Object)(object)currentVfx); } ZNetScene instance = ZNetScene.instance; GameObject val = ((instance != null) ? instance.GetPrefab(prefabName) : null); if ((Object)(object)val != (Object)null) { GameObject val2 = Object.Instantiate(val, ((Component)player).transform.position, Quaternion.identity); val2.transform.SetParent(((Component)player).transform); val2.transform.localPosition = Vector3.zero; if (ASCEND_CONTINUOUS_VFX || HOVER_CONTINUOUS_VFX || DESCEND_CONTINUOUS_VFX || RUN_CONTINUOUS_VFX) { RemoveDestructionComponents(val2); } return val2; } } catch (Exception) { } return null; } private static void CleanupAllVfx() { if ((Object)(object)activeAscendVfx != (Object)null) { Object.Destroy((Object)(object)activeAscendVfx); } if ((Object)(object)activeHoverVfx != (Object)null) { Object.Destroy((Object)(object)activeHoverVfx); } if ((Object)(object)activeDescendVfx != (Object)null) { Object.Destroy((Object)(object)activeDescendVfx); } if ((Object)(object)activeRunVfx != (Object)null) { Object.Destroy((Object)(object)activeRunVfx); } activeAscendVfx = null; activeHoverVfx = null; activeDescendVfx = null; activeRunVfx = null; if ((Object)(object)activeAscendSfx != (Object)null) { Object.Destroy((Object)(object)activeAscendSfx); } if ((Object)(object)activeHoverSfx != (Object)null) { Object.Destroy((Object)(object)activeHoverSfx); } if ((Object)(object)activeDescendSfx != (Object)null) { Object.Destroy((Object)(object)activeDescendSfx); } if ((Object)(object)activeRunSfx != (Object)null) { Object.Destroy((Object)(object)activeRunSfx); } activeAscendSfx = null; activeHoverSfx = null; activeDescendSfx = null; activeRunSfx = null; } public static void HandleControllerSwap(Player player) { if ((Object)(object)player == (Object)null) { return; } if (HasRequiredItemEquipped(player, out string controllerName)) { if (!isUsingCustomController) { ApplyCustomController(player, controllerName); } else if (currentControllerName != controllerName) { RestoreOriginalController(player); ApplyCustomController(player, controllerName); } if (isUsingCustomController) { UpdateFlightAnimationTriggers(player); } } else if (isUsingCustomController) { RestoreOriginalController(player); } } } [HarmonyPatch] public static class HealthVisualManager { private class HealthEffect { public float HealthPercentage { get; set; } public string VisualChildName { get; set; } public bool AllowStacking { get; set; } public List MeshesToHide { get; set; } public bool HideOriginalMeshes { get; set; } public HealthEffect(float healthPercentage, string visualChildName, bool allowStacking = false, List meshesToHide = null, bool hideOriginalMeshes = false) { HealthPercentage = healthPercentage; VisualChildName = visualChildName; AllowStacking = allowStacking; MeshesToHide = meshesToHide ?? new List(); HideOriginalMeshes = hideOriginalMeshes; } } private class HealthMapping { public string PrefabName { get; set; } public List Effects { get; set; } public HealthMapping(string prefabName, List effects) { PrefabName = prefabName; Effects = effects; Effects.Sort((HealthEffect a, HealthEffect b) => b.HealthPercentage.CompareTo(a.HealthPercentage)); } } private static Dictionary> activeEffects; private static Dictionary> triggeredThresholds; private static readonly Dictionary HealthMappings; static HealthVisualManager() { activeEffects = new Dictionary>(); triggeredThresholds = new Dictionary>(); HealthMappings = new Dictionary { { "sGundamExia", new HealthMapping("sGundamExia", new List { new HealthEffect(80f, "Sparcs80", allowStacking: true, new List()), new HealthEffect(70f, "Sparcs70", allowStacking: true, new List()), new HealthEffect(50f, "Sparcs50", allowStacking: true, new List()), new HealthEffect(40f, "Sparcs40", allowStacking: true, new List()), new HealthEffect(20f, "majordmgchest20", allowStacking: true, new List()) }) }, { "sGundamBarbatos", new HealthMapping("sGundamBarbatos", new List { new HealthEffect(80f, "Sparcs80", allowStacking: true, new List()), new HealthEffect(70f, "Sparcs70", allowStacking: true, new List()), new HealthEffect(50f, "Sparcs50", allowStacking: true, new List()), new HealthEffect(40f, "Sparcs40", allowStacking: true, new List()), new HealthEffect(20f, "majordmgchest20", allowStacking: true, new List()) }) } }; ValidateHealthMappings(); } private static void ValidateHealthMappings() { foreach (HealthMapping value in HealthMappings.Values) { value.Effects.Sort((HealthEffect a, HealthEffect b) => b.HealthPercentage.CompareTo(a.HealthPercentage)); } } private static string GetCleanPrefabName(string prefabName) { if (string.IsNullOrEmpty(prefabName)) { return string.Empty; } if (prefabName.EndsWith("(Clone)")) { return prefabName.Substring(0, prefabName.Length - 7); } return prefabName; } [HarmonyPatch(typeof(Character), "SetHealth")] [HarmonyPostfix] public static void Character_SetHealth_Postfix(Character __instance) { UpdateVisualEffects(__instance); } [HarmonyPatch(typeof(Character), "Damage")] [HarmonyPostfix] public static void Character_Damage_Postfix(Character __instance) { UpdateVisualEffects(__instance); } private static void UpdateVisualEffects(Character __instance) { //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_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0171: Unknown result type (might be due to invalid IL or missing references) //IL_0227: Unknown result type (might be due to invalid IL or missing references) //IL_02c3: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance == (Object)null || !__instance.m_nview.IsValid()) { return; } string cleanPrefabName = GetCleanPrefabName(((Object)((Component)__instance).gameObject).name); if (!HealthMappings.TryGetValue(cleanPrefabName, out HealthMapping value)) { return; } float maxHealth = __instance.GetMaxHealth(); float health = __instance.GetHealth(); float num = health / maxHealth * 100f; ZDOID uid = __instance.m_nview.GetZDO().m_uid; if (!activeEffects.ContainsKey(uid)) { activeEffects[uid] = new List(); } if (!triggeredThresholds.ContainsKey(uid)) { triggeredThresholds[uid] = new HashSet(); } List list = new List(); HashSet hashSet = new HashSet(); foreach (HealthEffect effect in value.Effects) { if (num <= effect.HealthPercentage) { if (effect.AllowStacking || !triggeredThresholds[uid].Contains(effect.HealthPercentage)) { list.Add(effect); if (!triggeredThresholds[uid].Contains(effect.HealthPercentage)) { triggeredThresholds[uid].Add(effect.HealthPercentage); } } if (!effect.AllowStacking) { break; } } else { triggeredThresholds[uid].Remove(effect.HealthPercentage); } } foreach (HealthEffect item in list) { hashSet.Add(item.VisualChildName); } List list2 = new List(); foreach (string item2 in activeEffects[uid]) { if (!hashSet.Contains(item2)) { Transform val = Utils.FindChild(((Component)__instance).transform, item2, (IterativeSearchType)0); if ((Object)(object)val != (Object)null) { ((Component)val).gameObject.SetActive(false); } list2.Add(item2); } } foreach (string item3 in list2) { activeEffects[uid].Remove(item3); } foreach (HealthEffect item4 in list) { ApplyHealthEffect(__instance, item4); } } private static void ApplyHealthEffect(Character character, HealthEffect effect) { //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007c: 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_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) if (effect == null || string.IsNullOrEmpty(effect.VisualChildName)) { return; } Transform val = Utils.FindChild(((Component)character).transform, effect.VisualChildName, (IterativeSearchType)0); if ((Object)(object)val == (Object)null) { return; } ((Component)val).gameObject.SetActive(true); if (character.m_nview.IsValid()) { ZDOID uid = character.m_nview.GetZDO().m_uid; if (!activeEffects.ContainsKey(uid)) { activeEffects[uid] = new List(); } if (!activeEffects[uid].Contains(effect.VisualChildName)) { activeEffects[uid].Add(effect.VisualChildName); } } if (effect.MeshesToHide != null && effect.MeshesToHide.Count > 0) { foreach (string item in effect.MeshesToHide) { Transform val2 = Utils.FindChild(((Component)character).transform, item, (IterativeSearchType)0); if ((Object)(object)val2 != (Object)null) { MeshRenderer component = ((Component)val2).GetComponent(); if ((Object)(object)component != (Object)null) { ((Renderer)component).enabled = false; } SkinnedMeshRenderer component2 = ((Component)val2).GetComponent(); if ((Object)(object)component2 != (Object)null) { ((Renderer)component2).enabled = false; } if ((Object)(object)component == (Object)null && (Object)(object)component2 == (Object)null) { ((Component)val2).gameObject.SetActive(false); } } } } if (!effect.HideOriginalMeshes) { return; } MeshRenderer[] componentsInChildren = ((Component)character).GetComponentsInChildren(true); SkinnedMeshRenderer[] componentsInChildren2 = ((Component)character).GetComponentsInChildren(true); MeshRenderer[] array = componentsInChildren; foreach (MeshRenderer val3 in array) { if (!IsPartOfVisualEffect(((Component)val3).transform, effect.VisualChildName)) { ((Renderer)val3).enabled = false; } } SkinnedMeshRenderer[] array2 = componentsInChildren2; foreach (SkinnedMeshRenderer val4 in array2) { if (!IsPartOfVisualEffect(((Component)val4).transform, effect.VisualChildName)) { ((Renderer)val4).enabled = false; } } } private static void DisableAllEffects(Character character) { //IL_002f: 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_00e4: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)character == (Object)null || !character.m_nview.IsValid()) { return; } ZDOID uid = character.m_nview.GetZDO().m_uid; if (!activeEffects.ContainsKey(uid)) { return; } string cleanPrefabName = GetCleanPrefabName(((Object)((Component)character).gameObject).name); if (!HealthMappings.TryGetValue(cleanPrefabName, out HealthMapping value)) { return; } foreach (HealthEffect effect in value.Effects) { Transform val = Utils.FindChild(((Component)character).transform, effect.VisualChildName, (IterativeSearchType)0); if ((Object)(object)val != (Object)null) { ((Component)val).gameObject.SetActive(false); } } activeEffects[uid].Clear(); } private static bool IsPartOfVisualEffect(Transform transform, string visualEffectName) { if ((Object)(object)transform == (Object)null || string.IsNullOrEmpty(visualEffectName)) { return false; } Transform val = transform; while ((Object)(object)val != (Object)null) { if (((Object)val).name == visualEffectName) { return true; } val = val.parent; } return false; } [HarmonyPatch(typeof(Character), "OnDestroy")] [HarmonyPostfix] public static void Character_OnDestroy_Postfix(Character __instance) { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) ZNetView component = ((Component)__instance).GetComponent(); if (!((Object)(object)component == (Object)null) && component.GetZDO() != null) { ZDOID uid = component.GetZDO().m_uid; activeEffects.Remove(uid); triggeredThresholds.Remove(uid); } } } public class HomingProjectile : MonoBehaviour { private const float INITIAL_STRAIGHT_DURATION = 0.1f; private const float TURN_RATE = 5f; private const float ACCELERATION_RATE = 1.5f; private const float MAX_SPEED_MULTIPLIER = 2f; private const float TARGET_SEARCH_RADIUS = 100f; private static readonly bool DISTRIBUTE_TARGETS = true; private Character? _target = null; private Projectile? _projectile = null; private Character? _owner = null; private bool _isInitialized = false; private float _elapsedTime = 0f; private float _baseSpeed = 0f; private float _currentSpeedMultiplier = 1f; private bool _isHoming = false; private int _projectileId = 0; private static Dictionary> _ownerTargetAssignments = new Dictionary>(); private static Dictionary _lastBurstTime = new Dictionary(); private static Dictionary _burstProjectileCounter = new Dictionary(); private const float BURST_WINDOW = 0.5f; public void Initialize(Character projectileOwner) { //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) _owner = projectileOwner; _projectile = ((Component)this).GetComponent(); _isInitialized = true; float time = Time.time; if (!_lastBurstTime.ContainsKey(_owner) || time - _lastBurstTime[_owner] > 0.5f) { if (!_burstProjectileCounter.ContainsKey(_owner)) { _burstProjectileCounter[_owner] = 0; } else { _burstProjectileCounter[_owner] = 0; } } _projectileId = (_burstProjectileCounter.ContainsKey(_owner) ? _burstProjectileCounter[_owner] : 0); if (_burstProjectileCounter.ContainsKey(_owner)) { _burstProjectileCounter[_owner] = _projectileId + 1; } else { _burstProjectileCounter[_owner] = 1; } FieldInfo field = typeof(Projectile).GetField("m_vel", BindingFlags.Instance | BindingFlags.NonPublic); if (field != null && (Object)(object)_projectile != (Object)null) { Vector3 val = (Vector3)field.GetValue(_projectile); _baseSpeed = ((Vector3)(ref val)).magnitude; } FindTarget(); } private void FixedUpdate() { if (!_isInitialized || (Object)(object)_projectile == (Object)null || (Object)(object)_owner == (Object)null) { Object.Destroy((Object)(object)this); return; } _elapsedTime += Time.fixedDeltaTime; if (_elapsedTime < 0.1f) { return; } if (!_isHoming) { _isHoming = true; if ((Object)(object)_target == (Object)null || _target.IsDead()) { FindTarget(); } } if (!((Object)(object)_target == (Object)null) && !_target.IsDead()) { ApplyHoming(); } } private void ApplyHoming() { //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0063: 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_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: 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_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)_projectile == (Object)null || (Object)(object)_target == (Object)null) { return; } try { FieldInfo field = typeof(Projectile).GetField("m_vel", BindingFlags.Instance | BindingFlags.NonPublic); if (!(field == null)) { Vector3 val = (Vector3)field.GetValue(_projectile); Vector3 val2 = _target.GetCenterPoint() - ((Component)this).transform.position; Vector3 normalized = ((Vector3)(ref val2)).normalized; Vector3 val3 = Vector3.Slerp(((Vector3)(ref val)).normalized, normalized, 5f * Time.fixedDeltaTime); float num = Vector3.Dot(((Vector3)(ref val)).normalized, normalized); if (num > 0.7f) { _currentSpeedMultiplier += 1.5f * Time.fixedDeltaTime; _currentSpeedMultiplier = Mathf.Min(_currentSpeedMultiplier, 2f); } float num2 = _baseSpeed * _currentSpeedMultiplier; Vector3 val4 = val3 * num2; field.SetValue(_projectile, val4); if (((Vector3)(ref val4)).magnitude > 0.01f) { ((Component)this).transform.rotation = Quaternion.LookRotation(val4); } } } catch (Exception ex) { Debug.LogError((object)("[HomingProjectile] Error in ApplyHoming: " + ex.Message)); Object.Destroy((Object)(object)this); } } private void FindTarget() { //IL_0027: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)_owner == (Object)null) { return; } List list = new List(); Character.GetCharactersInRange(((Component)_owner).transform.position, 100f, list); list = list.Where((Character c) => (Object)(object)c != (Object)(object)_owner && !c.IsDead() && !c.IsTamed() && (Object)(object)c.GetBaseAI() != (Object)null && c.GetBaseAI().IsEnemy(_owner)).ToList(); if (list.Count != 0) { list = list.OrderBy((Character e) => Vector3.Distance(((Component)_owner).transform.position, ((Component)e).transform.position)).ToList(); if (DISTRIBUTE_TARGETS) { int index = _projectileId % list.Count; _target = list[index]; } else { _target = list[0]; } _lastBurstTime[_owner] = Time.time; } } } [HarmonyPatch(typeof(Projectile), "Setup")] public static class HomingProjectilePatch { private static readonly string[] HomingProjectileWhitelist = new string[2] { "gundam_misile_projectile", "shwsmbatmissile_projectile" }; private static readonly bool HomingEnabled = true; [HarmonyPostfix] private static void Projectile_Setup_Postfix(Projectile __instance, Character owner) { if (HomingEnabled && !((Object)(object)__instance == (Object)null) && !((Object)(object)((Component)__instance).gameObject == (Object)null) && !((Object)(object)owner == (Object)null)) { string value = ((Object)((Component)__instance).gameObject).name.Replace("(Clone)", "").Trim(); if (HomingProjectileWhitelist.Contains(value)) { HomingProjectile homingProjectile = ((Component)__instance).gameObject.AddComponent(); homingProjectile.Initialize(owner); } } } } public class Patches : MonoBehaviour { [HarmonyPatch(typeof(Player), "SetControls")] [HarmonyPrefix] private static void PrefixSetControlsforShip(Player __instance, ref bool jump, ref bool crouch, ref bool attack, ref bool secondaryAttack, ref bool block) { Ship controlledShip = __instance.GetControlledShip(); ShipFlyIM shipFlyIM = default(ShipFlyIM); if (!((Object)(object)controlledShip == (Object)null) && ((Component)controlledShip).gameObject.TryGetComponent(ref shipFlyIM)) { shipFlyIM.flyship(ref jump, ref crouch, ref attack, ref secondaryAttack, ref block); } } } public class SaddleArmorHUD : MonoBehaviour { private static SaddleArmorHUD? _instance; private GameObject? _hudRoot; private Text? _armorText; private Character? _currentMount; private float _updateTimer; private const float UPDATE_INTERVAL = 0.1f; public static SaddleArmorHUD? Instance => _instance; private void Awake() { if ((Object)(object)_instance != (Object)null && (Object)(object)_instance != (Object)(object)this) { Object.Destroy((Object)(object)((Component)this).gameObject); return; } _instance = this; Object.DontDestroyOnLoad((Object)(object)((Component)this).gameObject); } private void Update() { if ((Object)(object)Player.m_localPlayer == (Object)null) { HideHUD(); return; } UpdateCurrentMount(); if ((Object)(object)_currentMount == (Object)null || !ShouldShowHUD()) { HideHUD(); return; } _updateTimer += Time.deltaTime; if (_updateTimer >= 0.1f) { _updateTimer = 0f; UpdateHUD(); } } private void UpdateCurrentMount() { if (!((Character)Player.m_localPlayer).IsRiding()) { _currentMount = null; return; } IDoodadController doodadController = Player.m_localPlayer.m_doodadController; Sadle val = (Sadle)(object)((doodadController is Sadle) ? doodadController : null); if ((Object)(object)val != (Object)null && (Object)(object)val.m_character != (Object)null) { _currentMount = val.m_character; } else { _currentMount = null; } } private bool ShouldShowHUD() { if ((Object)(object)_currentMount == (Object)null) { return false; } Tameable component = ((Component)_currentMount).GetComponent(); if ((Object)(object)component == (Object)null || !component.HaveSaddle()) { return false; } float maxArmorHP = SaddleArmorSystem.GetMaxArmorHP(_currentMount); return maxArmorHP > 0f; } private void UpdateHUD() { if ((Object)(object)_hudRoot == (Object)null) { CreateHUD(); } if (!((Object)(object)_hudRoot == (Object)null) && !((Object)(object)_armorText == (Object)null) && !((Object)(object)_currentMount == (Object)null)) { float armorHP = SaddleArmorSystem.GetArmorHP(_currentMount); float maxArmorHP = SaddleArmorSystem.GetMaxArmorHP(_currentMount); if (maxArmorHP <= 0f) { HideHUD(); return; } float percent = armorHP / maxArmorHP; string arg = GenerateArmorBar(percent); _armorText.text = $"Gundam Shield {arg} {Mathf.CeilToInt(armorHP)}/{Mathf.CeilToInt(maxArmorHP)}"; _hudRoot.SetActive(true); } } private string GenerateArmorBar(float percent) { int num = Mathf.RoundToInt(percent * 20f); string text = "["; for (int i = 0; i < 20; i++) { text = ((i >= num) ? (text + "█") : (text + "█")); } return text + "]"; } private void CreateHUD() { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0073: 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_009f: 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_0122: 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_015d: Unknown result type (might be due to invalid IL or missing references) Hud instance = Hud.instance; Transform val = ((instance != null) ? ((Component)instance).transform : null); if (!((Object)(object)val == (Object)null)) { _hudRoot = new GameObject("SaddleArmorHUD"); _hudRoot.transform.SetParent(val, false); RectTransform val2 = _hudRoot.AddComponent(); val2.anchorMin = new Vector2(0.5f, 0f); val2.anchorMax = new Vector2(0.5f, 0f); val2.pivot = new Vector2(0.5f, 0f); val2.anchoredPosition = new Vector2(0f, 120f); val2.sizeDelta = new Vector2(600f, 40f); _armorText = _hudRoot.AddComponent(); _armorText.font = Resources.GetBuiltinResource("Arial.ttf"); _armorText.fontSize = 16; _armorText.alignment = (TextAnchor)4; _armorText.horizontalOverflow = (HorizontalWrapMode)1; _armorText.verticalOverflow = (VerticalWrapMode)1; ((Graphic)_armorText).color = Color.white; _armorText.supportRichText = true; Outline val3 = _hudRoot.AddComponent(); ((Shadow)val3).effectColor = Color.black; ((Shadow)val3).effectDistance = new Vector2(1f, -1f); _hudRoot.SetActive(false); } } private void HideHUD() { if ((Object)(object)_hudRoot != (Object)null) { _hudRoot.SetActive(false); } } private void OnDestroy() { if ((Object)(object)_hudRoot != (Object)null) { Object.Destroy((Object)(object)_hudRoot); } } } [HarmonyPatch(typeof(Character))] public static class SaddleArmorSystem { public class ArmorConfig { public float MaxArmor { get; set; } public float ArmorPerLevel { get; set; } public float RegenDelay { get; set; } public float RegenRate { get; set; } public string? EffectGameObjectPrefix { get; set; } = ""; } private static readonly Dictionary CreatureArmorConfigs = new Dictionary { { "sGundamBarbatos", new ArmorConfig { MaxArmor = 2500f, ArmorPerLevel = 600f, RegenDelay = 25f, RegenRate = 25f, EffectGameObjectPrefix = "Shield" } }, { "sGundamExia", new ArmorConfig { MaxArmor = 2200f, ArmorPerLevel = 550f, RegenDelay = 20f, RegenRate = 25f, EffectGameObjectPrefix = "Shield" } }, { "ShawUltimateDragon", new ArmorConfig { MaxArmor = 2500f, ArmorPerLevel = 550f, RegenDelay = 20f, RegenRate = 25f, EffectGameObjectPrefix = "Shield" } } }; private const string ARMOR_HP_KEY = "SaddleArmorHP"; private const string LAST_DAMAGE_TIME_KEY = "SaddleArmorLastDamage"; [HarmonyPatch("ApplyDamage")] [HarmonyPrefix] private static void ApplyDamage_Prefix(Character __instance, ref HitData hit) { if ((Object)(object)__instance == (Object)null || hit == null) { return; } Tameable component = ((Component)__instance).GetComponent(); if ((Object)(object)component == (Object)null || !component.HaveSaddle()) { return; } string key = ((Object)((Component)__instance).gameObject).name.Replace("(Clone)", "").Trim(); if (!CreatureArmorConfigs.ContainsKey(key)) { return; } ZNetView component2 = ((Component)__instance).GetComponent(); if ((Object)(object)component2 == (Object)null || !component2.IsValid()) { return; } float maxArmorHP = GetMaxArmorHP(__instance); float @float = component2.GetZDO().GetFloat("SaddleArmorHP", maxArmorHP); if (@float > 0f) { float totalDamage = hit.GetTotalDamage(); if (totalDamage <= @float) { @float -= totalDamage; ((DamageTypes)(ref hit.m_damage)).Modify(0f); } else { float num = totalDamage - @float; @float = 0f; ((DamageTypes)(ref hit.m_damage)).Modify(num / totalDamage); } component2.GetZDO().Set("SaddleArmorHP", @float); component2.GetZDO().Set("SaddleArmorLastDamage", Time.time); } } [HarmonyPatch("Awake")] [HarmonyPostfix] private static void Awake_Postfix(Character __instance) { if ((Object)(object)__instance == (Object)null) { return; } Tameable component = ((Component)__instance).GetComponent(); if ((Object)(object)component == (Object)null) { return; } string key = ((Object)((Component)__instance).gameObject).name.Replace("(Clone)", "").Trim(); if (CreatureArmorConfigs.ContainsKey(key)) { SaddleArmorRegen component2 = ((Component)__instance).gameObject.GetComponent(); if ((Object)(object)component2 == (Object)null) { ((Component)__instance).gameObject.AddComponent(); } } } public static float GetArmorHP(Character character) { if ((Object)(object)character == (Object)null) { return 0f; } Tameable component = ((Component)character).GetComponent(); if ((Object)(object)component == (Object)null || !component.HaveSaddle()) { return 0f; } string key = ((Object)((Component)character).gameObject).name.Replace("(Clone)", "").Trim(); if (!CreatureArmorConfigs.ContainsKey(key)) { return 0f; } ZNetView component2 = ((Component)character).GetComponent(); if ((Object)(object)component2 == (Object)null || !component2.IsValid()) { return 0f; } float maxArmorHP = GetMaxArmorHP(character); return component2.GetZDO().GetFloat("SaddleArmorHP", maxArmorHP); } public static float GetMaxArmorHP(Character character) { if ((Object)(object)character == (Object)null) { return 0f; } string key = ((Object)((Component)character).gameObject).name.Replace("(Clone)", "").Trim(); if (!CreatureArmorConfigs.ContainsKey(key)) { return 0f; } ArmorConfig armorConfig = CreatureArmorConfigs[key]; int saddleQuality = GetSaddleQuality(character); return armorConfig.MaxArmor + armorConfig.ArmorPerLevel * (float)(saddleQuality - 1); } private static int GetSaddleQuality(Character character) { Tameable component = ((Component)character).GetComponent(); if ((Object)(object)component == (Object)null || (Object)(object)component.m_saddleItem == (Object)null) { return 1; } return component.m_saddleItem.m_itemData.m_quality; } public static ArmorConfig? GetArmorConfig(string prefabName) { if (CreatureArmorConfigs.ContainsKey(prefabName)) { return CreatureArmorConfigs[prefabName]; } return null; } } public class SaddleArmorRegen : MonoBehaviour { private Character? _character = null; private Tameable? _tameable = null; private ZNetView? _nview = null; private string? _prefabName = null; private List _effectObjects = new List(); private bool _lastArmorState = true; private void Awake() { _character = ((Component)this).GetComponent(); _tameable = ((Component)this).GetComponent(); _nview = ((Component)this).GetComponent(); _prefabName = ((Object)((Component)this).gameObject).name.Replace("(Clone)", "").Trim(); } private void Start() { if (_prefabName == null) { return; } SaddleArmorSystem.ArmorConfig armorConfig = SaddleArmorSystem.GetArmorConfig(_prefabName); if (armorConfig != null && !string.IsNullOrEmpty(armorConfig.EffectGameObjectPrefix)) { FindAllChildrenWithPrefix(((Component)this).transform, armorConfig.EffectGameObjectPrefix, _effectObjects); if (_effectObjects.Count > 0) { UpdateEffectState(active: true); } } } private void FixedUpdate() { if ((Object)(object)_character == (Object)null || (Object)(object)_tameable == (Object)null || !_tameable.HaveSaddle()) { UpdateEffectState(active: false); } else { if ((Object)(object)_nview == (Object)null || !_nview.IsValid() || !_nview.IsOwner() || _prefabName == null) { return; } SaddleArmorSystem.ArmorConfig armorConfig = SaddleArmorSystem.GetArmorConfig(_prefabName); if (armorConfig == null) { return; } float maxArmorHP = SaddleArmorSystem.GetMaxArmorHP(_character); float @float = _nview.GetZDO().GetFloat("SaddleArmorHP", maxArmorHP); bool active = @float > 0f; UpdateEffectState(active); if (!(@float < maxArmorHP)) { return; } float float2 = _nview.GetZDO().GetFloat("SaddleArmorLastDamage", 0f); float num = Time.time - float2; if (num >= armorConfig.RegenDelay) { @float += armorConfig.RegenRate * Time.fixedDeltaTime; if (@float > maxArmorHP) { @float = maxArmorHP; } _nview.GetZDO().Set("SaddleArmorHP", @float); } } } private void UpdateEffectState(bool active) { if (_effectObjects.Count <= 0 || _lastArmorState == active) { return; } foreach (GameObject effectObject in _effectObjects) { if ((Object)(object)effectObject != (Object)null) { effectObject.SetActive(active); } } _lastArmorState = active; } private void FindAllChildrenWithPrefix(Transform parent, string prefix, List results) { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown foreach (Transform item in parent) { Transform val = item; if (((Object)val).name.StartsWith(prefix)) { results.Add(((Component)val).gameObject); } FindAllChildrenWithPrefix(val, prefix, results); } } } public class ShipFlyIM : MonoBehaviour { private Ship ship; private Rigidbody rb; public float drop_reduction = 10f; public Vector3 forcepos = new Vector3(0f, 0f, 0f); public float forwardReduction = 0.5f; public float hoverlift_modifier = 0.1f; public float hoverheight_modifier = 0.15f; public float hovertilt_modifier = 2f; public float jump_lift_mod = 0.1f; private float lift = 110f; public float LR_StabilityForce = 100f; public Vector3 LRpos = new Vector3(0f, 4f, -5f); public float maxangle = 0.35f; public float R_multi = 10f; public float rightingForce = -45f; public float rollForce = -25000f; public float rotationForce = 70f; public float slowDown_multi = 3f; public float thrust = 15f; public float turningForce = 0.05f; public float yawForce = 30000f; private float waterlvl = 30f; private Vector3[] projectileForce = (Vector3[])(object)new Vector3[2] { new Vector3(0f, 0f, 100f), new Vector3(0f, 0f, 50f) }; private Vector3[] projectileLoc = (Vector3[])(object)new Vector3[2] { new Vector3(0f, 0f, 0f), new Vector3(5f, 0f, -6f) }; private float[] projectileCooldown = new float[2] { 10f, 16f }; private float[] lastProjectile = new float[2]; private int[] AmtBeforeRecharge = new int[2] { 15, 4 }; private int[] AmtInChamber = new int[2] { 15, 4 }; private float manouverForce = 600f; public void Awake() { //IL_005d: Unknown result type (might be due to invalid IL or missing references) ship = ((Component)this).gameObject.GetComponent(); if (Object.op_Implicit((Object)(object)ship)) { rb = ship.m_body; waterlvl = (Object.op_Implicit((Object)(object)ship.m_previousCenter) ? ((Component)ship.m_previousCenter).transform.position.y : 30f); } } private bool hasShip() { //IL_0084: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)ship) && Object.op_Implicit((Object)(object)rb)) { return true; } ship = ((Component)this).gameObject.GetComponent(); if (Object.op_Implicit((Object)(object)ship)) { rb = ship.m_body; waterlvl = (Object.op_Implicit((Object)(object)ship.m_previousCenter) ? ((Component)ship.m_previousCenter).transform.position.y : 30f); if (Object.op_Implicit((Object)(object)rb)) { return true; } return false; } return false; } public void flyship(ref bool jump, ref bool crouch, ref bool attack, ref bool secondaryattack, ref bool block) { //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Unknown result type (might be due to invalid IL or missing references) //IL_02b6: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_0317: Unknown result type (might be due to invalid IL or missing references) //IL_031c: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_07b6: Unknown result type (might be due to invalid IL or missing references) //IL_07c1: Unknown result type (might be due to invalid IL or missing references) //IL_07c6: Unknown result type (might be due to invalid IL or missing references) //IL_07cb: Unknown result type (might be due to invalid IL or missing references) //IL_07dd: Unknown result type (might be due to invalid IL or missing references) //IL_07e8: Unknown result type (might be due to invalid IL or missing references) //IL_07ed: Unknown result type (might be due to invalid IL or missing references) //IL_07f2: Unknown result type (might be due to invalid IL or missing references) //IL_0869: Unknown result type (might be due to invalid IL or missing references) //IL_0897: Unknown result type (might be due to invalid IL or missing references) //IL_089c: Unknown result type (might be due to invalid IL or missing references) //IL_082d: Unknown result type (might be due to invalid IL or missing references) //IL_0850: Unknown result type (might be due to invalid IL or missing references) //IL_0387: Unknown result type (might be due to invalid IL or missing references) //IL_039c: Unknown result type (might be due to invalid IL or missing references) //IL_03a1: Unknown result type (might be due to invalid IL or missing references) //IL_03ac: Unknown result type (might be due to invalid IL or missing references) //IL_04d9: Unknown result type (might be due to invalid IL or missing references) //IL_04de: Unknown result type (might be due to invalid IL or missing references) //IL_04f3: Unknown result type (might be due to invalid IL or missing references) //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03e7: 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_0143: Unknown result type (might be due to invalid IL or missing references) //IL_0150: Unknown result type (might be due to invalid IL or missing references) //IL_0166: 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_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_0554: Unknown result type (might be due to invalid IL or missing references) //IL_0568: Unknown result type (might be due to invalid IL or missing references) //IL_056d: Unknown result type (might be due to invalid IL or missing references) //IL_058b: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Unknown result type (might be due to invalid IL or missing references) //IL_05a2: Unknown result type (might be due to invalid IL or missing references) //IL_05a7: Unknown result type (might be due to invalid IL or missing references) //IL_05ac: Unknown result type (might be due to invalid IL or missing references) //IL_05be: Unknown result type (might be due to invalid IL or missing references) //IL_05d2: Unknown result type (might be due to invalid IL or missing references) //IL_05d7: Unknown result type (might be due to invalid IL or missing references) //IL_05dc: Unknown result type (might be due to invalid IL or missing references) //IL_05e1: Unknown result type (might be due to invalid IL or missing references) //IL_05e6: Unknown result type (might be due to invalid IL or missing references) //IL_05f1: Unknown result type (might be due to invalid IL or missing references) //IL_05f7: Unknown result type (might be due to invalid IL or missing references) //IL_05fc: Unknown result type (might be due to invalid IL or missing references) //IL_0601: Unknown result type (might be due to invalid IL or missing references) //IL_0606: Unknown result type (might be due to invalid IL or missing references) //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_0623: Unknown result type (might be due to invalid IL or missing references) //IL_0522: Unknown result type (might be due to invalid IL or missing references) //IL_0431: Unknown result type (might be due to invalid IL or missing references) //IL_0445: Unknown result type (might be due to invalid IL or missing references) //IL_044a: Unknown result type (might be due to invalid IL or missing references) //IL_046c: Unknown result type (might be due to invalid IL or missing references) //IL_040a: Unknown result type (might be due to invalid IL or missing references) //IL_0412: Unknown result type (might be due to invalid IL or missing references) //IL_0418: Unknown result type (might be due to invalid IL or missing references) //IL_0646: Unknown result type (might be due to invalid IL or missing references) //IL_064c: Invalid comparison between Unknown and I4 //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_06c8: Unknown result type (might be due to invalid IL or missing references) //IL_06d0: Unknown result type (might be due to invalid IL or missing references) //IL_06db: Unknown result type (might be due to invalid IL or missing references) //IL_06e8: Unknown result type (might be due to invalid IL or missing references) //IL_06ee: Unknown result type (might be due to invalid IL or missing references) //IL_06f9: Unknown result type (might be due to invalid IL or missing references) //IL_0692: Unknown result type (might be due to invalid IL or missing references) //IL_069a: Unknown result type (might be due to invalid IL or missing references) //IL_06a1: Unknown result type (might be due to invalid IL or missing references) //IL_06a7: Unknown result type (might be due to invalid IL or missing references) //IL_06b2: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_072f: Unknown result type (might be due to invalid IL or missing references) //IL_0747: Unknown result type (might be due to invalid IL or missing references) //IL_075b: Unknown result type (might be due to invalid IL or missing references) //IL_0760: Unknown result type (might be due to invalid IL or missing references) //IL_0782: Unknown result type (might be due to invalid IL or missing references) if (!hasShip()) { Shawesomes_Infinite_Multiverse.logger.LogWarning((object)"Does not have ship"); return; } float time = Time.time; if (attack | secondaryattack | block) { Container component = ((Component)this).gameObject.GetComponent(); if ((Object)(object)component != (Object)null) { int num = (block ? 1 : 0); if (time > lastProjectile[num] + projectileCooldown[num]) { List drops = component.m_defaultItems.m_drops; GameObject item = drops[num].m_item; if ((Object)(object)item != (Object)null) { if (AmtBeforeRecharge[num] > 0) { if (--AmtInChamber[num] <= 0) { AmtInChamber[num] = AmtBeforeRecharge[num]; lastProjectile[num] = time; } } else { lastProjectile[num] = time; } for (int i = 0; i <= num; i++) { GameObject val = Object.Instantiate(item, ((Component)this).gameObject.transform.position + ((Component)this).gameObject.transform.rotation * Vector3.Scale(projectileLoc[num], new Vector3((float)(1 - 2 * i), 1f, 1f)), ((Component)this).gameObject.transform.rotation); Projectile component2 = val.GetComponent(); if (Object.op_Implicit((Object)(object)component2)) { Shawesomes_Infinite_Multiverse.logger.LogWarning((object)((!block) ? "attempt to attack primary1" : "attempt to attack secondary2")); component2.m_vel = ((Component)this).gameObject.transform.rotation * projectileForce[num]; } } } } } attack = false; secondaryattack = false; } if (jump) { jump = false; } float num2 = 1f + 0.25f * Math.Min(Math.Max(rb.position.y - waterlvl, 0f), 6f); float num3 = Math.Max(Math.Min(1.25f - 0.25f * Math.Min(rb.position.y - waterlvl, 4f), 1f), 0f) * rotationForce; Vector3 val2 = rb.position + forcepos; Vector3 val3 = rb.rotation * Vector3.forward; float num4 = Vector3.Dot(val3, Vector3.up); if (num4 > maxangle) { num3 *= -1f; } float num5 = (maxangle - num4) * (maxangle - num4) * 100f; float num6 = Vector3.Dot(rb.velocity, val3); int num7 = 1; if (ZInput.GetButton("Jump") || ZInput.GetButtonDown("JoyJump")) { if (ZInput.GetButton("Run") || ZInput.GetButtonDown("JoyRun")) { Shawesomes_Infinite_Multiverse.logger.LogWarning((object)"shiftjump"); rb.AddForceAtPosition(rb.rotation * new Vector3(0f, manouverForce, 0f), rb.position, (ForceMode)1); num7 = 0; } if (num7 > 0) { rb.AddForceAtPosition(new Vector3(0f, num3 * num5, 0f), rb.position, (ForceMode)1); } if (num6 < 30f) { rb.AddForce(val3 * thrust * num2, (ForceMode)1); } rb.AddForce(rb.rotation * new Vector3(0f, 1f, 0.1f) * Math.Min(lift * jump_lift_mod * num4 * num6, 2400f), (ForceMode)1); } float num8 = Math.Max(num2 - 1.5f, 0f); if (num7 > 0) { if (ZInput.GetButton("Crouch") || ZInput.GetButtonDown("JoyCrouch")) { num7 = 5; } rb.AddForceAtPosition(new Vector3(0f, rightingForce * (float)num7, 0f), val2, (ForceMode)1); float num9 = 1f; if (rb.position.y > waterlvl + 20f) { num9 = 1f - Math.Min(0.01f * (rb.position.y - waterlvl - 20f), 0.3f); } rb.AddForce(rb.rotation * new Vector3(0f, 1f, 0.1f) * Math.Min(lift * num9 * num4 * num6, 2400f), (ForceMode)1); float num10 = Vector3.Dot(rb.rotation * Vector3.left, Vector3.up); Vector3 val4 = rb.position + R_multi * num10 * (rb.rotation * Vector3.right) + rb.rotation * LRpos; rb.AddForceAtPosition(new Vector3(0f, LR_StabilityForce, 0f), val4, (ForceMode)1); if (num2 < 2f) { return; } if ((int)ship.m_speed == 4) { float num11 = Math.Max(Math.Min(10f / num6 - 27f, 2f), 0.1f); if (num6 < 30f) { rb.AddForce(val3 * thrust * num11 * num2 * hoverheight_modifier, (ForceMode)1); } else { rb.AddForce(val3 * thrust * slowDown_multi * (30f - num6) * num2 * hoverheight_modifier, (ForceMode)1); } rb.AddForceAtPosition(new Vector3(0f, num3 * hovertilt_modifier * num11 * num5, 0f), rb.position, (ForceMode)1); rb.AddForce(rb.rotation * new Vector3(0f, 1f, 0.1f) * Math.Min(lift * num4 * num6 * hoverlift_modifier, 2400f), (ForceMode)1); } } if (num8 > 0f) { float rudderValue = ship.m_rudderValue; float num12 = Vector3.Dot(rb.velocity, rb.rotation * Vector3.left); float num13 = Vector3.Dot(rb.velocity, rb.rotation * Vector3.up); if (num13 < 0f && num6 > 15f) { rb.AddForce(new Vector3(0f, 1f, 0f) * Math.Min(lift * (0f - num13) * drop_reduction * num8, 2400f), (ForceMode)1); } rb.AddForce(rb.rotation * new Vector3(num12 * turningForce * num8, 0f, forwardReduction * Math.Abs(num12) * turningForce * num8), (ForceMode)2); rb.AddRelativeTorque(0f, rudderValue * yawForce * num8, rudderValue * rollForce * num8); ship.m_rudderValue += 0.02f * (num8 * (float)((!(ship.m_rudderValue > 0f)) ? 1 : (-1))); } } } [BepInPlugin("IDshawesome4u1", "Shawesomes_Infinite_Multiverse", "2.3.2")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Shawesomes_Infinite_Multiverse : BaseUnityPlugin { [HarmonyPriority(0)] [HarmonyPatch(typeof(Player), "OnSpawned")] private static class Player_OnSpawned_Patch { private static void Postfix() { if (m_initialized || !Object.op_Implicit((Object)(object)ZNetScene.instance)) { return; } Dictionary dictionary = new Dictionary { ["sGundamBarbatos"] = "Troll", ["sGundamExia"] = "Troll", ["shawesomesurtrboss"] = "Troll" }; Humanoid val = default(Humanoid); Humanoid val2 = default(Humanoid); foreach (KeyValuePair item in dictionary) { GameObject prefab = ZNetScene.instance.GetPrefab(item.Value); GameObject prefab2 = ZNetScene.instance.GetPrefab(item.Key); if (Object.op_Implicit((Object)(object)prefab) && Object.op_Implicit((Object)(object)prefab2) && prefab.TryGetComponent(ref val) && prefab2.TryGetComponent(ref val2)) { ((Character)val2).m_waterEffects = ((Character)val).m_waterEffects; } } m_initialized = true; } } public Harmony harmony; public static GameObject Root; public string version = "1.0.0"; private static int i = 0; public static ManualLogSource logger; public static ManualLogSource harmonyLog; private static AssetBundle Shawcassets; public static List EffectList = new List(); private static bool m_initialized; public void Awake() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown logger = ((BaseUnityPlugin)this).Logger; VanillaShaders.InitLogFilter(); VanillaShaders.RegisterAssetBundle("shaw_im"); harmony = new Harmony("IDshawesome4u1"); Root = new GameObject("Shaw Root"); Object.DontDestroyOnLoad((Object)(object)Root); harmony.PatchAll(typeof(HealthVisualManager)); harmony.PatchAll(typeof(ControllerSwapperSystem)); harmony.PatchAll(typeof(Player_Update_Patch)); harmony.PatchAll(typeof(Animator_runtimeAnimatorController_Patch)); ControllerSwapperSystem.Initialize(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"HealthVisualManager initialized"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"ControllerSwapperSystem initialized"); harmony.PatchAll(typeof(Patches)); Ascend.InitConfig(((BaseUnityPlugin)this).Config); harmony.PatchAll(typeof(SimpleAscend_Character_UpdateMotion_Patch)); harmony.PatchAll(typeof(SimpleAscend_Character_IsOnGround_Patch)); Ascend.Instance.ApplyConfig(); harmony.PatchAll(typeof(SimpleMountController.MountControlsPatch)); harmony.PatchAll(typeof(SimpleMountController.FlightControlPatch)); harmony.PatchAll(typeof(SimpleMountController.EnableFlightOnMount)); harmony.PatchAll(typeof(SimpleMountController.DisableFlightOnDismount)); harmony.PatchAll(typeof(SimpleMountController.InputUpdatePatch)); harmony.PatchAll(typeof(SimpleMountController.DisableGravityWhileFlying)); harmony.PatchAll(typeof(SimpleMountController.FlyingPhysicsPatch)); harmony.PatchAll(typeof(SaddleArmorSystem)); harmony.PatchAll(typeof(HomingProjectilePatch)); Root.AddComponent(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Mount System initialized (SimpleMountController, SaddleArmorSystem, HomingProjectile, SaddleArmorHUD)"); harmonyLog = ((BaseUnityPlugin)this).Logger; IEnumerable patchedMethods = harmony.GetPatchedMethods(); foreach (MethodBase item in patchedMethods) { harmonyLog.LogWarning((object)(item.ReflectedType?.ToString() + ":" + item.Name + " is patched")); } harmonyLog.LogMessage((object)"[BOOT SEQUENCE COMPLETE] :: Multiversal anomalies online. Unique Combat parameters unlocked. Dragonballs scattered...Awaiting Hero of Legend..."); Shawcassets = AssetUtils.LoadAssetBundleFromResources("shaw_im", Assembly.GetExecutingAssembly()); LoadAssets(); PrefabManager.OnVanillaPrefabsAvailable += additems; PrefabManager.OnPrefabsRegistered += delegate { harmonyLog.LogMessage((object)"Registering VFX via PrefabManager (safe, ZNetScene ready)..."); AddEffectsToZNet(); }; } public static void LoadAssets() { EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/shwsmbatmissile_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/shwsmbow_projectile1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/batmobile_boost_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawbathookprojectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/vfx_shawtechdmg_impact1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/vfx_shawtechdmg_impact.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/cryobatarang_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/batarang_freeze_bomb_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/pyrobatarang_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/pyrobatarang_projectile_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/vfx_arrowhit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeArmor/fx_shawarmorset.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/ddstuff/yu-gi-oh-winged-dragon-of-ra/RA_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/fx_eikthyr_stomp.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/gaara/SandBC.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/gaara/fx_shield_startGAARA.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/gaara/sand_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/vfx_HitSparks1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/ddstuff/vfx_YGOBLOCK.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/custom attacks/sfx_lifepointsdrop.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/fx_SageMode_Activation.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/sclone_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/sclone_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/RS_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/Rasensh_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/toshiro-hitsugaya/icedragon_hyorinmaru_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/toshiro-hitsugaya/IceBlocker1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/toshiro-hitsugaya/vfx_icedragon_hyorinmaru_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/shunsui/Shunsui projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/shunsui/shunsui_attack_aoe.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/nozarashi/fx_nozarashi_attack.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/nozarashi/sfx_Nozarashi.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/shunsui/sfx_shunsui.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/toshiro-hitsugaya/sfx_hyorinmaru.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/Byakuya/Senbonzakura_aoe.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/Byakuya/zakura_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/ichigo-kurosaki/Mugetsu_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/ichigo-kurosaki/fx_mugetsu_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/ichigo-kurosaki/sfx_Mugetsu.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/ichigo-sword-the-second-mode/textures/Getsugatensho_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/ichigo-sword-the-second-mode/textures/fx_gt_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/ichigo-sword-the-second-mode/textures/sfx_getsugatensho.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/sfx_firework_explode1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/vfx_Burning1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/beamsaber_swing_v.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/beamsaber_swing_h.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawesomeexplosion.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/vfx_Place_VikingShip1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawesomeexplosion1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/barbatos_swing_v.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/barbatos_swing_h.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/vfx_troll_footstep_water1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/custom attacks/projectile_Gungnir1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/custom attacks/gungprojhitnew.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/warpgung_spawn.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawAura/Effects/Hovl Studio/8 KI levels/Prefabs/Ki aura grand.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/fx_Lightning_green.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/fx_Lightning_purp.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/skitetsu_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/sfx_kitetsu.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/sfx_enma.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/enma_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/ddstuff/sfx_ra_summon.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/beud_projectile_card.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/sfx_beud_roar.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/sfx_beud_beam_start.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/nbexplosion_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/fx_beud_stomp.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/neutronblast_start_vfx.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/neutronblast_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/shawesomeygo/sfx_beud_atklong_beamfire.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/SOUNDS/sfx_senzu_remark.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/fx_Potion_SENZU.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/spirit bomb projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/BBK_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/ki_blast_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/fx_kiblast_hit1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/kameha_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/hatchling_spit_cold1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/hatchling_cold_projectile1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/SOUNDS/sfx_KMHMH_Launch1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/SOUNDS/sfx_SB_Launch.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/SOUNDS/sfx_UltraInstinct_Block.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/SOUNDS/sfx_BBKmhmh_launch.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/sfx_cloneras_launch1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/naruto-uzumaki-running-animation/sfx_rasenshuriken_launch.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/Byakuya/vfx_blocked_senbonz.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeBleach/Byakuya/fx_shield_startGAARA1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/sfx_shawbatarang_beeps.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/fx_kmhmhstart.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/fx_energyblast_hit.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/ki_hit_dig.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/vfx_Place_digg.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/GG_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/Tkameha_projectile1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/sfx_GG_start.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/CamShake1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome2/SOUNDS/sfx_GG_Launch.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome2/SOUNDS/sfx_BBKmhmh_launch.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome2/SOUNDS/sfx_SB_Launch.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome2/SOUNDS/sfx_senzu_remark.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/PrefabInstance/fx_kiblast_hit2.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawTitan/thrusters.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawTitan/thrusters1.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGundam/sfx_tech_warning.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeGOW/sfx-warning-jet.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome40kweapons/Titan/gundam_misile_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/gryphon_projectile.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/sfx_divinedeparture.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeDBZ/sfx_flydescend.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeDBZ/sfx_flyfast.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeDBZ/vfx_flyfast.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeDBZ/sfx_flyascend.prefab")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome/Potion_SENZU.asset")); EffectList.Add(Shawcassets.LoadAsset("Assets/ShawesomeArmor/blackvalk_se.asset")); EffectList.Add(Shawcassets.LoadAsset("Assets/Shawesome1/gaara/vfx_blocked_sand.prefab")); } public static void AddEffectsToZNet() { harmonyLog.LogMessage((object)"Adding effects to ZNet"); foreach (GameObject effect in EffectList) { int stableHashCode = StringExtensionMethods.GetStableHashCode(((Object)effect).name); harmonyLog.LogMessage((object)("Attempting to add to Znet " + stableHashCode + ":" + ((Object)effect).name)); if ((Object)(object)ZNetScene.instance != (Object)null && !ZNetScene.instance.m_namedPrefabs.ContainsKey(stableHashCode)) { harmonyLog.LogMessage((object)("Adding to ZNet" + ((Object)effect).name)); PrefabManager.Instance.RegisterToZNetScene(effect); } if ((Object)(object)ZNetScene.instance != (Object)null) { harmonyLog.LogMessage((object)((Object)(object)ZNetScene.instance.GetPrefab(stableHashCode) != (Object)null)); } } } public static void additems() { Addwarpspear(); AddItsover9000(); AddKIBLAST(); Addbbksb(); AddKIBLAST1(); Addperveysagecloud(); AddSENZU(); Addkifly(); AddSpacePod(); Addssj5fusion(); AddIT2Duel(); AddHeartotc(); AddMPSoul(); Addkaibahand(); AddBEmount(); Addultimatedragon(); Addudatk1(); Addudatk2(); Addshawesomeboat(); Addgaara(); AddGaaraCape(); AddNaruto(); AddShunsuiCape(); AddKatenKyokotsu(); AddZangetsu(); AddFinalZangetsu(); AddNozarashi(); AddSenbonzakura(); Addhyorenmaru(); Addzoro3(); Addzoro2(); Addzoro1(); Addgryphon(); Addbatmanhead(); Addbatmanchest(); Addbatmanlegs(); Addbatmancape(); Addbatgrap(); Addbatarangfire(); Addbatarangfrost(); Addbarbatos(); Addexia(); Addexiakey(); Addbarbkey(); Addbeamsaber2(); Addbeamsaber1(); Addbeamsaber4(); Addbeamsaber3(); Addexiamissiles(); Addbarbmissiles(); Add1sdb(); Add2sdb(); Add3sdb(); Add4sdb(); Add5sdb(); Add6sdb(); Add7sdb(); PrefabManager.OnVanillaPrefabsAvailable -= additems; } public static void Addbarbmissiles() { //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("Assets/Shawesome40kweapons/Titan/gundam_misiles.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addexiamissiles() { //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("Assets/Shawesome40kweapons/Titan/gundam_misiles_exia.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addudatk1() { //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("Assets/shawesomeygo/ultimatedragon_stomp.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addudatk2() { //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("Assets/shawesomeygo/ultimatedragon_atk_long.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatarangfrost() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DragonTear", 1, 1, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawbatarangIce.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatarangfire() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("SurtlingCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawbatarangfire.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatgrap() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("MechanicalSpring", 4, 4, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawbathook.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawbatcart() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Expected O, but got Unknown //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0069: 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_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0098: 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("IronNails", 100, 0, false)); val.AddRequirement(new RequirementConfig("ElderBark", 50, 0, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 50, 0, false)); val.AddRequirement(new RequirementConfig("FlametalNew", 50, 0, false)); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGOW/shawbatcart.prefab"); CustomPiece val3 = new CustomPiece(val2, true, val); logger.LogWarning((object)("test" + i++)); PieceManager.Instance.AddPiece(val3); } public static void Addtitustoy() { //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_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeTOOTS/godogtoy4.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addtitusmount() { //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_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeTOOTS/godogtoy.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addtitus() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown CreatureConfig val = new CreatureConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeTOOTS/TitusAndronicusGodShaw.prefab"); CustomCreature val3 = new CustomCreature(val2, true, val); CreatureManager.Instance.AddCreature(val3); } public static void Addsurtrock() { //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("Assets/ShawesomeGundam/surt_meteor_throw.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addsurtboss() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown CreatureConfig val = new CreatureConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGundam/shawesomesurtrboss.prefab"); CustomCreature val3 = new CustomCreature(val2, true, val); CreatureManager.Instance.AddCreature(val3); } public static void Addsurtsword1() { //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("Assets/ShawesomeGundam/surt_swing_h1.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addsurtsword2() { //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("Assets/ShawesomeGundam/surt_swing_v1.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addgryphon() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/sgryphon.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addzoro1() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/zbladeenma.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addzoro2() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/SandaiKitetsu.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addzoro3() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeOnePiece/mossheadhelm.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbeamsaber4() { //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("Assets/ShawesomeGundam/barbatos_swing_v.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbeamsaber3() { //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("Assets/ShawesomeGundam/barbatos_swing_h.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbarbkey() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGundam/BarbatosCore.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbarbatos() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown CreatureConfig val = new CreatureConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGundam/sGundamBarbatos.prefab"); CustomCreature val3 = new CustomCreature(val2, true, val); CreatureManager.Instance.AddCreature(val3); } public static void Addwarpspear() { //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_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGundam/Warpreilcgungnir.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbeamsaber2() { //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("Assets/ShawesomeGundam/beamsaber_swing_v.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbeamsaber1() { //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("Assets/ShawesomeGundam/beamsaber_swing_h.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addexiakey() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGundam/ExiaCore.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addexia() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown CreatureConfig val = new CreatureConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGundam/sGundamExia.prefab"); CustomCreature val3 = new CustomCreature(val2, true, val); CreatureManager.Instance.AddCreature(val3); } public static void Addkifly() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("CelestialFeather", 1, 3, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 4; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeArmor/sflightkipower.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatmancape() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeArmor/blackvalkwings.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatmanhead() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeArmor/blackvalkhead.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatmanchest() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeArmor/blackvalkchest.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbatmanlegs() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeArmor/blackvalklegs.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbbhead() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBatman/Batmanbeyonhelmet.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbbchest() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBatman/BatmanbeyondChest.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addbblegs() { //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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BlackCore", 10, 10, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBatman/BatmanbeyonLegs.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addhyorenmaru() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Zhangetsu", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBleach/hyorenmaru.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddSenbonzakura() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Zhangetsu", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBleach/Senbonzakura.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddNozarashi() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Zhangetsu", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBleach/Nozarashi.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddFinalZangetsu() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Zhangetsu", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBleach/shwsmbigzang.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddZangetsu() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ShunsuiCape", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBleach/Zhangetsu.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddKatenKyokotsu() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ShunsuiCape", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeBleach/KatenKyokotsu.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddShunsuiCape() { //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0197: 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_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_0453: Unknown result type (might be due to invalid IL or missing references) //IL_04b2: Unknown result type (might be due to invalid IL or missing references) //IL_0511: Unknown result type (might be due to invalid IL or missing references) //IL_0543: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("KageBunshinnoJutsu", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("ShunsuiCape", "CapeLox", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "Shihakushō"; itemData.m_shared.m_description = "test..."; itemData.m_shared.m_armor = 4f; itemData.m_shared.m_armorPerLevel = 3f; itemData.m_shared.m_maxDurability = 4000f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 1f; Material val3 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/BleachChestMat.mat"); itemData.m_shared.m_armorMaterial = val3; DamageModPair item = default(DamageModPair); item.m_modifier = (DamageModifier)5; item.m_type = (DamageType)256; itemData.m_shared.m_damageModifiers.Add(item); DamageModPair item2 = default(DamageModPair); item2.m_modifier = (DamageModifier)5; item2.m_type = (DamageType)32; itemData.m_shared.m_damageModifiers.Add(item2); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/Shawesome/BleachCapeicon.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)AddReaperEffects((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = ((Component)PrefabManager.Instance.GetPrefab("ShunsuiCape").transform.Find("attach_skin")).transform; Transform transform2 = ((Component)transform.Find("LoxCape")).transform; Transform transform3 = PrefabManager.Instance.GetPrefab("body").transform; Transform val4 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform3, transform); Transform transform4 = ((Component)PrefabManager.Instance.GetPrefab("ArmorFenringChest").transform.Find("attach_skin")).transform; Transform transform5 = ((Component)transform4.Find("FenringPants")).transform; Transform val5 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform5, transform); Transform transform6 = ((Component)PrefabManager.Instance.GetPrefab("ArmorMageChest").transform.Find("attach_skin")).transform; Transform transform7 = ((Component)transform6.Find("MageArmorBody.001")).transform; Transform val6 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform7, transform); SkinnedMeshRenderer component = ((Component)transform2).GetComponent(); SkinnedMeshRenderer component2 = ((Component)val6).GetComponent(); SkinnedMeshRenderer component3 = ((Component)val5).GetComponent(); SkinnedMeshRenderer component4 = ((Component)val4).GetComponent(); Material material = ((Renderer)component3).material; Material material2 = ((Renderer)component).material; Material material3 = ((Renderer)component2).material; Object[] array2 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/bleachrobe_d.png"); Object[] array3 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTrobe_e.png"); Object[] array4 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTrobe_m.png"); Object[] array5 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_d.png"); Object[] array6 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_e.png"); Object[] array7 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_m.png"); Object[] array8 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_bm.png"); Object[] array9 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/bleachCape_D.png"); Object[] array10 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_E.png"); Object[] array11 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_M.png"); Object[] array12 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/bleachchest_d.png"); Object[] array13 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTChestMat.png"); ((Renderer)component4).material = val3; ? val7 = material; Object obj3 = array12[0]; ((Material)val7).SetTexture("_MainTex", (Texture)(object)((obj3 is Texture2D) ? obj3 : null)); material.EnableKeyword("_EMISSION"); ? val8 = material; Object obj4 = array12[0]; ((Material)val8).SetTexture("_EmissionMap", (Texture)(object)((obj4 is Texture2D) ? obj4 : null)); material.SetColor("_EmissionColor", new Color(0f, 0f, 0f, 1f)); ? val9 = material2; Object obj5 = array9[0]; ((Material)val9).SetTexture("_MainTex", (Texture)(object)((obj5 is Texture2D) ? obj5 : null)); material2.EnableKeyword("_EMISSION"); ? val10 = material2; Object obj6 = array9[0]; ((Material)val10).SetTexture("_EmissionMap", (Texture)(object)((obj6 is Texture2D) ? obj6 : null)); material2.SetColor("_EmissionColor", new Color(0f, 0f, 0f, 1f)); ? val11 = material3; Object obj7 = array2[0]; ((Material)val11).SetTexture("_MainTex", (Texture)(object)((obj7 is Texture2D) ? obj7 : null)); material3.EnableKeyword("_EMISSION"); ? val12 = material3; Object obj8 = array2[0]; ((Material)val12).SetTexture("_EmissionMap", (Texture)(object)((obj8 is Texture2D) ? obj8 : null)); material3.SetColor("_EmissionColor", new Color(0f, 0f, 0f, 1f)); GameObject val13 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/bleachCape.prefab"); val13.transform.localScale = new Vector3(1.5f, 2.3f, 1.5f); Shawesomes_Infinite_Multiverse.CopyIntoParent(val13.transform.Find("attach_Hips"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val13.transform.Find("attach_Spine2"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val13.transform.Find("attach_Head"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val13.transform.Find("attach_skin"), transform); } private static SE_Stats AddReaperEffects(Sprite sprite) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) SE_Stats val = ScriptableObject.CreateInstance(); ((StatusEffect)val).m_icon = sprite; ((Object)val).name = "ReaperEffect"; ((StatusEffect)val).m_name = "Shunpo"; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "Change is Inevitable..."; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "That's just the way it is..."; val.m_fallDamageModifier = -1f; ((StatusEffect)val).m_attributes = (StatusAttribute)1; ((StatusEffect)val).m_tooltip = "A movement technique that, when mastered, allows the user to move faster than the eye can follow in as little as one step..."; val.m_jumpModifier = new Vector3(6f, 0.1f, 6f); val.m_speedModifier = 0.5f; val.m_jumpStaminaUseModifier = -0.8f; return val; } public static void AddNaruto() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("SanDemonShukaku", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesome1/KageBunshinnoJutsu.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddGaaraCape() { //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016a: 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 or missing references) //IL_018d: 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) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01c1: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ilyseirrafaawadanh", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("SanDemonShukaku", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "Seal of Shukaku"; itemData.m_shared.m_description = "Legends say it was the Magics of the Sage Sir Parry Alot who sealed the Enraged spirit away, for its own saftey and peace..."; itemData.m_shared.m_armor = 40f; itemData.m_shared.m_armorPerLevel = 8f; itemData.m_shared.m_maxDurability = 9001f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 1f; itemData.m_shared.m_itemType = (ItemType)17; DamageModPair item = default(DamageModPair); item.m_modifier = (DamageModifier)0; item.m_type = (DamageType)32; itemData.m_shared.m_damageModifiers.Add(item); DamageModPair item2 = default(DamageModPair); item2.m_modifier = (DamageModifier)0; item2.m_type = (DamageType)4; itemData.m_shared.m_damageModifiers.Add(item2); DamageModPair item3 = default(DamageModPair); item3.m_modifier = (DamageModifier)1; item3.m_type = (DamageType)2; itemData.m_shared.m_damageModifiers.Add(item3); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/Shawesome/gourdicon.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)SandEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("SanDemonShukaku").transform; Object[] array2 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmrobe_e.png"); Object[] array3 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeDBZ/IronArmorLegs_d_GOGETA.png"); Object[] array4 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTrobe_m.png"); Object[] array5 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_d.png"); Object[] array6 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeDBZ/LeatherArmourChest_d_GOGETA.png"); Object[] array7 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_bm.png"); Object[] array8 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_D.png"); Object[] array9 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmcape_e.png"); Object[] array10 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_M.png"); GameObject val3 = Shawcassets.LoadAsset("Assets/Shawesome1/SanDemonShukaku.prefab"); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_Spine2"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_skin"), transform); } private static SE_Stats SandEffect(Sprite sprite) { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_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) SE_Stats val = ScriptableObject.CreateInstance(); ((Object)val).name = "SandyEffect"; ((StatusEffect)val).m_name = "Jinchūriki 1"; ((StatusEffect)val).m_category = "Tailed Beast"; ((StatusEffect)val).m_tooltip = "Your ability to control Sand lets you jump higher and take no fall damage..."; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "LET ME FEEL ALIVE!!"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "Shukaku slumbers..."; ((StatusEffect)val).m_icon = sprite; val.m_fallDamageModifier = -1f; val.m_jumpModifier = new Vector3(1f, 0.5f, 0f); return val; } public static void Addgaara() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DatGoodSHT", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesome1/ilyseirrafaawadanh.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addshawesomeboat() { //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_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: 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("IronNails", 200, 0, false)); val.AddRequirement(new RequirementConfig("ElderBark", 100, 0, false)); val.AddRequirement(new RequirementConfig("BlackMetal", 100, 0, false)); val.AddRequirement(new RequirementConfig("FlametalNew", 100, 0, false)); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeGOW/Skidbladnir.prefab"); val2.AddComponent(); CustomPiece val3 = new CustomPiece(val2, true, val); PieceManager.Instance.AddPiece(val3); } public static void AddMPSoul() { //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01b6: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GodlyHandygo", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("PharoahSoulAtem", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "Millennium Puzzle"; itemData.m_shared.m_description = "Retrieved from the Tomb of the Nameless Pharaoh, This Relic holds the Power of the Shadow Realms and the Light of Hope..."; itemData.m_shared.m_armor = 40f; itemData.m_shared.m_armorPerLevel = 10f; itemData.m_shared.m_maxDurability = 9001f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 2f; itemData.m_shared.m_attackForce = 50f; itemData.m_shared.m_movementModifier = 0.1f; itemData.m_shared.m_equipDuration = 0.01f; itemData.m_shared.m_itemType = (ItemType)18; 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/ygospiriticon.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)plotarmorEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("PharoahSoulAtem").transform; Object[] array2 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmrobe_e.png"); Object[] array3 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeDBZ/IronArmorLegs_d_GOGETA.png"); Object[] array4 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTrobe_m.png"); Object[] array5 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_d.png"); Object[] array6 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeDBZ/LeatherArmourChest_d_GOGETA.png"); Object[] array7 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_bm.png"); Object[] array8 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_D.png"); Object[] array9 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmcape_e.png"); Object[] array10 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_M.png"); GameObject val3 = Shawcassets.LoadAsset("Assets/Shawesome1/PharoahSoulAtem.prefab"); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_Hips"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_Spine2"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_skin"), transform); } private static SE_Stats plotarmorEffect(Sprite sprite) { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) SE_Stats val = ScriptableObject.CreateInstance(); ((Object)val).name = "YGOEffect"; ((StatusEffect)val).m_name = "King of Games"; ((StatusEffect)val).m_category = "King"; ((StatusEffect)val).m_tooltip = "Only the Champion of the Duelest Kingdom may lay claim to such a Title..."; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "Your confidence swells from within, you can do this!"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "...Did I get shorter?..."; ((StatusEffect)val).m_icon = sprite; val.m_fallDamageModifier = -1f; return val; } public static void Addssj5fusion() { //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) //IL_0216: Unknown result type (might be due to invalid IL or missing references) //IL_0226: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invalid IL or missing references) //IL_025b: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Unknown result type (might be due to invalid IL or missing references) //IL_028a: Unknown result type (might be due to invalid IL or missing references) //IL_0293: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Unknown result type (might be due to invalid IL or missing references) //IL_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02be: Unknown result type (might be due to invalid IL or missing references) //IL_02c6: Unknown result type (might be due to invalid IL or missing references) //IL_02d6: Unknown result type (might be due to invalid IL or missing references) //IL_031e: Unknown result type (might be due to invalid IL or missing references) //IL_03aa: Unknown result type (might be due to invalid IL or missing references) //IL_04af: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("bbkmhmhsb", 1, 0, false)); val.AddRequirement(new RequirementConfig("DatGoodSHT", 1, 0, false)); val.AddRequirement(new RequirementConfig("Kiblastkam", 1, 0, false)); val.AddRequirement(new RequirementConfig("Spheredsss", 1, 0, false)); val.AddRequirement(new RequirementConfig("TurtleHermitQloud", 1, 0, false)); val.AddRequirement(new RequirementConfig("Demister", 1, 0, false)); val.AddRequirement(new RequirementConfig("Itsover9000", 1, 0, false)); val.CraftingStation = CraftingStations.BlackForge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("SSJ5Fusion", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "SSJ5 Ultra Instinct"; itemData.m_shared.m_description = "...You have reached it... The Zenith of the Universe..."; itemData.m_shared.m_armor = 100f; itemData.m_shared.m_armorPerLevel = 10f; itemData.m_shared.m_maxDurability = 10000f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 999f; itemData.m_shared.m_attackForce = 1500f; itemData.m_shared.m_useDurability = true; itemData.m_shared.m_useDurabilityDrain = 1f; itemData.m_shared.m_durabilityDrain = 299f; itemData.m_shared.m_canBeReparied = true; itemData.m_shared.m_destroyBroken = false; itemData.m_shared.m_movementModifier = 1.5f; itemData.m_shared.m_equipDuration = 0.01f; itemData.m_shared.m_itemType = (ItemType)18; DamageModPair item = default(DamageModPair); item.m_modifier = (DamageModifier)3; item.m_type = (DamageType)256; itemData.m_shared.m_damageModifiers.Add(item); DamageModPair item2 = default(DamageModPair); item2.m_modifier = (DamageModifier)3; item2.m_type = (DamageType)32; itemData.m_shared.m_damageModifiers.Add(item2); DamageModPair item3 = default(DamageModPair); item3.m_modifier = (DamageModifier)3; item3.m_type = (DamageType)4; itemData.m_shared.m_damageModifiers.Add(item3); DamageModPair item4 = default(DamageModPair); item4.m_modifier = (DamageModifier)3; item4.m_type = (DamageType)128; itemData.m_shared.m_damageModifiers.Add(item4); DamageModPair item5 = default(DamageModPair); item5.m_modifier = (DamageModifier)3; item5.m_type = (DamageType)2; itemData.m_shared.m_damageModifiers.Add(item5); DamageModPair item6 = default(DamageModPair); item6.m_modifier = (DamageModifier)3; item6.m_type = (DamageType)1; itemData.m_shared.m_damageModifiers.Add(item6); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/Shawesome/ssj5icon1.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)UIEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("SSJ5Fusion").transform; Transform transform2 = ((Component)PrefabManager.Instance.GetPrefab("ArmorIronLegs").transform.Find("attach_skin")).transform; Transform transform3 = ((Component)transform2.Find("SilverWolfArmor_Legs.001")).transform; Transform val3 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform3, transform); SkinnedMeshRenderer component = ((Component)val3).GetComponent(); Material material = ((Renderer)component).material; material.color = Color.white; Object[] array2 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmrobe_e.png"); Object[] array3 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeDBZ/IronArmorLegs_d_GOGETA.png"); Object[] array4 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTrobe_m.png"); Object[] array5 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_d.png"); Object[] array6 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeDBZ/LeatherArmourChest_d_GOGETA.png"); Object[] array7 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_bm.png"); Object[] array8 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_D.png"); Object[] array9 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmcape_e.png"); Object[] array10 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_M.png"); ? val4 = material; Object obj3 = array3[0]; ((Material)val4).SetTexture("_MainTex", (Texture)(object)((obj3 is Texture2D) ? obj3 : null)); material.EnableKeyword("_EMISSION"); ? val5 = material; Object obj4 = array3[0]; ((Material)val5).SetTexture("_EmissionMap", (Texture)(object)((obj4 is Texture2D) ? obj4 : null)); material.EnableKeyword("_Metallic"); material.SetColor("_EmissionColor", new Color(0f, 0f, 0f, 1f)); ? val6 = material; Object obj5 = array3[0]; ((Material)val6).SetTexture("_MetallicGlossMap", (Texture)(object)((obj5 is Texture2D) ? obj5 : null)); GameObject val7 = Shawcassets.LoadAsset("Assets/ShawesomeDBZ/SSJ5Fusion.prefab"); Shawesomes_Infinite_Multiverse.CopyIntoParent(val7.transform.Find("attach_Hips"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val7.transform.Find("attach_Spine2"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val7.transform.Find("attach_Head"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val7.transform.Find("attach_skin"), transform); } private static SE_Stats UIEffect(Sprite sprite) { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0090: 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_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) SE_Stats val = ScriptableObject.CreateInstance(); ((Object)val).name = "SS5Effect"; ((StatusEffect)val).m_name = "Ultra Instinct"; ((StatusEffect)val).m_category = "GOD"; ((StatusEffect)val).m_tooltip = "Go further than you have ever gone before..."; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "HHHHHHHHHHAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "Can't Maintain that state for too long..."; ((StatusEffect)val).m_icon = sprite; val.m_maxMaxFallSpeed = 7f; val.m_fallDamageModifier = -1f; val.m_staminaRegenMultiplier = 1100f; val.m_jumpModifier = new Vector3(0f, 2f, 0f); val.m_skillLevel = (SkillType)999; val.m_skillLevelModifier = 100f; val.m_healthRegenMultiplier = 111f; ((StatusEffect)val).m_attributes = (StatusAttribute)2; return val; } public static void Addultimatedragon() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown CreatureConfig val = new CreatureConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesomeygo/ShawUltimateDragon.prefab"); CustomCreature val3 = new CustomCreature(val2, true, val); CreatureManager.Instance.AddCreature(val3); } public static void AddBEmount() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("KaibaHandygo", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesomeygo/Ancientstoneoflegend.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addkaibahand() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("IT2Duel", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesomeygo/KaibaHandygo.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddHeartotc() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("IT2Duel", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesome1/GodlyHandygo.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddIT2Duel() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("TrophySerpent", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesome1/IT2Duel.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddSpacePod() { //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_0159: 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) //IL_019d: 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_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_022c: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_0248: Unknown result type (might be due to invalid IL or missing references) //IL_0252: Unknown result type (might be due to invalid IL or missing references) //IL_025b: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Unknown result type (might be due to invalid IL or missing references) //IL_0273: Unknown result type (might be due to invalid IL or missing references) //IL_02bb: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Itsover9000", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("Spheredsss", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "Saiyan Pod"; itemData.m_shared.m_description = "...Great on Gas..."; itemData.m_shared.m_armor = 10f; itemData.m_shared.m_armorPerLevel = 10f; itemData.m_shared.m_maxDurability = 9001f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 11f; itemData.m_shared.m_helmetHideHair = (HelmetHairType)1; itemData.m_shared.m_durabilityDrain = 100f; 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); DamageModPair item2 = default(DamageModPair); item2.m_modifier = (DamageModifier)3; item2.m_type = (DamageType)32; itemData.m_shared.m_damageModifiers.Add(item2); DamageModPair item3 = default(DamageModPair); item3.m_modifier = (DamageModifier)3; item3.m_type = (DamageType)4; itemData.m_shared.m_damageModifiers.Add(item3); DamageModPair item4 = default(DamageModPair); item4.m_modifier = (DamageModifier)3; item4.m_type = (DamageType)128; itemData.m_shared.m_damageModifiers.Add(item4); DamageModPair item5 = default(DamageModPair); item5.m_modifier = (DamageModifier)3; item5.m_type = (DamageType)2; itemData.m_shared.m_damageModifiers.Add(item5); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/Shawesome/SPodIcon1.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)SpacePodEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("Spheredsss").transform; GameObject val3 = Shawcassets.LoadAsset("Assets/Shawesome1/Spheredsss.prefab"); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_skin"), transform); } private static SE_Stats SpacePodEffect(Sprite sprite) { //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 = ScriptableObject.CreateInstance(); ((Object)val).name = "SpacePod"; ((StatusEffect)val).m_name = "UFO"; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "...Are we there yet?!"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "Finally!"; ((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 Addbbksb() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Itsover9000", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesome/bbkmhmhsb.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddSENZU() { //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_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Dandelion", 100, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/Shawesome/DatGoodSHT.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Add7sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/EtaSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("Fader"); prefab.GetComponent().m_drops.Add(val4); } public static void Add6sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/ZetaSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("SeekerQueen"); prefab.GetComponent().m_drops.Add(val4); } public static void Add5sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/EpsilonSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("GoblinKing"); prefab.GetComponent().m_drops.Add(val4); } public static void Add4sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/DeltaSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("Dragon"); prefab.GetComponent().m_drops.Add(val4); } public static void Add3sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/GammaSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("Bonemass"); prefab.GetComponent().m_drops.Add(val4); } public static void Add2sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/BetaSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("gd_king"); prefab.GetComponent().m_drops.Add(val4); } public static void Add1sdb() { //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 //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown ItemConfig val = new ItemConfig(); GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/AlphaSun.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); Drop val4 = new Drop(); val4.m_chance = 0.1f; val4.m_dontScale = true; val4.m_levelMultiplier = false; val4.m_prefab = PrefabManager.Instance.GetPrefab(((Object)val3.ItemPrefab).name); GameObject prefab = PrefabManager.Instance.GetPrefab("Eikthyr"); prefab.GetComponent().m_drops.Add(val4); } public static void AddKIBLAST1() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Kiblastkam", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/TrueKmhmh.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void AddKIBLAST() { //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("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Itsover9000", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; GameObject val2 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/Kiblastkam.prefab"); CustomItem val3 = new CustomItem(val2, true, val); ItemManager.Instance.AddItem(val3); } public static void Addperveysagecloud() { //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_018d: 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) //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("Itsover9000", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("TurtleHermitQloud", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "Nimbus"; itemData.m_shared.m_description = "...The legendary Somersault Cloud can only be mastered by those Pure of Heart..."; itemData.m_shared.m_armor = 10f; itemData.m_shared.m_armorPerLevel = 10f; itemData.m_shared.m_maxDurability = 9001f; 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); DamageModPair item2 = default(DamageModPair); item2.m_modifier = (DamageModifier)3; item2.m_type = (DamageType)32; itemData.m_shared.m_damageModifiers.Add(item2); DamageModPair item3 = default(DamageModPair); item3.m_modifier = (DamageModifier)3; item3.m_type = (DamageType)4; itemData.m_shared.m_damageModifiers.Add(item3); DamageModPair item4 = default(DamageModPair); item4.m_modifier = (DamageModifier)3; item4.m_type = (DamageType)128; itemData.m_shared.m_damageModifiers.Add(item4); DamageModPair item5 = default(DamageModPair); item5.m_modifier = (DamageModifier)3; item5.m_type = (DamageType)2; itemData.m_shared.m_damageModifiers.Add(item5); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/Nimbusicon.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)CloudEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("TurtleHermitQloud").transform; GameObject val3 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/Nimbus.prefab"); Shawesomes_Infinite_Multiverse.CopyIntoParent(val3.transform.Find("attach_skin"), transform); } private static SE_Stats CloudEffect(Sprite sprite) { //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 = ScriptableObject.CreateInstance(); ((Object)val).name = "CloudEffect"; ((StatusEffect)val).m_name = "Kinto'un"; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "Nimbus Come to me!"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "Thank you Nimbus!"; ((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 AddItsover9000() { //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_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Unknown result type (might be due to invalid IL or missing references) //IL_0215: Unknown result type (might be due to invalid IL or missing references) //IL_021f: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0231: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Unknown result type (might be due to invalid IL or missing references) //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_02b8: Unknown result type (might be due to invalid IL or missing references) //IL_03c3: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_04df: Unknown result type (might be due to invalid IL or missing references) //IL_0561: Unknown result type (might be due to invalid IL or missing references) ItemConfig val = new ItemConfig(); val.AddRequirement(new RequirementConfig("AlphaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("BetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("GammaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DeltaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("EpsilonSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("ZetaSun", 1, 0, false)); val.AddRequirement(new RequirementConfig("DatGoodSHT", 1, 0, false)); val.AddRequirement(new RequirementConfig("EtaSun", 1, 0, false)); val.CraftingStation = CraftingStations.Forge; val.MinStationLevel = 1; CustomItem val2 = new CustomItem("Itsover9000", "Demister", val); ItemManager.Instance.AddItem(val2); ItemDrop itemDrop = val2.ItemDrop; ItemData itemData = itemDrop.m_itemData; itemData.m_shared.m_name = "SSJ2"; itemData.m_shared.m_description = "...This is what is known as a super saiyan that has ascended above a super saiyan. or, you could just call this a super saiyan two..."; itemData.m_shared.m_armor = 10f; itemData.m_shared.m_armorPerLevel = 10f; itemData.m_shared.m_maxDurability = 9001f; itemData.m_shared.m_useDurability = true; itemData.m_shared.m_useDurabilityDrain = 1f; itemData.m_shared.m_durabilityDrain = 37.5f; itemData.m_shared.m_maxQuality = 4; itemData.m_shared.m_eitrRegenModifier = 11f; itemData.m_shared.m_helmetHideHair = (HelmetHairType)1; itemData.m_shared.m_canBeReparied = true; itemData.m_shared.m_destroyBroken = false; itemData.m_shared.m_movementModifier = 1f; itemData.m_shared.m_equipDuration = 0.01f; Material val3 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/GokuChestMat.mat"); itemData.m_shared.m_armorMaterial = val3; itemData.m_shared.m_itemType = (ItemType)18; DamageModPair item = default(DamageModPair); item.m_modifier = (DamageModifier)1; item.m_type = (DamageType)256; itemData.m_shared.m_damageModifiers.Add(item); DamageModPair item2 = default(DamageModPair); item2.m_modifier = (DamageModifier)1; item2.m_type = (DamageType)32; itemData.m_shared.m_damageModifiers.Add(item2); DamageModPair item3 = default(DamageModPair); item3.m_modifier = (DamageModifier)1; item3.m_type = (DamageType)128; itemData.m_shared.m_damageModifiers.Add(item3); Object[] array = Shawcassets.LoadAssetWithSubAssets("Assets/Shawesome/ssj2iconnew.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)BeyondEffect((Sprite)(object)((obj2 is Sprite) ? obj2 : null)); Transform transform = new GameObject().transform; ((Object)transform).name = "attach_skin"; transform.parent = PrefabManager.Instance.GetPrefab("Itsover9000").transform; Transform transform2 = ((Component)PrefabManager.Instance.GetPrefab("ArmorLeatherChest").transform.Find("attach_skin")).transform; Transform transform3 = ((Component)transform2.Find("shorts")).transform; Transform val4 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform3, transform); Transform transform4 = PrefabManager.Instance.GetPrefab("body").transform; Transform val5 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform4, transform); Transform transform5 = ((Component)PrefabManager.Instance.GetPrefab("ArmorIronLegs").transform.Find("attach_skin")).transform; Transform transform6 = ((Component)transform5.Find("SilverWolfArmor_Legs.001")).transform; Transform val6 = Shawesomes_Infinite_Multiverse.CopyIntoParent(transform6, transform); SkinnedMeshRenderer component = ((Component)val4).GetComponent(); SkinnedMeshRenderer component2 = ((Component)val6).GetComponent(); SkinnedMeshRenderer component3 = ((Component)val5).GetComponent(); Material material = ((Renderer)component).material; Material material2 = ((Renderer)component2).material; material.color = Color.white; material2.color = Color.white; Object[] array2 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmrobe_e.png"); Object[] array3 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/IronArmorLegs_d_GOKU.png"); Object[] array4 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTrobe_m.png"); Object[] array5 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_d.png"); Object[] array6 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/LeatherArmourChest_d_GOKU.png"); Object[] array7 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NThood_bm.png"); Object[] array8 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_D.png"); Object[] array9 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/jmcape_e.png"); Object[] array10 = Shawcassets.LoadAssetWithSubAssets("Assets/ShawesomeCapeimage/NTCape_M.png"); ((Renderer)component3).material = val3; ? val7 = material; Object obj3 = array6[0]; ((Material)val7).SetTexture("_ChestTex", (Texture)(object)((obj3 is Texture2D) ? obj3 : null)); material.EnableKeyword("_EMISSION"); material.EnableKeyword("_Metallic"); ? val8 = material; Object obj4 = array6[0]; ((Material)val8).SetTexture("_EmissionMap", (Texture)(object)((obj4 is Texture2D) ? obj4 : null)); material.SetColor("_EmissionColor", new Color(0f, 0f, 0f, 1f)); ? val9 = material; Object obj5 = array6[0]; ((Material)val9).SetTexture("_MetallicGlossMap", (Texture)(object)((obj5 is Texture2D) ? obj5 : null)); ? val10 = material2; Object obj6 = array3[0]; ((Material)val10).SetTexture("_MainTex", (Texture)(object)((obj6 is Texture2D) ? obj6 : null)); material2.EnableKeyword("_EMISSION"); ? val11 = material; Object obj7 = array3[0]; ((Material)val11).SetTexture("_EmissionMap", (Texture)(object)((obj7 is Texture2D) ? obj7 : null)); material2.EnableKeyword("_Metallic"); material2.SetColor("_EmissionColor", new Color(0f, 0f, 0f, 1f)); ? val12 = material2; Object obj8 = array3[0]; ((Material)val12).SetTexture("_MetallicGlossMap", (Texture)(object)((obj8 is Texture2D) ? obj8 : null)); GameObject val13 = Shawcassets.LoadAsset("Assets/ShawesomeCapeimage/SSJ.prefab"); Shawesomes_Infinite_Multiverse.CopyIntoParent(val13.transform.Find("attach_Head"), transform.parent); Shawesomes_Infinite_Multiverse.CopyIntoParent(val13.transform.Find("attach_skin"), transform); } private static SE_Stats BeyondEffect(Sprite sprite) { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0090: 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_00a0: Unknown result type (might be due to invalid IL or missing references) SE_Stats val = ScriptableObject.CreateInstance(); ((Object)val).name = "SSEffect"; ((StatusEffect)val).m_name = "The Great Sage, Heaven's Equal."; ((StatusEffect)val).m_category = "Indomitable Spirt"; ((StatusEffect)val).m_tooltip = "One Must be Pure of Heart to Achieve this state of True Enlightenment..."; ((StatusEffect)val).m_startMessageType = (MessageType)2; ((StatusEffect)val).m_startMessage = "HHHHHHHAAAAAAAHHHHH!!!!"; ((StatusEffect)val).m_stopMessageType = (MessageType)2; ((StatusEffect)val).m_stopMessage = "You're Tired and Hungry... You could use a Senzu..."; ((StatusEffect)val).m_icon = sprite; val.m_fallDamageModifier = -1f; val.m_maxMaxFallSpeed = 11f; val.m_staminaRegenMultiplier = 110f; val.m_jumpModifier = new Vector3(0f, 1f, 0f); val.m_skillLevel = (SkillType)999; val.m_skillLevelModifier = 40f; val.m_healthRegenMultiplier = 11f; return val; } public static T CopyIntoParent(T go, T parent) where T : Component { //IL_0055: Unknown result type (might be due to invalid IL or missing references) T val = Object.Instantiate(go); ((Object)(object)val).name = ((Object)(object)go).name; ((Component)val).transform.parent = ((Component)parent).transform; ((Component)val).transform.localPosition = new Vector3(0f, 0f, 0f); return val; } } public static class SimpleMountController { public class AttackMapping { public KeyCode Key { get; set; } public int AttackIndex { get; set; } = -1; public string? AttackPrefab { get; set; } = null; public float StaminaCost { get; set; } = 0f; public float Cooldown { get; set; } = 0.5f; } public class CreatureAttackConfig { public List? GroundAttacks { get; set; } public List? AirAttacks { get; set; } } [HarmonyPatch(typeof(Player), "SetControls")] [HarmonyPriority(800)] public static class MountControlsPatch { private static List? s_cachedWeapons; private static float s_lastWeaponCacheTime; private const float WEAPON_CACHE_DURATION = 1f; private static void Prefix(Player __instance, ref bool attack, ref bool secondaryAttack, ref bool block, ref bool jump) { //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) //IL_0187: Invalid comparison between Unknown and I4 //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Invalid comparison between Unknown and I4 //IL_01c2: Unknown result type (might be due to invalid IL or missing references) if (!((Character)__instance).IsRiding()) { return; } IDoodadController doodadController = __instance.m_doodadController; Sadle val = (Sadle)(object)((doodadController is Sadle) ? doodadController : null); if ((Object)(object)val == (Object)null || (Object)(object)val.m_character == (Object)null) { return; } string text = ((Object)((Component)val.m_character).gameObject).name.Replace("(Clone)", "").Trim(); if (!ManagedCreatures.Contains(text)) { return; } if (IsUIOpen()) { s_flightKeyPressed = false; s_attackKeysPressed.Clear(); attack = false; secondaryAttack = false; jump = false; return; } if (CanFly(val) && GetFlightKeyDown()) { ToggleFlight(val); } bool flag = CanFly(val) && val.m_character.IsFlying(); if (flag & jump) { jump = false; } if (jump && !flag) { val.m_character.Jump(false); jump = false; } if (AttackConfigs.TryGetValue(text, out CreatureAttackConfig value)) { List list = (flag ? value.AirAttacks : value.GroundAttacks); if (list == null) { return; } foreach (AttackMapping item in list) { if (!GetAttackKeyDown(item.Key) && !(((int)item.Key == 323) & attack) && !(((int)item.Key == 324) & block)) { continue; } string key = $"{((object)val).GetHashCode()}_{item.Key}"; if (s_attackCooldowns.TryGetValue(key, out var value2) && Time.time < value2) { break; } if (item.StaminaCost > 0f && !HasEnoughStamina(val, item.StaminaCost)) { Player localPlayer = Player.m_localPlayer; if (localPlayer != null) { ((Character)localPlayer).Message((MessageType)2, "Not enough stamina!", 0, (Sprite)null); } break; } int attackIndex = ResolveAttackIndex(val, item, flag); if (item.StaminaCost > 0f) { ConsumeStamina(val, item.StaminaCost); } HandleAttack(val, attackIndex); s_attackCooldowns[key] = Time.time + item.Cooldown; break; } } attack = false; secondaryAttack = false; block = false; } private static bool IsUIOpen() { return ((Object)(object)Chat.instance != (Object)null && Chat.instance.HasFocus()) || Console.IsVisible() || TextInput.IsVisible() || Menu.IsVisible() || InventoryGui.IsVisible() || StoreGui.IsVisible() || Minimap.IsOpen(); } private static void ToggleFlight(Sadle sadle) { if ((Object)(object)sadle == (Object)null || (Object)(object)sadle.m_character == (Object)null) { return; } sadle.m_character.m_flying = !sadle.m_character.m_flying; if ((Object)(object)sadle.m_character.m_animator != (Object)null) { if (sadle.m_character.m_flying) { sadle.m_character.m_animator.SetTrigger(TakeoffAnimationTrigger); } else { sadle.m_character.m_animator.SetTrigger(LandingAnimationTrigger); } } string text = (sadle.m_character.m_flying ? "Flight enabled" : "Flight disabled"); Player localPlayer = Player.m_localPlayer; if (localPlayer != null) { ((Character)localPlayer).Message((MessageType)2, text, 0, (Sprite)null); } } private static List? GetWeaponsList(Sadle sadle) { if (s_cachedWeapons != null && Time.time - s_lastWeaponCacheTime < 1f) { return s_cachedWeapons; } if ((Object)(object)sadle == (Object)null || (Object)(object)sadle.m_character == (Object)null) { return null; } Character character = sadle.m_character; Humanoid val = (Humanoid)(object)((character is Humanoid) ? character : null); if ((Object)(object)val == (Object)null) { return null; } Inventory inventory = val.GetInventory(); if (inventory == null) { return null; } s_cachedWeapons = new List(); foreach (ItemData allItem in inventory.GetAllItems()) { if (allItem != null && allItem.IsWeapon()) { s_cachedWeapons.Add(allItem); } } s_lastWeaponCacheTime = Time.time; return s_cachedWeapons; } private static int ResolveAttackIndex(Sadle sadle, AttackMapping mapping, bool isFlying) { if ((Object)(object)sadle == (Object)null || mapping == null) { return isFlying ? 4 : 0; } if (mapping.AttackIndex >= 0) { return mapping.AttackIndex; } if (!string.IsNullOrEmpty(mapping.AttackPrefab)) { List weaponsList = GetWeaponsList(sadle); if (weaponsList != null && weaponsList.Count > 0) { for (int i = 0; i < weaponsList.Count; i++) { if (weaponsList[i] != null && !((Object)(object)weaponsList[i].m_dropPrefab == (Object)null)) { string name = ((Object)weaponsList[i].m_dropPrefab).name; if (!string.IsNullOrEmpty(name) && name.IndexOf(mapping.AttackPrefab, StringComparison.OrdinalIgnoreCase) >= 0) { return i; } } } } } return isFlying ? 4 : 0; } private static void HandleAttack(Sadle sadle, int attackIndex) { if ((Object)(object)sadle == (Object)null || (Object)(object)sadle.m_character == (Object)null) { return; } Character character = sadle.m_character; Humanoid val = (Humanoid)(object)((character is Humanoid) ? character : null); if ((Object)(object)val != (Object)null) { List weaponsList = GetWeaponsList(sadle); if (weaponsList != null && weaponsList.Count > 0) { ItemData val2 = null; if (attackIndex >= 0 && attackIndex < weaponsList.Count) { val2 = weaponsList[attackIndex]; } else if (weaponsList.Count > 0) { val2 = weaponsList[0]; } if (val2 != null) { val.EquipItem(val2, true); ((Character)val).StartAttack((Character)null, false); } } } else if ((Object)(object)sadle.m_monsterAI != (Object)null) { bool flag = attackIndex > 0; sadle.m_monsterAI.DoAttack((Character)null, flag); } } private static bool HasEnoughStamina(Sadle sadle, float staminaCost) { if ((Object)(object)sadle == (Object)null) { return false; } ZNetView nview = sadle.m_nview; int? obj; if (nview == null) { obj = null; } else { ZDO zDO = nview.GetZDO(); obj = ((zDO != null) ? new int?(zDO.GetInt(ZDOVars.s_dataCount, 0)) : null); } int? num = obj; if (!num.HasValue) { return false; } float stamina = sadle.GetStamina(); return stamina >= staminaCost; } private static void ConsumeStamina(Sadle sadle, float staminaCost) { if (!((Object)(object)sadle == (Object)null)) { sadle.UseStamina(staminaCost); } } } [HarmonyPatch(typeof(Sadle), "ApplyControlls")] public static class FlightControlPatch { private static void Postfix(Sadle __instance, ref Vector3 moveDir, ref Vector3 lookDir, ref bool run, ref bool block) { //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_0081: 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_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Invalid comparison between Unknown and I4 //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0128: Expected I4, but got Unknown //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Invalid comparison between Unknown and I4 //IL_00d1: 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) if ((Object)(object)Player.m_localPlayer == (Object)null || !CanFly(__instance) || (Object)(object)__instance.m_character == (Object)null || !__instance.m_character.m_flying) { return; } float skillFactor = ((Character)Player.m_localPlayer).GetSkills().GetSkillFactor((SkillType)110); Vector3 val = lookDir; val.y = 0f; ((Vector3)(ref val)).Normalize(); Speed val2 = (Speed)4; if (run) { val2 = (Speed)2; } else if (moveDir.z > 0.5f) { val2 = (Speed)1; } if (Input.GetKey(AscendKey)) { val.y = AscendSpeed / 10f; if ((int)val2 == 4) { val2 = (Speed)1; } } else if (Input.GetKey(DescendKey)) { val.y = (0f - DescendSpeed) / 10f; if ((int)val2 == 4) { val2 = (Speed)1; } } __instance.m_nview.InvokeRPC("Controls", new object[3] { val, (int)val2, skillFactor }); } } [HarmonyPatch(typeof(Sadle), "UseItem")] public static class EnableFlightOnMount { private static void Postfix(Sadle __instance, bool __result) { if (__result && CanFly(__instance) && (Object)(object)__instance.m_character != (Object)null) { __instance.m_character.m_flying = true; } } } [HarmonyPatch(typeof(Sadle), "OnUseStop")] public static class DisableFlightOnDismount { private static void Prefix(Sadle __instance) { if (CanFly(__instance) && (Object)(object)__instance.m_character != (Object)null) { __instance.m_character.m_flying = false; } } } [HarmonyPatch(typeof(Player), "Update")] public static class InputUpdatePatch { private static bool s_cameraActive; private static float s_savedMaxDistance; private static void Postfix(Player __instance) { //IL_0107: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance != (Object)(object)Player.m_localPlayer) { return; } if (((Character)__instance).IsRiding()) { IDoodadController doodadController = __instance.m_doodadController; Sadle val = (Sadle)(object)((doodadController is Sadle) ? doodadController : null); if (!((Object)(object)val != (Object)null) || !((Object)(object)val.m_character != (Object)null)) { return; } string item = ((Object)((Component)val.m_character).gameObject).name.Replace("(Clone)", "").Trim(); if (!ManagedCreatures.Contains(item)) { return; } UpdateInput(); if (!s_cameraActive && (Object)(object)GameCamera.instance != (Object)null) { s_savedMaxDistance = GameCamera.instance.m_maxDistance; GameCamera.instance.m_maxDistance = CameraMaxDistance; GameCamera.instance.m_distance = Mathf.Clamp(GameCamera.instance.m_distance, CameraMinDistance, CameraMaxDistance); s_cameraActive = true; } if ((Object)(object)GameCamera.instance != (Object)null) { float y = Input.mouseScrollDelta.y; if (y != 0f) { GameCamera instance = GameCamera.instance; instance.m_distance -= y * 2f; GameCamera.instance.m_distance = Mathf.Clamp(GameCamera.instance.m_distance, CameraMinDistance, CameraMaxDistance); } } } else if (s_cameraActive) { if ((Object)(object)GameCamera.instance != (Object)null) { GameCamera.instance.m_maxDistance = s_savedMaxDistance; } s_cameraActive = false; } } } [HarmonyPatch(typeof(Character), "UpdateGroundContact")] public static class DisableGravityWhileFlying { private static bool Prefix(Character __instance) { if ((Object)(object)__instance == (Object)null) { return true; } if (!__instance.m_flying) { return true; } List allPlayers = Player.GetAllPlayers(); if (allPlayers == null) { return true; } foreach (Player item in allPlayers) { if (!((Object)(object)item == (Object)null) && ((Character)item).IsRiding()) { IDoodadController doodadController = item.m_doodadController; Sadle val = (Sadle)(object)((doodadController is Sadle) ? doodadController : null); if (!((Object)(object)val == (Object)null) && !((Object)(object)val.m_character != (Object)(object)__instance) && CanFly(val)) { return false; } } } return true; } } [HarmonyPatch(typeof(Character), "CustomFixedUpdate")] public static class FlyingPhysicsPatch { private static void Postfix(Character __instance) { //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: 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_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0118: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance == (Object)null || !__instance.m_flying || (Object)(object)__instance.m_body == (Object)null) { return; } List allPlayers = Player.GetAllPlayers(); if (allPlayers == null) { return; } foreach (Player item in allPlayers) { if (!((Object)(object)item == (Object)null) && ((Character)item).IsRiding()) { IDoodadController doodadController = item.m_doodadController; Sadle val = (Sadle)(object)((doodadController is Sadle) ? doodadController : null); if (!((Object)(object)val == (Object)null) && !((Object)(object)val.m_character != (Object)(object)__instance) && CanFly(val) && Mathf.Abs(__instance.m_body.velocity.y) > 25f) { Vector3 velocity = __instance.m_body.velocity; Vector3 val2 = -((Vector3)(ref velocity)).normalized; velocity = __instance.m_body.velocity; Vector3 val3 = val2 * (((Vector3)(ref velocity)).magnitude * 0.02f); __instance.m_body.AddForce(val3, (ForceMode)2); } } } } } public static KeyCode FlightToggleKey = (KeyCode)102; public static KeyCode AscendKey = (KeyCode)32; public static KeyCode DescendKey = (KeyCode)306; public static float AscendSpeed = 10f; public static float DescendSpeed = 10f; public static string TakeoffAnimationTrigger = "fly_takeoff"; public static string LandingAnimationTrigger = "fly_land"; public static float CameraMinDistance = 0f; public static float CameraMaxDistance = 30f; private static readonly Dictionary AttackConfigs = new Dictionary { { "sGundamBarbatos", new CreatureAttackConfig { GroundAttacks = new List { new AttackMapping { Key = (KeyCode)323, AttackPrefab = "barbatos_swing_h", StaminaCost = 10f, Cooldown = 2.5f }, new AttackMapping { Key = (KeyCode)324, AttackPrefab = "barbatos_swing_v", StaminaCost = 10f, Cooldown = 2.5f }, new AttackMapping { Key = (KeyCode)325, AttackPrefab = "gundam_misiles", StaminaCost = 20f, Cooldown = 3f } } } }, { "sGundamExia", new CreatureAttackConfig { GroundAttacks = new List { new AttackMapping { Key = (KeyCode)323, AttackPrefab = "beamsaber_swing_h", StaminaCost = 10f, Cooldown = 2.5f }, new AttackMapping { Key = (KeyCode)324, AttackPrefab = "beamsaber_swing_v", StaminaCost = 10f, Cooldown = 2.5f }, new AttackMapping { Key = (KeyCode)325, AttackPrefab = "gundam_misiles_exia", StaminaCost = 20f, Cooldown = 3f } } } }, { "ShawUltimateDragon", new CreatureAttackConfig { GroundAttacks = new List { new AttackMapping { Key = (KeyCode)323, AttackPrefab = "ultimatedragon_atk_long", StaminaCost = 20f, Cooldown = 3f }, new AttackMapping { Key = (KeyCode)324, AttackPrefab = "ultimatedragon_stomp", StaminaCost = 20f, Cooldown = 3f } }, AirAttacks = new List { new AttackMapping { Key = (KeyCode)323, AttackPrefab = "ultimatedragon_atk_long", StaminaCost = 20f, Cooldown = 3f }, new AttackMapping { Key = (KeyCode)324, AttackPrefab = "ultimatedragon_stomp", StaminaCost = 20f, Cooldown = 3f } } } } }; public static readonly HashSet ManagedCreatures = new HashSet { "sGundamBarbatos", "sGundamExia", "ShawUltimateDragon" }; public static readonly HashSet FlyingCreatures = new HashSet { "ShawUltimateDragon" }; private static bool s_flightKeyPressed = false; private static readonly Dictionary s_attackKeysPressed = new Dictionary(); private static readonly Dictionary s_attackCooldowns = new Dictionary(); private const float ATTACK_COOLDOWN = 0.5f; private static void UpdateInput() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: 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_00e2: Unknown result type (might be due to invalid IL or missing references) if (Input.GetKeyDown(FlightToggleKey)) { s_flightKeyPressed = true; } foreach (CreatureAttackConfig value in AttackConfigs.Values) { if (value.GroundAttacks != null) { foreach (AttackMapping groundAttack in value.GroundAttacks) { if (Input.GetKeyDown(groundAttack.Key)) { s_attackKeysPressed[groundAttack.Key] = true; } } } if (value.AirAttacks == null) { continue; } foreach (AttackMapping airAttack in value.AirAttacks) { if (Input.GetKeyDown(airAttack.Key)) { s_attackKeysPressed[airAttack.Key] = true; } } } } private static bool GetFlightKeyDown() { if (s_flightKeyPressed) { s_flightKeyPressed = false; return true; } return false; } private static bool GetAttackKeyDown(KeyCode key) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) if (s_attackKeysPressed.TryGetValue(key, out var value) && value) { s_attackKeysPressed[key] = false; return true; } return false; } private static bool CanFly(Sadle sadle) { if ((Object)(object)sadle == (Object)null) { return false; } string text = null; if ((Object)(object)sadle.m_monsterAI != (Object)null) { text = ((Object)((Component)sadle.m_monsterAI).gameObject).name.Replace("(Clone)", "").Trim(); } else if ((Object)(object)sadle.m_character != (Object)null) { text = ((Object)((Component)sadle.m_character).gameObject).name.Replace("(Clone)", "").Trim(); } return text != null && FlyingCreatures.Contains(text); } } public static class Utils2 { private const BindingFlags bindingFlags = BindingFlags.Public; public static T GetCopyOf(this Component comp, T other) where T : Component { Type type = ((object)comp).GetType(); if (type != ((object)other).GetType()) { return default(T); } List list = new List(); Type baseType = type.BaseType; while (baseType != null && !(baseType == typeof(MonoBehaviour))) { list.Add(baseType); baseType = baseType.BaseType; } IEnumerable 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 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(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 list = ((Component)parent).GetComponentsInChildren().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(ref val)) { val = ((Component)objectTrans).gameObject.AddComponent(); } 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(meshtomodify); List list = new List(); 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(); 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(); 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(originalMesh); List list = new List(); 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_Infinite_Multiverse.CopyIntoParent(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 static class VanillaShaders { private static bool s_logFilterInitialized; private static bool s_patchInitialized; private static readonly HashSet s_registeredPrefabs = new HashSet(); private static readonly HashSet s_registeredBundles = new HashSet(); private static readonly Dictionary s_shaderCache = new Dictionary(); private static bool s_cacheBuilt; private static HashSet s_processedObjects = new HashSet(); private static int s_totalFixed; public static void RegisterAssetBundle(string bundleName) { s_registeredBundles.Add(bundleName); } public static void RegisterPrefab(string prefabName) { s_registeredPrefabs.Add(prefabName); } public static bool IsRegistered(string prefabName) { return s_registeredPrefabs.Contains(prefabName); } public static void InitLogFilter() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Expected O, but got Unknown if (s_logFilterInitialized) { return; } s_logFilterInitialized = true; ManualLogSource logger = Shawesomes_Infinite_Multiverse.logger; if (logger != null) { logger.LogInfo((object)"[VanillaShaders] Initializing shader fixer..."); } Harmony val = new Harmony("Shawesomes.Multiverse.VanillaShaders"); Type type = Type.GetType("BepInEx.Logging.UnityLogSource, BepInEx"); if (type != null) { MethodInfo method = type.GetMethod("OnUnityLogMessageReceived", BindingFlags.Static | BindingFlags.NonPublic); if (method != null) { val.Patch((MethodBase)method, new HarmonyMethod(typeof(VanillaShaders), "FilterUnityLogMessage", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); } } if (!s_patchInitialized) { s_patchInitialized = true; MethodInfo method2 = typeof(ZNetView).GetMethod("Awake", BindingFlags.Instance | BindingFlags.NonPublic); if (method2 != null) { val.Patch((MethodBase)method2, (HarmonyMethod)null, new HarmonyMethod(typeof(VanillaShaders), "OnZNetViewAwake", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); } } } private static void OnZNetViewAwake(ZNetView __instance) { if ((Object)(object)__instance == (Object)null) { return; } string prefabName = Utils.GetPrefabName(((Component)__instance).gameObject); if (s_registeredPrefabs.Contains(prefabName) || IsPrefabFromRegisteredBundle(prefabName)) { ManualLogSource logger = Shawesomes_Infinite_Multiverse.logger; if (logger != null) { logger.LogDebug((object)("[VanillaShaders] Auto-fixing shaders on: " + prefabName)); } FixShaders(((Component)__instance).gameObject); } } private static bool IsPrefabFromRegisteredBundle(string prefabName) { foreach (string bundleName in s_registeredBundles) { AssetBundle val = AssetBundle.GetAllLoadedAssetBundles().FirstOrDefault((Func)((AssetBundle b) => string.Equals(((Object)b).name, bundleName, StringComparison.OrdinalIgnoreCase))); if (!((Object)(object)val != (Object)null)) { continue; } string[] allAssetNames = val.GetAllAssetNames(); string[] array = allAssetNames; foreach (string path in array) { string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(path); if (string.Equals(fileNameWithoutExtension, prefabName, StringComparison.OrdinalIgnoreCase)) { s_registeredPrefabs.Add(prefabName); return true; } } } return false; } private static bool FilterUnityLogMessage(string message) { if (message != null && message.Contains("Failed to find expected binary shader data")) { return false; } return true; } private static void BuildShaderCache() { if (s_cacheBuilt) { return; } Shader[] array = Resources.FindObjectsOfTypeAll(); Dictionary dictionary = new Dictionary(); Shader[] array2 = array; foreach (Shader val in array2) { if (!((Object)(object)val == (Object)null) && !string.IsNullOrEmpty(((Object)val).name)) { if (val.isSupported && val.passCount > 0) { s_shaderCache[((Object)val).name] = val; } else if (!s_shaderCache.ContainsKey(((Object)val).name)) { dictionary[((Object)val).name] = val; } } } foreach (KeyValuePair item in dictionary) { if (!s_shaderCache.ContainsKey(item.Key)) { s_shaderCache[item.Key] = item.Value; } } s_cacheBuilt = true; ManualLogSource logger = Shawesomes_Infinite_Multiverse.logger; if (logger != null) { logger.LogInfo((object)$"[VanillaShaders] Cached {s_shaderCache.Count} shaders ({dictionary.Count} were stubs)"); } } public static void FixShaders(GameObject gameObject) { if ((Object)(object)gameObject == (Object)null) { return; } BuildShaderCache(); s_processedObjects.Clear(); s_totalFixed = 0; FixShadersRecursive(gameObject, 0); if (s_totalFixed > 0) { ManualLogSource logger = Shawesomes_Infinite_Multiverse.logger; if (logger != null) { logger.LogInfo((object)$"[VanillaShaders] Fixed {s_totalFixed} shaders on {((Object)gameObject).name} and its references"); } } } private static void FixShadersRecursive(GameObject gameObject, int depth) { if ((Object)(object)gameObject == (Object)null || depth > 10) { return; } int instanceID = ((Object)gameObject).GetInstanceID(); if (s_processedObjects.Contains(instanceID)) { return; } s_processedObjects.Add(instanceID); FixRenderersOnObject(gameObject); Component[] componentsInChildren = gameObject.GetComponentsInChildren(true); foreach (Component val in componentsInChildren) { if (!((Object)(object)val == (Object)null)) { FindAndFixReferences(val, depth); } } } private static void FindAndFixReferences(Component component, int depth) { if ((Object)(object)component == (Object)null) { return; } Type type = ((object)component).GetType(); FieldInfo[] fields = type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); FieldInfo[] array = fields; foreach (FieldInfo fieldInfo in array) { try { object value = fieldInfo.GetValue(component); if (value == null) { continue; } GameObject val = (GameObject)((value is GameObject) ? value : null); if (val != null) { FixShadersRecursive(val, depth + 1); continue; } Material val2 = (Material)((value is Material) ? value : null); if (val2 != null) { FixMaterial(val2); continue; } if (value is GameObject[] array2) { GameObject[] array3 = array2; foreach (GameObject gameObject in array3) { FixShadersRecursive(gameObject, depth + 1); } continue; } if (value is Material[] array4) { Material[] array5 = array4; foreach (Material material in array5) { FixMaterial(material); } continue; } EffectList val3 = (EffectList)((value is EffectList) ? value : null); if (val3 != null) { FixEffectList(val3, depth); } else { if (!(value is IList list) || list.Count <= 0) { continue; } foreach (object item in list) { if (item == null) { continue; } Type type2 = item.GetType(); FieldInfo field = type2.GetField("m_prefab"); if (field != null) { object? value2 = field.GetValue(item); GameObject val4 = (GameObject)((value2 is GameObject) ? value2 : null); if ((Object)(object)val4 != (Object)null) { FixShadersRecursive(val4, depth + 1); } } } continue; } } catch { } } } private static void FixEffectList(EffectList effectList, int depth) { if (effectList?.m_effectPrefabs == null) { return; } EffectData[] effectPrefabs = effectList.m_effectPrefabs; foreach (EffectData val in effectPrefabs) { if ((Object)(object)val?.m_prefab != (Object)null) { FixShadersRecursive(val.m_prefab, depth + 1); } } } private static void FixRenderersOnObject(GameObject gameObject) { Renderer[] componentsInChildren = gameObject.GetComponentsInChildren(true); Renderer[] array = componentsInChildren; foreach (Renderer val in array) { if ((Object)(object)val == (Object)null) { continue; } Material[] sharedMaterials = val.sharedMaterials; bool flag = false; for (int j = 0; j < sharedMaterials.Length; j++) { if (FixMaterial(sharedMaterials[j])) { flag = true; } } if (flag) { val.sharedMaterials = sharedMaterials; } } } private static bool FixMaterial(Material material) { if ((Object)(object)material == (Object)null || (Object)(object)material.shader == (Object)null) { return false; } Shader shader = material.shader; string name = ((Object)shader).name; if (shader.isSupported && shader.passCount > 0) { return false; } if (!s_shaderCache.TryGetValue(name, out Shader value)) { return false; } if (!value.isSupported || value.passCount == 0) { return false; } material.shader = value; s_totalFixed++; return true; } public static void RebuildCache() { s_shaderCache.Clear(); s_cacheBuilt = false; BuildShaderCache(); } } }