Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of SpeelosToolbox v1.1.6
SpeelosToolbox_PTBR.dll
Decompiled 3 days ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Text; using System.Threading; using BepInEx; using BepInEx.Configuration; using HarmonyLib; using Microsoft.CodeAnalysis; using SkToolbox.Configuration; using SkToolbox.SkModules; using SkToolbox.Utility; using Splatform; using TMPro; using UnityEngine; using UnityEngine.InputSystem; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("Fox72")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("Tradução Brasileira do mod Speelo's Toolbox para Valheim por Fox72 (fork de Speelo e Skrip)")] [assembly: AssemblyFileVersion("1.1.6.0")] [assembly: AssemblyInformationalVersion("1.1.6+9539eee9e16a8ecb0210983cfeeab5035a87e0f3")] [assembly: AssemblyProduct("Speelo's Toolbox PT-BR")] [assembly: AssemblyTitle("SpeelosToolbox_PTBR")] [assembly: AssemblyVersion("1.1.6.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace SkToolbox { [BepInPlugin("com.speelo.speelostoolbox", "Speelo's Toolbox Tradução BR", "1.1.6")] public class SkBepInExLoader : BaseUnityPlugin { public const string MODNAME = "Speelo's Toolbox Tradução BR"; public const string DISPLAYNAME = "Speelo's Toolbox Tradução BR"; public const string AUTHOR = "Speelo"; public const string TRANSLATOR = "Fox72"; public const string ORIGINAL_AUTHOR = "Skrip"; public const string GUID = "com.speelo.speelostoolbox"; public const string VERSION = "1.1.6"; private void Start() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Invalid comparison between Unknown and I4 if (Application.isBatchMode || (int)SystemInfo.graphicsDeviceType == 4) { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Servidor sem interface gráfica detectado - SpeelosToolbox é apenas para cliente e não será carregado."); return; } InitConfig(); SkCommandPatcher.ApplyAchievementBypass(); ((Component)this).transform.parent = null; Object.DontDestroyOnLoad((Object)(object)this); SkLoader.InitBepThreading(this); } public void InitConfig() { try { SkConfigEntry.CDescriptor = ((BaseUnityPlugin)this).Config.Bind<bool>("- Index", "ThisIsJustAnIndex-NotASetting", true, "Seções de configuração:\n0 - Geral\n1 - Execução Automática\n2 - Personalizar Visual do Console\n3 - Apelidos de Comandos\n4 - Menu na Tela\n5 - Atalhos de Comandos\n"); SkConfigEntry.CConsoleEnabled = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "ConsoleEnabled", true, "Ativa o console sem a necessidade de opção de inicialização na Steam."); SkConfigEntry.CScrollable = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "ConsoleScrollable", true, "Permite que a rolagem de texto seja ativada no console."); SkConfigEntry.CScrollableLimit = ((BaseUnityPlugin)this).Config.Bind<int>("0 - General", "ConsoleScrollableLimit", 500, "Número máximo de linhas armazenadas no console. Padrão do jogo = 30."); SkConfigEntry.CConsoleAutoComplete = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "AutoComplete", true, "Pressione Tab para autocompletar os comandos da Caixa de Ferramentas ao digitar parcialmente."); SkConfigEntry.CAllowChatCommandInput = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "AllowChatCommandInput", true, "Alterne esta opção para permitir ou desativar o envio de comandos pelo chat. Se desativado, os comandos só poderão ser digitados no console."); SkConfigEntry.CAllowPublicChatOutput = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "AllowPublicResponse", true, "Ative para permitir que o mod responda publicamente a certos comandos quando digitados no chat.\nPor exemplo, se o comando /portal for usado no chat com isso ativo, jogadores próximos verão a resposta.\nNOTA: Se a resposta sair com o seu nome, ela é pública e todos podem ver. Se for uma resposta de (Speelo's Toolbox), apenas você a vê."); SkConfigEntry.CAllowChatOutput = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "AllowResponseInChat", true, "Ative para permitir que o mod exiba retornos no chat. Se desativado, o mod não mostrará nenhuma mensagem no chat, seja pública ou privada."); SkConfigEntry.CAllowExecuteOnClear = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "AllowExecuteOnClear", false, "Ative para permitir a execução de comandos ao limpar a caixa de texto (pressionando Esc ou apagando todo o texto)."); SkConfigEntry.CKeepAchievements = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "KeepAchievements", true, "Mantém as conquistas da Steam funcionando mesmo ao usar trapaças.\nO Valheim desativa o progresso de conquistas ao detectar modificações (carregar o BepInEx já define Game.isModded).\nEsta opção ativa a chave interna PlayerProfile.s_bypassCheatChecks para continuar contabilizando conquistas.\nTambém impede que o personagem seja marcado permanentemente por trapaças e limpa marcas anteriores.\nDefina como false para manter o comportamento padrão do Valheim."); SkConfigEntry.CPersistCheatsOnDeath = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "PersistCheatsOnDeath", true, "Reaplica suas trapaças automaticamente após morrer.\nA morte destrói o objeto do personagem e o jogo cria um novo, fazendo com que trapaças ativas (modo deus, voo, construção sem custo, stamina infinita, etc.) sejam desativadas ao reaparecer.\nCom isto ativo, todas as trapaças que estavam ligadas serão reativadas ao reaparecer.\nDefina como false para que a morte desative todas as trapaças normalmente."); SkConfigEntry.CGodModeBlocksDamage = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "GodModeBlocksDamage", true, "Faz o modo deus bloquear o dano completamente.\nO modo deus padrão do Valheim não impede dano: ele reduz sua vida e só impede a morte no último instante, mantendo 1 de vida.\nCom isto ativo, todo dano recebido (incluindo fogo, veneno e fumaça) é anulado antes de atingir você.\nDefina como false para manter o comportamento padrão do Valheim."); SkConfigEntry.COpenConsoleWithSlash = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "OpenConsoleWithSlash", false, "Ative para permitir abrir o console pressionando a tecla barra (/).\nEsta opção tem prioridade sobre OpenChatWithSlash se ambas estiverem ativas."); SkConfigEntry.COpenChatWithSlash = ((BaseUnityPlugin)this).Config.Bind<bool>("0 - General", "OpenChatWithSlash", false, "Ative para permitir abrir o chat pressionando a tecla barra (/)."); SkConfigEntry.CAutoRun = ((BaseUnityPlugin)this).Config.Bind<bool>("1 - AutoRun", "AutoRunEnabled", false, "Ative para executar comandos automaticamente ao entrar no servidor.\nNota: ocorre apenas uma vez por inicialização do jogo para evitar execuções indesejadas."); SkConfigEntry.CAutoRunCommand = ((BaseUnityPlugin)this).Config.Bind<string>("1 - AutoRun", "AutoRunCommand", "/nosup; /god", "Insira aqui os comandos para executar ao reaparecer. Separe múltiplos comandos com ponto e vírgula (;)."); SkConfigEntry.OMenuToggleKey = ((BaseUnityPlugin)this).Config.Bind<string>("4 - OnScreenMenu", "MenuToggleKey", "F6", "Tecla que abre e fecha o menu interativo. Nomes de teclas válidos: https://docs.unity3d.com/ScriptReference/KeyCode.html\nJá ocupadas: F11 e F12 tiram captura de tela, F5 abre o console do jogo, F4 abre o log do mod, F2 abre o painel de conexão, F9 alterna layout do controle, Ctrl+F1 alterna captura do mouse, Ctrl+F3 oculta o HUD.\nTeclas de função livres sugeridas: F6, F7, F8, F10."); SkConfigEntry.OMenuWalk = ((BaseUnityPlugin)this).Config.Bind<bool>("4 - OnScreenMenu", "WalkWithMenuOpen", true, "Permite andar com o menu aberto, em vez de congelar seu personagem no lugar.\nWASD movimenta normalmente. Atacar, bloquear, pular e esquivar permanecem desativados enquanto o menu estiver aberto.\nAo digitar na caixa de busca, o movimento é pausado. Segure a tecla de olhar para girar a câmera.\nApenas teclado e mouse: com controle (gamepad), o menu congela a movimentação normalmente."); SkConfigEntry.OMenuLookKey = ((BaseUnityPlugin)this).Config.Bind<string>("4 - OnScreenMenu", "MenuLookKey", "Mouse1", "Segure esta tecla para girar a câmera com o menu aberto. Solte para ter o ponteiro do mouse de volta.\nMouse1 é o botão direito do mouse. É seguro usar pois a defesa fica desativada com o menu aberto.\nLeftAlt é uma ótima alternativa se preferir não usar o botão direito.\nNomes de teclas válidos: https://docs.unity3d.com/ScriptReference/KeyCode.html"); SkConfigEntry.OBookmarks = ((BaseUnityPlugin)this).Config.Bind<string>("4 - OnScreenMenu", "Bookmarks", "", "Locais de teletransporte salvos, gerenciados pelo menu (não é necessário editar manualmente).\nCada entrada é seed|nome|x|y|z, e apenas os locais do mundo atual são exibidos."); SkConfigEntry.OLoadouts = ((BaseUnityPlugin)this).Config.Bind<string>("4 - OnScreenMenu", "Loadouts", "", "Conjuntos de equipamentos salvos, gerenciados pelo menu (não é necessário editar manualmente).\nCada entrada segue o formato nome|prefab:qualidade,prefab:qualidade."); SkConfigEntry.OMenuOpacity = ((BaseUnityPlugin)this).Config.Bind<float>("4 - OnScreenMenu", "MenuOpacity", 0.96f, "Opacidade do fundo do menu. 1 = totalmente opaco, 0.5 = meio transparente. Aplicação imediata."); SkConfigEntry.CAllowLookCustomizations = ((BaseUnityPlugin)this).Config.Bind<bool>("2 - CustomizeConsoleLook", "ConsoleAllowLookCustomizations", true, "Ative para habilitar ou desabilitar as configurações de visual do console abaixo."); SkConfigEntry.CConsoleFont = ((BaseUnityPlugin)this).Config.Bind<string>("2 - CustomizeConsoleLook", "ConsoleFont", "Consola.ttl", "Define a fonte do texto do console. Padrão do jogo = AveriaSansLibre-Bold"); SkConfigEntry.CConsoleFontSize = ((BaseUnityPlugin)this).Config.Bind<int>("2 - CustomizeConsoleLook", "ConsoleFontSize", 18, "Define o tamanho da fonte do texto no console. Padrão do jogo = 18"); SkConfigEntry.CConsoleOutputTextColor = ((BaseUnityPlugin)this).Config.Bind<string>("2 - CustomizeConsoleLook", "ConsoleOutputTextColor", "#E6F7FFFF", "Define a cor do texto de saída no console. Padrão do jogo = #FFFFFFFF. Formato de cor: #RRGGBBAA"); SkConfigEntry.CConsoleInputTextColor = ((BaseUnityPlugin)this).Config.Bind<string>("2 - CustomizeConsoleLook", "ConsoleInputTextColor", "#E6F7FFFF", "Define a cor do texto de entrada no console. Padrão do jogo = #FFFFFFFF. Formato de cor: #RRGGBBAA"); SkConfigEntry.CConsoleSelectionColor = ((BaseUnityPlugin)this).Config.Bind<string>("2 - CustomizeConsoleLook", "ConsoleSelectionColor", "#A8CEFFC0", "Define a cor do destaque de seleção no console. Padrão do jogo = #A8CEFFC0. Formato de cor: #RRGGBBAA"); SkConfigEntry.CConsoleCaretColor = ((BaseUnityPlugin)this).Config.Bind<string>("2 - CustomizeConsoleLook", "ConsoleCaretColor", "#DCE6F5FF", "Define a cor do cursor de texto no console. Padrão do jogo = #FFFFFFFF. Formato de cor: #RRGGBBAA"); SkConfigEntry.CAlias1 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias1", "/creative: /god; /ghost; /imacheater; /nores; /nocost; /echo Creative mode toggled!", "Defina isto para criar um apelido de comando (alias). Especifique o que o usuário digitará e o que será executado. Encadeamento de comandos é suportado e pode ser usado com a Execução Automática. Apelidos não podem referenciar outros apelidos. O prefixo barra (/) não é obrigatório - apelidos de comandos podem ser o que você quiser! Apelidos também funcionam pelo chat (se a opção de chat estiver ativa) e aparecem nos menus de ajuda /?.\nFormato: OQueDigitar: OQueExecutar\nExemplo: Cria um novo comando '/Cmd1' que executa /god e /fly\n/Cmd1: /god; /fly\n##################\nDefina para criar o apelido de comando 1."); SkConfigEntry.CAlias2 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias2", "", "Defina para criar o apelido de comando 2."); SkConfigEntry.CAlias3 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias3", "", "Defina para criar o apelido de comando 3."); SkConfigEntry.CAlias4 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias4", "", "Defina para criar o apelido de comando 4."); SkConfigEntry.CAlias5 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias5", "", "Defina para criar o apelido de comando 5."); SkConfigEntry.CAlias6 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias6", "", "Defina para criar o apelido de comando 6."); SkConfigEntry.CAlias7 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias7", "", "Defina para criar o apelido de comando 7."); SkConfigEntry.CAlias8 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias8", "", "Defina para criar o apelido de comando 8."); SkConfigEntry.CAlias9 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias9", "", "Defina para criar o apelido de comando 9."); SkConfigEntry.CAlias10 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias10", "", "Defina para criar o apelido de comando 10."); SkConfigEntry.CAlias11 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias11", "", "Defina para criar o apelido de comando 11."); SkConfigEntry.CAlias12 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias12", "", "Defina para criar o apelido de comando 12."); SkConfigEntry.CAlias13 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias13", "", "Defina para criar o apelido de comando 13."); SkConfigEntry.CAlias14 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias14", "", "Defina para criar o apelido de comando 14."); SkConfigEntry.CAlias15 = ((BaseUnityPlugin)this).Config.Bind<string>("3 - CommandAliasing", "Alias15", "", "Defina para criar o apelido de comando 15."); SkConfigEntry.CHotkey1 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 1", "", "Defina isto para criar um atalho de teclado para um comando ou sequência de comandos.\nFormato válido: OQuePressionar: OQueExecutar\nExemplo 1: Pressione z para executar /fly; /god | z: /fly; /god\nExemplo 2: Pressione Shift+Z para executar /creative | Z: /creative\nExemplo 3: Pressione Acento para abrir o console | `: /console\nApenas caracteres ASCII imprimíveis são válidos! (https://theasciicode.com.ar/). Letras maiúsculas exigem pressionar Shift junto. Cada tecla só pode ser atribuída a um atalho (se o atalho 1 for q, o atalho 2 não pode ser q).\nApenas o primeiro dois-pontos separa a tecla do comando (o comando em si pode conter dois-pontos). A tecla não pode ser dois-pontos nem espaço.\nAtalhos não são acionados durante a digitação no chat, console, placas, marcadores de mapa, inventário ou menu do mod.\nAs alterações são lidas na inicialização; reinicie o jogo ou use Recarregar Toolbox na aba Sistema após editar. Atalhos inválidos avisarão no console ao iniciar."); SkConfigEntry.CHotkey2 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 2", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey3 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 3", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey4 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 4", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey5 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 5", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey6 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 6", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey7 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 7", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey8 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 8", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey9 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 9", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey10 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 10", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey11 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 11", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey12 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 12", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey13 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 13", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey14 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 14", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); SkConfigEntry.CHotkey15 = ((BaseUnityPlugin)this).Config.Bind<string>("5 - CommandHotkeys", "Hotkey 15", "", "Defina para criar um atalho de teclado para um comando ou sequência de comandos."); } catch (Exception ex) { SkUtilities.Logz(new string[1] { "ERR" }, new string[3] { "Não foi possível carregar a configuração. Verifique se há uma versão funcional do BepInEx instalada.", ex.Message, ex.Source }, (LogType)0); } } } internal static class SkCommandPatcher { [HarmonyPatch(typeof(Console), "IsConsoleEnabled")] public static class PatchIsConsoleEnabled { [HarmonyPriority(0)] private static void Postfix(ref bool __result) { if (SkConfigEntry.CConsoleEnabled != null && SkConfigEntry.CConsoleEnabled.Value) { __result = true; } } } [HarmonyPatch(typeof(Terminal), "IsCheatsEnabled")] private static class PatchIsCheatsEnabled { private static void Postfix(ref bool __result) { if (BCheat) { __result = true; } } } [HarmonyPatch(typeof(ConsoleCommand), "IsValid")] private static class PatchConsoleCommandIsValid { private static readonly MethodInfo s_isAllowedCommand = AccessTools.Method(typeof(Terminal), "isAllowedCommand", (Type[])null, (Type[])null); private static void Postfix(ConsoleCommand __instance, Terminal context, bool skipAllowedCheck, ref bool __result) { if (!__result && BCheat && !((Object)(object)context == (Object)null) && __instance.OnlyServer && !__instance.OnlyAdmin && (!__instance.RemoteCommand || string.Equals(__instance.Command, "confirmcheats", StringComparison.OrdinalIgnoreCase)) && (!__instance.IsNetwork || !((Object)(object)ZNet.instance == (Object)null)) && (skipAllowedCheck || !(s_isAllowedCommand != null) || (bool)s_isAllowedCommand.Invoke(context, new object[1] { __instance }))) { __result = true; } } } [HarmonyPatch(typeof(Chat), "InputText")] private static class PatchChatInputText { private static readonly FieldInfo commandsField = AccessTools.Field(typeof(Terminal), "commands"); private static bool Prefix(Chat __instance) { if (SkConfigEntry.CAllowChatCommandInput != null && !SkConfigEntry.CAllowChatCommandInput.Value) { return true; } string text = ((TMP_InputField)((Terminal)__instance).m_input).text; if (!string.IsNullOrEmpty(text) && text.Length > 1 && text[0] == '/' && commandsField?.GetValue(null) is Dictionary<string, ConsoleCommand> dictionary && dictionary.ContainsKey(text.Split(new char[1] { ' ' })[0].ToLower())) { return false; } return true; } } [HarmonyPatch(typeof(WearNTear), "UpdateSupport")] private static class PatchUpdateSupport { private static bool Prefix(ref float ___m_support, ref ZNetView ___m_nview) { if (BFreeSupport) { if (___m_support != float.MaxValue) { ___m_support = float.MaxValue; ___m_nview.GetZDO().Set(ZDOVars.s_support, ___m_support); } return false; } return true; } } [HarmonyPatch(typeof(Player), "UpdatePlacementGhost")] private static class PatchUpdatePlacementGhost { private static void Postfix(bool flashGuardStone) { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Invalid comparison between Unknown and I4 //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Invalid comparison between Unknown and I4 if (!bBuildAnywhere) { return; } try { if (!((Object)(object)Player.m_localPlayer != (Object)null)) { return; } PlacementStatus privateField = Player.m_localPlayer.GetPrivateField<PlacementStatus>("m_placementStatus"); if ((int)privateField == 0 || (int)privateField == 4 || (int)privateField == 12) { return; } GameObject privateField2 = Player.m_localPlayer.GetPrivateField<GameObject>("m_placementGhost"); if ((Object)(object)privateField2 != (Object)null && privateField2.activeSelf) { Player.m_localPlayer.SetPrivateField("m_placementStatus", (object)(PlacementStatus)0); Piece component = privateField2.GetComponent<Piece>(); if (component != null) { component.SetInvalidPlacementHeightlight(false); } } } catch (Exception) { } } } [HarmonyPatch(typeof(Location), "IsInsideNoBuildLocation")] private static class PatchIsInsideNoBuildLocation { private static void Postfix(ref bool __result) { if (bBuildAnywhere) { __result = false; } } } [HarmonyPatch(typeof(GameCamera), "UpdateMouseCapture")] private static class PatchMenuMouseCapture { private static Vector2 savedPointer; private static bool cursorWasHeld; private static void Prefix(ref bool ___m_mouseCapture, out bool __state) { __state = ___m_mouseCapture; if (SkMenuController.IsOpen) { ___m_mouseCapture = LookHeld; } } private static void Postfix(ref bool ___m_mouseCapture, bool __state) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: 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) if (!SkMenuController.IsOpen) { return; } if (LookHeld) { if (!cursorWasHeld) { cursorWasHeld = true; savedPointer = Vector2.op_Implicit(ZInput.pointerPosition); } ___m_mouseCapture = __state; return; } ___m_mouseCapture = (___m_mouseCapture ? (!__state) : __state); ZCursor.LockState = (CursorLockMode)0; ZCursor.Show(); if (cursorWasHeld) { cursorWasHeld = false; ZInput.SetMousePosition(savedPointer); } } } [HarmonyPatch(typeof(Player), "TakeInput")] private static class PatchMenuTakeInput { private static void Postfix(ref bool __result) { if (SkMenuController.IsOpen && !InDebugFlyMotion) { __result = false; } } } [HarmonyPatch(typeof(PlayerController), "TakeInput", new Type[] { typeof(bool) })] private static class PatchMenuPlayerControllerInput { private static void Postfix(bool look, ref bool __result) { if (SkMenuController.IsOpen && __result) { __result = (look ? LookHeld : WalkAllowed); } } } [HarmonyPatch(typeof(ZInput), "GetMouseScrollWheel")] private static class PatchMenuScrollWheel { private static void Postfix(ref float __result) { if (SkMenuController.IsOpen) { __result = 0f; } } } [HarmonyPatch(typeof(ZInput), "GetKeyDown", new Type[] { typeof(KeyCode), typeof(bool) })] private static class PatchMenuKeyDown { private static void Postfix(ref bool __result) { if (__result && SkMenuController.IsOpen && !BypassInputBlock) { __result = false; } } } [HarmonyPatch(typeof(ZInput), "GetButtonDown", new Type[] { typeof(string) })] private static class PatchMenuButtonDown { private static void Postfix(ref bool __result) { if (__result && SkMenuController.IsOpen && !BypassInputBlock) { __result = false; } } } [HarmonyPatch(/*Could not decode attribute arguments.*/)] private static class PatchBypassCheatChecks { private static void Postfix(ref bool __result) { if (KeepAchievementsEnabled) { __result = true; } } } [HarmonyPatch(typeof(Player), "UseStamina")] private static class PatchInfiniteStamina { private static void Prefix(Player __instance, ref float v) { if (SkCommandProcessor.infStamina && !((Object)(object)__instance == (Object)null) && __instance == Player.m_localPlayer) { v = 0f; } } } [HarmonyPatch(typeof(Player), "UseEitr")] private static class PatchInfiniteEitr { private static void Prefix(Player __instance, ref float v) { if (SkCommandProcessor.infEitr && !((Object)(object)__instance == (Object)null) && __instance == Player.m_localPlayer) { v = 0f; } } } [HarmonyPatch(typeof(Player), "SetControls")] private static class PatchMenuJumpCrouch { private static bool lastJump; private static bool lastCrouch; private static void Prefix(Player __instance, ref bool jump, ref bool crouch) { if ((Object)(object)__instance == (Object)null || __instance != Player.m_localPlayer) { return; } bool button = ZInput.GetButton("Jump"); bool flag = ZInput.GetButton("Crouch") || ZInput.GetButton("JoyCrouch"); bool flag2 = button && !lastJump; bool flag3 = flag && !lastCrouch; lastJump = button; lastCrouch = flag; if (SkMenuController.IsOpen && WalkAllowed && !((Character)__instance).IsDebugFlying() && !GameCamera.InFreeFly()) { if (flag2) { jump = true; } if (flag3) { crouch = true; } } } } [HarmonyPatch(typeof(Character), "UpdateDebugFly")] private static class PatchMenuFlyUpDown { private static void Prefix(Character __instance) { InDebugFlyMotion = SkMenuController.IsOpen && WalkAllowed && (Object)(object)Player.m_localPlayer != (Object)null && (object)__instance == Player.m_localPlayer; } private static void Finalizer() { InDebugFlyMotion = false; } } [HarmonyPatch(typeof(InventoryGui), "Update")] private static class PatchInventoryGuiFreeFly { private static void Prefix(InventoryGui __instance) { if ((Object)(object)__instance == (Object)null) { return; } GameObject val = __instance.GetPrivateField<GameObject>("m_root"); if ((Object)(object)val == (Object)null) { Component privateField = __instance.GetPrivateField<Component>("m_root"); if ((Object)(object)privateField != (Object)null) { val = privateField.gameObject; } } if (!((Object)(object)val != (Object)null) || !InventoryGui.IsVisible()) { return; } if (GameCamera.InFreeFly()) { if (val.activeSelf) { val.SetActive(false); } } else if (!val.activeSelf) { val.SetActive(true); } } } [HarmonyPatch(typeof(StoreGui), "Update")] private static class PatchStoreGuiFreeFly { private static void Prefix(StoreGui __instance) { if ((Object)(object)__instance == (Object)null) { return; } GameObject val = __instance.GetPrivateField<GameObject>("m_root"); if ((Object)(object)val == (Object)null) { Component privateField = __instance.GetPrivateField<Component>("m_root"); if ((Object)(object)privateField != (Object)null) { val = privateField.gameObject; } } if (!((Object)(object)val != (Object)null) || !StoreGui.IsVisible()) { return; } if (GameCamera.InFreeFly()) { if (val.activeSelf) { val.SetActive(false); } } else if (!val.activeSelf) { val.SetActive(true); } } } [HarmonyPatch(typeof(Player), "OnSpawned")] private static class PatchReapplyToggles { private static void Postfix(Player __instance) { if ((Object)(object)__instance == (Object)null || __instance != Player.m_localPlayer) { return; } try { SkCommandProcessor.ReapplyOnSpawn(__instance); } catch (Exception ex) { SkUtilities.Logz(new string[2] { "RESPAWN", "ERROR" }, new string[1] { ex.Message }, (LogType)2); } } } [HarmonyPatch(typeof(Player), "OnDeath")] private static class PatchSnapshotOnDeath { private static void Prefix(Player __instance) { if ((Object)(object)__instance == (Object)null || __instance != Player.m_localPlayer) { return; } try { SkCommandProcessor.SnapshotOnDeath(__instance); } catch (Exception ex) { SkUtilities.Logz(new string[2] { "RESPAWN", "ERROR" }, new string[1] { ex.Message }, (LogType)2); } } } [HarmonyPatch(typeof(Character), "ApplyDamage")] private static class PatchGodModeBlocksDamage { private static bool Prefix(Character __instance, HitData hit) { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Expected I4, but got Unknown Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer == (Object)null || (object)__instance != localPlayer) { return true; } if (hit != null && SkCommandProcessor.immuneTo.Contains((int)hit.m_hitType)) { return false; } if (SkConfigEntry.CGodModeBlocksDamage != null && !SkConfigEntry.CGodModeBlocksDamage.Value) { return true; } if (((Character)localPlayer).InGodMode()) { return false; } return true; } } [HarmonyPatch(typeof(Achievements), "CanGetAchievements", new Type[] { typeof(bool) })] private static class PatchCanGetAchievements { private static void Postfix(ref bool __result) { if (KeepAchievementsEnabled) { ApplyAchievementBypass(); __result = true; } } } [HarmonyPatch(typeof(ConsoleCommand), "RunAction")] private static class PatchRunActionKeepAchievements { private static void Prefix(out bool __state) { __state = false; try { if ((Object)(object)Game.instance != (Object)null) { __state = Game.instance.GetPlayerProfile()?.m_usedCheats ?? false; } } catch (Exception) { } } private static void Postfix(bool __state) { if (!KeepAchievementsEnabled || __state) { return; } try { if ((Object)(object)Game.instance != (Object)null) { PlayerProfile playerProfile = Game.instance.GetPlayerProfile(); if (playerProfile != null) { playerProfile.m_usedCheats = false; } } } catch (Exception) { } ApplyAchievementBypass(); } } private static Harmony harmony; private static bool initComplete; internal static bool BypassInputBlock; internal static bool LookHeld; internal static bool WalkAllowed; internal static bool InDebugFlyMotion; private static bool bCheat; private static bool bFreeSupport; public static bool bBuildAnywhere; private static bool clearedUsedCheats; public static Harmony Harmony { get { return harmony; } set { harmony = value; } } public static bool BCheat { get { return bCheat; } set { bCheat = value; } } public static bool BFreeSupport { get { return bFreeSupport; } set { bFreeSupport = value; } } public static bool InitComplete { get { return initComplete; } set { initComplete = value; } } internal static bool KeepAchievementsEnabled { get { if (SkConfigEntry.CKeepAchievements != null) { return SkConfigEntry.CKeepAchievements.Value; } return true; } } public static void InitPatch() { if (InitComplete) { return; } try { harmony = Harmony.CreateAndPatchAll(typeof(SkCommandPatcher).Assembly, (string)null); } catch (Exception ex) { SkCommandProcessor.PrintOut("Something failed, there is a strong possibility another mod blocked this operation.", SkCommandProcessor.LogTo.Console); SkUtilities.Logz(new string[2] { "SkCommandPatcher", "PATCH" }, new string[3] { "PATCH => FAILED. CHECK FOR OTHER MODS BLOCKING PATCHES.\n", ex.Message, ex.StackTrace }, (LogType)0); } finally { InitComplete = true; } } internal static void ApplyAchievementBypass() { if (!KeepAchievementsEnabled) { return; } try { if (clearedUsedCheats || !((Object)(object)Game.instance != (Object)null)) { return; } PlayerProfile playerProfile = Game.instance.GetPlayerProfile(); if (playerProfile != null) { clearedUsedCheats = true; if (playerProfile.m_usedCheats) { playerProfile.m_usedCheats = false; SkUtilities.Logz(new string[1] { "ACHIEVEMENTS" }, new string[1] { "Cleared the permanent 'used cheats' flag on this character (KeepAchievements is on)." }, (LogType)3); } } } catch (Exception ex) { SkUtilities.Logz(new string[2] { "ACHIEVEMENTS", "ERROR" }, new string[1] { ex.Message }, (LogType)0); } } } internal static class SkCommandProcessor { [Flags] public enum LogTo { Console = 0, Chat = 1, DebugConsole = 2 } internal static class TerrainModification { private static void CreateTerrain(GameObject prefab, Vector3 position, ZNetView component) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) float levelOffset = prefab.GetComponent<TerrainModifier>().m_levelOffset; GameObject val = Object.Instantiate<GameObject>(prefab, position - Vector3.up * levelOffset, Quaternion.identity); } public static void ModifyTerrain(Vector3 centerLocation, GameObject prefab, float radius) { //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0055: 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_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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_0080: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_0132: 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_0142: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0182: 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_0192: 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_01a8: 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_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: 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_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0203: 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_021d: 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_022d: Unknown result type (might be due to invalid IL or missing references) //IL_0237: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Unknown result type (might be due to invalid IL or missing references) //IL_024d: 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_025d: Unknown result type (might be due to invalid IL or missing references) if (radius > 30f) { PrintOut("Raio limitado ao máximo de 30!", LogTo.Console); } radius = Mathf.Clamp(radius, 0f, 30f); ZNetView component = ((Component)Player.m_localPlayer).gameObject.GetComponent<ZNetView>(); int num = Mathf.CeilToInt(radius / 3f) * 3; Vector3 val = default(Vector3); for (int i = -num; i <= num; i += 3) { for (int j = -num; j <= num; j += 3) { ((Vector3)(ref val))..ctor(centerLocation.x + (float)i, centerLocation.y, centerLocation.z + (float)j); if (Utils.DistanceXZ(centerLocation, val) <= radius) { CreateTerrain(prefab, val, component); } } } int num2 = int.MaxValue; int num3 = int.MaxValue; Vector3 val2 = default(Vector3); for (int k = -num; k <= 0; k++) { for (int l = -num; l <= -num / 2; l++) { ((Vector3)(ref val2))..ctor(centerLocation.x + (float)k, centerLocation.y, centerLocation.z + (float)l); if (!(Utils.DistanceXZ(centerLocation, val2) <= radius)) { continue; } if (k < l || (l >= num3 && k <= num2 + 2 && k != 0)) { break; } num2 = k; num3 = l; if (k / 3 * 3 == k && l / 3 * 3 == l) { break; } CreateTerrain(prefab, new Vector3(centerLocation.x + (float)k, centerLocation.y, centerLocation.z + (float)l), component); CreateTerrain(prefab, new Vector3(centerLocation.x + (float)k, centerLocation.y, centerLocation.z - (float)l), component); if (k != 0) { CreateTerrain(prefab, new Vector3(centerLocation.x - (float)k, centerLocation.y, centerLocation.z + (float)l), component); CreateTerrain(prefab, new Vector3(centerLocation.x - (float)k, centerLocation.y, centerLocation.z - (float)l), component); } if (k != l) { CreateTerrain(prefab, new Vector3(centerLocation.x + (float)l, centerLocation.y, centerLocation.z + (float)k), component); CreateTerrain(prefab, new Vector3(centerLocation.x - (float)l, centerLocation.y, centerLocation.z + (float)k), component); if (k != 0) { CreateTerrain(prefab, new Vector3(centerLocation.x + (float)l, centerLocation.y, centerLocation.z - (float)k), component); CreateTerrain(prefab, new Vector3(centerLocation.x - (float)l, centerLocation.y, centerLocation.z - (float)k), component); } } break; } } } public static void ResetTerrain(Vector3 centerLocation, float radius) { //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0052: 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) if (radius > 50f) { PrintOut("Raio limitado ao máximo de 50!", LogTo.Console); } radius = Mathf.Clamp(radius, 2f, 50f); try { List<TerrainModifier> allInstances = TerrainModifier.GetAllInstances(); foreach (TerrainModifier item in allInstances) { if ((Object)(object)item != (Object)null && Utils.DistanceXZ(((Component)Player.m_localPlayer).transform.position, ((Component)item).transform.position) < radius) { ZNetView component = ((Component)item).GetComponent<ZNetView>(); if ((Object)(object)component != (Object)null && component.IsValid()) { component.ClaimOwnership(); component.Destroy(); } } } } catch (Exception) { } } } [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static Func<KeyValuePair<string, string>, string> <>9__50_0; public static Func<KeyValuePair<string, string>, string> <>9__50_1; public static Func<KeyValuePair<string, string>, string> <>9__50_2; public static ConsoleEvent <>9__53_0; public static ConsoleEvent <>9__53_1; public static ConsoleEvent <>9__53_2; public static ConsoleEvent <>9__53_3; public static ConsoleEvent <>9__53_4; public static ConsoleEvent <>9__53_5; public static ConsoleEvent <>9__53_6; public static ConsoleEvent <>9__53_7; public static ConsoleEvent <>9__53_8; public static ConsoleEvent <>9__53_9; public static ConsoleEvent <>9__53_10; public static ConsoleEvent <>9__53_11; public static Func<EnvSetup, string> <>9__53_49; public static Func<string, string> <>9__53_50; public static ConsoleEvent <>9__53_12; public static ConsoleEvent <>9__53_13; public static ConsoleEvent <>9__53_14; public static ConsoleEvent <>9__53_15; public static ConsoleEvent <>9__53_16; public static ConsoleEvent <>9__53_17; public static ConsoleEvent <>9__53_18; public static ConsoleEvent <>9__53_19; public static ConsoleEvent <>9__53_20; public static ConsoleEvent <>9__53_21; public static ConsoleEvent <>9__53_22; public static ConsoleEvent <>9__53_23; public static ConsoleEvent <>9__53_24; public static ConsoleEvent <>9__53_25; public static ConsoleEvent <>9__53_26; public static ConsoleEvent <>9__53_27; public static ConsoleEvent <>9__53_28; public static ConsoleEvent <>9__53_29; public static ConsoleEvent <>9__53_30; public static ConsoleEvent <>9__53_31; public static ConsoleEvent <>9__53_32; public static ConsoleEvent <>9__53_33; public static ConsoleEvent <>9__53_34; public static ConsoleEvent <>9__53_35; public static ConsoleEvent <>9__53_36; public static ConsoleEvent <>9__53_37; public static ConsoleEvent <>9__53_38; public static ConsoleEvent <>9__53_39; public static ConsoleEvent <>9__53_40; public static ConsoleEvent <>9__53_41; public static ConsoleEvent <>9__53_42; public static ConsoleEvent <>9__53_43; public static ConsoleEvent <>9__53_44; public static ConsoleEvent <>9__53_45; public static ConsoleEvent <>9__53_46; public static ConsoleEvent <>9__53_47; public static ConsoleEvent <>9__53_48; public static Predicate<ZDO> <>9__63_0; internal string <Announce>b__50_0(KeyValuePair<string, string> obj) { return obj.Key; } internal string <Announce>b__50_1(KeyValuePair<string, string> obj) { return obj.Key; } internal string <Announce>b__50_2(KeyValuePair<string, string> obj) { return obj.Value; } internal void <InitCommands>b__53_0(ConsoleEventArgs args) { if (args.Length > 1) { string text = string.Empty; for (int i = 0; i < args.Length; i++) { text = text + args[i] + " "; } PrintOut(text, LogTo.Console); } } internal void <InitCommands>b__53_1(ConsoleEventArgs args) { if (args.Length > 1) { if (args[1].Equals("1")) { ((Component)((Terminal)Console.instance).m_chatWindow).gameObject.SetActive(true); SkConfigEntry.CConsoleEnabled.Value = true; } else { ((Component)((Terminal)Console.instance).m_chatWindow).gameObject.SetActive(false); } } else { ((Component)((Terminal)Console.instance).m_chatWindow).gameObject.SetActive(!((Component)((Terminal)Console.instance).m_chatWindow).gameObject.activeSelf); if (((Component)((Terminal)Console.instance).m_chatWindow).gameObject.activeInHierarchy) { SkConfigEntry.CConsoleEnabled.Value = true; } } } internal void <InitCommands>b__53_2(ConsoleEventArgs args) { PrintOut("Saindo do jogo...", LogTo.DebugConsole); Application.Quit(); } internal void <InitCommands>b__53_3(ConsoleEventArgs args) { ((TMP_Text)((Terminal)Console.instance).m_output).text = string.Empty; try { Console.instance.SetPrivateField("m_chatBuffer", new List<string>()); ConsoleOpt.consoleOutputHistory.Clear(); } catch (Exception) { } } internal void <InitCommands>b__53_4(ConsoleEventArgs args) { List<ItemData> list = new List<ItemData>(); ((Humanoid)Player.m_localPlayer).GetInventory().GetWornItems(list); foreach (ItemData item in list) { try { item.m_durability = item.GetMaxDurability(); } catch (Exception) { } } PrintOut("Todos os itens foram reparados!"); } internal void <InitCommands>b__53_5(ConsoleEventArgs args) { PrintOut(ListPortals(), LogTo.Console); } internal void <InitCommands>b__53_6(ConsoleEventArgs args) { //IL_0050: Unknown result type (might be due to invalid IL or missing references) GameObject prefab = ZNetScene.instance.GetPrefab("digg_v2"); if ((Object)(object)prefab == (Object)null) { PrintOut("Falha ao nivelar terreno. Reporte ao autor do mod - erro 1 de nivelamento"); return; } float radius = 5f; if (args.Length > 1) { try { radius = int.Parse(args[1]); } catch (Exception) { } } TerrainModification.ModifyTerrain(((Component)Player.m_localPlayer).transform.position, prefab, radius); PrintOut("Terreno nivelado!"); } internal void <InitCommands>b__53_7(ConsoleEventArgs args) { //IL_002c: Unknown result type (might be due to invalid IL or missing references) float radius = 5f; if (args.Length > 1) { try { radius = int.Parse(args[1]); } catch (Exception) { } } TerrainModification.ResetTerrain(((Component)Player.m_localPlayer).transform.position, radius); PrintOut("Terreno resetado!"); } internal void <InitCommands>b__53_8(ConsoleEventArgs args) { //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_007d: 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) GameObject prefab = ZNetScene.instance.GetPrefab("raise"); if ((Object)(object)prefab == (Object)null) { PrintOut("Falha ao elevar terreno. Reporte ao autor do mod - erro 1 de elevação"); return; } float radius = 5f; float num = 2f; if (args.Length > 1) { try { radius = int.Parse(args[1]); } catch (Exception) { } } if (args.Length > 2) { try { num = int.Parse(args[2]); } catch (Exception) { } } TerrainModification.ModifyTerrain(((Component)Player.m_localPlayer).transform.position + Vector3.up * num, prefab, radius); PrintOut("Terreno elevado!"); } internal void <InitCommands>b__53_9(ConsoleEventArgs args) { //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_007d: 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) GameObject prefab = ZNetScene.instance.GetPrefab("digg_v2"); if ((Object)(object)prefab == (Object)null) { PrintOut("Falha ao escavar terreno. Reporte ao autor do mod - erro 1 de escavação"); return; } float radius = 5f; float num = 1f; if (args.Length > 1) { try { radius = int.Parse(args[1]); } catch (Exception) { } } if (args.Length > 2) { try { num = int.Parse(args[2]); } catch (Exception) { } } TerrainModification.ModifyTerrain(((Component)Player.m_localPlayer).transform.position - Vector3.up * num, prefab, radius); PrintOut("Terreno escavado!"); } internal void <InitCommands>b__53_10(ConsoleEventArgs args) { EnvMan.instance.ResetDebugWind(); PrintOut("Vento destravado e sob controle do jogo."); } internal void <InitCommands>b__53_11(ConsoleEventArgs args) { if (args.Length == 3) { float num = float.Parse(args[1]); float num2 = float.Parse(args[2]); EnvMan.instance.SetDebugWind(num, num2); } else { PrintOut("Falha ao definir vento. Verifique os parâmetros! Ex: /wind 240 5"); } } internal void <InitCommands>b__53_12(ConsoleEventArgs args) { if (args.Length == 1) { if (!((Object)(object)EnvMan.instance == (Object)null)) { PrintOut("Clima atual: " + (EnvMan.instance.GetCurrentEnvironment()?.m_name ?? "(none)")); { foreach (string item in from e in EnvMan.instance.m_environments select e.m_name into q orderby q select q) { PrintOut(item); } return; } } PrintOut("Gerenciador de clima não encontrado."); } else if (args.Length >= 2) { if (args[1].Equals("-1")) { if ((Object)(object)EnvMan.instance != (Object)null) { EnvMan.instance.m_debugEnv = ""; PrintOut("Clima destravado e sob controle do jogo."); } return; } <>c__DisplayClass53_0 CS$<>8__locals8 = new <>c__DisplayClass53_0 { finalWeatherName = string.Empty }; if (args.Length > 2) { string[] args2 = args.Args; foreach (string text in args2) { if (!text.Equals(args[0])) { CS$<>8__locals8.finalWeatherName = CS$<>8__locals8.finalWeatherName + " " + text; } } CS$<>8__locals8.finalWeatherName = CS$<>8__locals8.finalWeatherName.Trim(); } else { CS$<>8__locals8.finalWeatherName = args[1]; } EnvSetup val = (((Object)(object)EnvMan.instance != (Object)null) ? ((IEnumerable<EnvSetup>)EnvMan.instance.m_environments).FirstOrDefault((Func<EnvSetup, bool>)((EnvSetup e) => string.Equals(e.m_name, CS$<>8__locals8.finalWeatherName, StringComparison.OrdinalIgnoreCase))) : null); if (val != null) { EnvMan.instance.m_debugEnv = val.m_name; PrintOut("Clima definido para: " + EnvMan.instance.m_debugEnv); } else if ((Object)(object)EnvMan.instance == (Object)null) { PrintOut("Falha ao definir clima para '" + CS$<>8__locals8.finalWeatherName + "'. Can't find environment manager."); } else { PrintOut("Falha ao definir clima para '" + CS$<>8__locals8.finalWeatherName + "'. Unknown environment. Use /env to list, /env -1 to unlock."); } } else { PrintOut("Falha ao definir clima. Verifique os parâmetros! Ex: /env, /env -1, /env Misty"); } } internal string <InitCommands>b__53_49(EnvSetup e) { return e.m_name; } internal string <InitCommands>b__53_50(string q) { return q; } internal void <InitCommands>b__53_13(ConsoleEventArgs args) { Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer == (Object)null || (Object)(object)((Component)localPlayer).GetComponent<ZNetView>() == (Object)null || !((Component)localPlayer).GetComponent<ZNetView>().IsValid()) { PrintOut("Voo: nenhum jogador local. Entre em um mundo primeiro."); return; } flyEnabled = localPlayer.ToggleDebugFly(); Player.m_debugMode = flyEnabled || noCostEnabled || SkCommandPatcher.BCheat; PrintOut("Voo alternado! (" + flyEnabled + ")"); } internal void <InitCommands>b__53_14(ConsoleEventArgs args) { if ((Object)(object)ObjectDB.instance == (Object)null || ObjectDB.instance.m_items == null) { PrintOut("Banco de dados de itens ainda não foi carregado."); return; } string text = ((args.Length > 1) ? args[1].ToLower() : string.Empty); int num = 0; foreach (GameObject item in ObjectDB.instance.m_items) { if ((Object)(object)item == (Object)null) { continue; } ItemDrop component = item.GetComponent<ItemDrop>(); if (!((Object)(object)component == (Object)null) && component.m_itemData != null && component.m_itemData.m_shared != null) { Sprite[] icons = component.m_itemData.m_shared.m_icons; if (icons != null && icons.Length != 0 && !((Object)(object)icons[0] == (Object)null) && (text.Length <= 0 || ((Object)item).name.ToLower().IndexOf(text) >= 0)) { PrintOut(((Object)item).name); num++; } } } PrintOut(num + " ícone(s) de item listado(s)."); } internal void <InitCommands>b__53_15(ConsoleEventArgs args) { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) SkMenuController skMenuController = (((Object)(object)SkLoader.Load != (Object)null) ? SkLoader.Load.GetComponent<SkMenuController>() : null); PrintOut("O menu agora é controlado pelo mouse. Pressione " + (((Object)(object)skMenuController != (Object)null) ? ((object)skMenuController.ToggleKey/*cast due to .constrained prefix*/).ToString() : "F6") + " para abri-lo; o controle por teclado de /alt foi removido."); } internal void <InitCommands>b__53_16(ConsoleEventArgs args) { if ((Object)(object)ZNet.instance == (Object)null || !ZNet.instance.IsServer()) { PrintOut("Eventos só podem ser interrompidos pelo anfitrião/servidor (o servidor ressincroniza eventos a cada 2s)."); return; } RandEventSystem.instance.ResetRandomEvent(); PrintOut("Evento interrompido!"); } internal void <InitCommands>b__53_17(ConsoleEventArgs args) { Minimap.instance.ExploreAll(); PrintOut("Mapa revelado!"); } internal void <InitCommands>b__53_18(ConsoleEventArgs args) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0036: 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_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) string text = string.Empty; List<PlayerInfo> playerList = ZNet.instance.GetPlayerList(); foreach (PlayerInfo item in playerList) { string[] obj = new string[6] { text, ", ", item.m_name, "(", null, null }; ZDOID characterID = item.m_characterID; obj[4] = ((ZDOID)(ref characterID)).UserID.ToString(); obj[5] = ")"; text = string.Concat(obj); } if (text.Length > 2) { text = text.Remove(0, 2); } PrintOut("Jogadores Ativos (" + playerList.Count + ") - " + text); } internal void <InitCommands>b__53_19(ConsoleEventArgs args) { //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Unknown result type (might be due to invalid IL or missing references) //IL_017c: 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_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Expected O, but got Unknown string text = Player.m_localPlayer.GetPlayerName(); string empty = string.Empty; int result = 1; int result2 = 1; if (args.Length < 2) { PrintOut("Falhou. Nenhum item informado. /give [Item] [Qtd=1] [Jogador] [Nível=1]"); return; } empty = args[1]; if (args.Length >= 3 && !int.TryParse(args[2], out result)) { result = 1; } if (args.Length >= 4) { text = args[3]; } if (args.Length >= 5 && !int.TryParse(args[4], out result2)) { result2 = 1; } Player val = null; foreach (Player allPlayer in Player.GetAllPlayers()) { if ((Object)(object)allPlayer != (Object)null && allPlayer.GetPlayerName().ToLower().StartsWith(text.ToLower())) { val = allPlayer; break; } } if ((Object)(object)val == (Object)null) { PrintOut("Falhou. Jogador não existe. /give [Item] [Qtd=1] [Jogador] [Nível=1]"); return; } GameObject prefab = ZNetScene.instance.GetPrefab(empty); if (Object.op_Implicit((Object)(object)prefab)) { PrintOut("Gerando " + result + " do item " + empty + "(" + result2 + ") on " + text); try { GameObject val2 = Object.Instantiate<GameObject>(prefab, ((Component)val).transform.position + ((Component)val).transform.forward * 1.5f + Vector3.up, Quaternion.identity); ItemDrop val3 = (ItemDrop)val2.GetComponent(typeof(ItemDrop)); if ((Object)(object)val3 != (Object)null && val3.m_itemData != null) { val3.SetQuality(result2); val3.m_itemData.m_stack = result; val3.m_itemData.m_durability = val3.m_itemData.GetMaxDurability(); } return; } catch (Exception ex) { PrintOut("Ocorreu uma falha inesperada."); SkUtilities.Logz(new string[2] { "ERR", "/give" }, new string[2] { ex.Message, ex.Source }, (LogType)2); return; } } PrintOut("Falhou. Verifique os parâmetros. /give [Item] [Qtd=1] [Jogador] [Nível=1]"); } internal void <InitCommands>b__53_20(ConsoleEventArgs args) { if ((Object)(object)Player.m_localPlayer == (Object)null) { PrintOut("Nenhum jogador local."); return; } godEnabled = !((Character)Player.m_localPlayer).InGodMode(); Player.m_localPlayer.SetGodMode(godEnabled); PrintOut("Modo Deus " + (godEnabled ? "ON" : "OFF") + ((godEnabled && (SkConfigEntry.CGodModeBlocksDamage == null || SkConfigEntry.CGodModeBlocksDamage.Value)) ? " - damage is blocked outright." : ".")); } internal void <InitCommands>b__53_21(ConsoleEventArgs args) { ((Humanoid)Player.m_localPlayer).UnequipAllItems(); ((Humanoid)Player.m_localPlayer).GetInventory().RemoveAll(); PrintOut("Todos os itens foram removidos do inventário."); } internal void <InitCommands>b__53_22(ConsoleEventArgs args) { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) TombStone[] array = Object.FindObjectsByType<TombStone>((FindObjectsSortMode)0); if (array.Length != 0) { TombStone[] array2 = array; foreach (TombStone val in array2) { if ((Object)(object)val != (Object)null && ((Behaviour)val).enabled) { Minimap.instance.AddPin(((Component)val).transform.position, (PinType)12, "TS", true, true, 0L, default(PlatformUserID)); } } } PrintOut("Láides buscadas! Potencialmente " + array.Length + " encontrada(s)."); } internal void <InitCommands>b__53_23(ConsoleEventArgs args) { World privateField = WorldGenerator.instance.GetPrivateField<World>("m_world"); PrintOut("Semente do mapa: " + privateField.m_seedName); } internal void <InitCommands>b__53_24(ConsoleEventArgs args) { GameCamera.instance.ToggleFreeFly(); PrintOut("Câmera livre alternada: " + GameCamera.InFreeFly()); } internal void <InitCommands>b__53_25(ConsoleEventArgs args) { if (args.Length > 1) { foreach (Player allPlayer in Player.GetAllPlayers()) { if ((Object)(object)allPlayer != (Object)null && allPlayer.GetPlayerName().ToLower().Equals(args[1].ToLower())) { ((Character)allPlayer).Heal(((Character)allPlayer).GetMaxHealth(), true); PrintOut("Jogador curado: " + allPlayer.GetPlayerName()); } } return; } ((Character)Player.m_localPlayer).Heal(((Character)Player.m_localPlayer).GetMaxHealth(), true); PrintOut("Cura própria aplicada."); } internal void <InitCommands>b__53_26(ConsoleEventArgs args) { SkCommandPatcher.InitPatch(); SkCommandPatcher.bBuildAnywhere = !SkCommandPatcher.bBuildAnywhere; PrintOut("Sem restrições de construção alternado! (" + SkCommandPatcher.bBuildAnywhere + ")"); } internal void <InitCommands>b__53_27(ConsoleEventArgs args) { Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer == (Object)null) { PrintOut("Nenhum jogador local."); return; } noCostEnabled = !localPlayer.NoCostCheat(); localPlayer.SetNoPlacementCost(noCostEnabled); Player.m_debugMode = flyEnabled || noCostEnabled || SkCommandPatcher.BCheat; PrintOut("Construção sem custo/requisitos alternada! (" + noCostEnabled + ")"); } internal void <InitCommands>b__53_28(ConsoleEventArgs args) { //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) if (args.Length != 2 || !args[1].Contains(",")) { PrintOut("Sintaxe: /tp X,Z"); return; } try { string[] array = args[1].Split(new char[1] { ',' }); float num = float.Parse(array[0]); float num2 = float.Parse(array[1]); float groundHeight = ZoneSystem.instance.GetGroundHeight(new Vector3(num, 750f, num2)); bool flag = groundHeight < 749f; Player localPlayer = Player.m_localPlayer; if (Object.op_Implicit((Object)(object)localPlayer)) { float num3; if (flag) { num3 = Mathf.Max(groundHeight + 0.5f, ZoneSystem.instance.m_waterLevel); } else { float num4 = (((Character)localPlayer).IsDebugFlying() ? 400f : 30f); num3 = Mathf.Clamp(((Component)localPlayer).transform.position.y, 30f, num4); } Vector3 val = default(Vector3); ((Vector3)(ref val))..ctor(num, num3, num2); if (((Character)localPlayer).TeleportTo(val, ((Component)localPlayer).transform.rotation, true)) { PrintOut("Teletransportando..."); } else { PrintOut("Teletransporte recusado (já teletransportando ou <2s desde o último teletransporte). Tente novamente em um momento."); } } } catch (Exception) { PrintOut("Sintaxe: /tp X,Z"); } } internal void <InitCommands>b__53_29(ConsoleEventArgs args) { bDetectEnemies = !bDetectEnemies; if (args.Length > 0) { try { bDetectRange = int.Parse(args[1]); bDetectRange = ((bDetectRange < 5) ? 5 : bDetectRange); } catch (Exception) { bDetectRange = 20; } } PrintOut("Detecção de inimigos alternada! (" + bDetectEnemies + ", range: " + bDetectRange + ")"); } internal void <InitCommands>b__53_30(ConsoleEventArgs args) { SkCommandPatcher.InitPatch(); SkCommandPatcher.BCheat = !SkCommandPatcher.BCheat; try { Player.m_debugMode = SkCommandPatcher.BCheat; Terminal.m_cheat = SkCommandPatcher.BCheat; if (SkCommandPatcher.BCheat && (Object)(object)Game.instance != (Object)null) { PlayerProfile playerProfile = Game.instance.GetPlayerProfile(); if (playerProfile != null && !playerProfile.m_usedCheats) { playerProfile.m_usedCheats = true; PrintOut(Localization.instance.Localize("$achievements_permanently_cheated_character")); } } } catch (Exception) { } if ((Object)(object)args.Context != (Object)null) { args.Context.InvokePrivateMethod("updateCommandList", null); } if ((Object)(object)Console.instance != (Object)null && (object)Console.instance != args.Context) { Console.instance.InvokePrivateMethod("updateCommandList", null); } PrintOut("Trapaças alternadas! (" + SkCommandPatcher.BCheat + ")"); if (SkCommandPatcher.BCheat) { PrintOut("Vanilla cheat commands (god/fly/ghost/nocost/debugmode...) are now valid on this client, including on joined servers."); } } internal void <InitCommands>b__53_31(ConsoleEventArgs args) { SkCommandPatcher.InitPatch(); SkCommandPatcher.BFreeSupport = !SkCommandPatcher.BFreeSupport; PrintOut("Sem requisitos de suporte de construção alternado! (" + SkCommandPatcher.BFreeSupport + ")"); } internal void <InitCommands>b__53_32(ConsoleEventArgs args) { bCoords = !bCoords; PrintOut("Exibição de coordenadas alternada! (" + bCoords + ")"); } internal void <InitCommands>b__53_33(ConsoleEventArgs args) { Minimap.instance.Reset(); } internal void <InitCommands>b__53_34(ConsoleEventArgs args) { Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer == (Object)null) { PrintOut("Stamina infinita: nenhum jogador local. Entre em um mundo primeiro."); return; } infStamina = !infStamina; ApplyInfStamina(localPlayer, applyOffValues: true); PrintOut("Stamina infinita alternada! (" + infStamina + ")"); } internal void <InitCommands>b__53_35(ConsoleEventArgs args) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) Tameable.TameAllInArea(((Component)Player.m_localPlayer).transform.position, 20f); PrintOut("Criaturas domesticadas!"); } internal void <InitCommands>b__53_36(ConsoleEventArgs args) { Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer == (Object)null) { PrintOut("Interação à distância: nenhum jogador local. Entre em um mundo primeiro."); return; } farInteract = !farInteract; if (farInteract && args.Length > 1) { try { farInteractDistance = ((int.Parse(args[1]) < 20) ? 20 : int.Parse(args[1])); } catch (Exception) { PrintOut("Falha ao definir distância de interação. Verifique os parâmetros. /farinteract 50"); } } ApplyFarInteract(localPlayer, applyOffValues: true); PrintOut(farInteract ? ("Interações à distância alternadas! (Ativado Distância: " + farInteractDistance + ")") : "Interações à distância alternadas! (Desativado)"); } internal void <InitCommands>b__53_37(ConsoleEventArgs args) { Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer == (Object)null) { PrintOut("Modo Fantasma: nenhum jogador local. Entre em um mundo primeiro."); return; } localPlayer.SetGhostMode(!((Character)localPlayer).InGhostMode()); ghostEnabled = ((Character)localPlayer).InGhostMode(); PrintOut("Modo Fantasma alternado! (" + ghostEnabled + ")"); } internal void <InitCommands>b__53_38(ConsoleEventArgs args) { if (args.Length > 1) { if (float.TryParse(args[1], NumberStyles.Float, CultureInfo.InvariantCulture, out var result)) { if (result < 0f) { EnvMan.instance.m_debugTimeOfDay = false; PrintOut("Hora destravada e sob controle do jogo."); } else { EnvMan.instance.m_debugTimeOfDay = true; EnvMan.instance.m_debugTime = Mathf.Clamp01(result); PrintOut("Definindo hora do dia: " + result); } } } else { PrintOut("Falhou. Sintaxe: /tod [0-1] Ex: /tod 0.5"); } } internal void <InitCommands>b__53_39(ConsoleEventArgs args) { TerrainComp.UpgradeTerrain(); Heightmap.UpdateTerrainAlpha(); } internal void <InitCommands>b__53_40(ConsoleEventArgs args) { if (args.Length <= 1) { return; } if (args[1].Equals("cw")) { try { int num = int.Parse(args[2]); Player.m_localPlayer.m_maxCarryWeight = num; PrintOut("Novo limite de carga definido para: " + num); return; } catch (Exception) { PrintOut("Falha ao definir novo limite de carga. Verifique os parâmetros."); return; } } if (args[1].Equals("skill")) { if (args.Length == 4 && !args[2].Contains("None") && !args[2].Contains("All") && !args[2].Contains("FireMagic") && !args[2].Contains("FrostMagic")) { try { string text = args[2]; int num2 = int.Parse(args[3]); ((Character)Player.m_localPlayer).GetSkills().CheatResetSkill(text.ToLower()); ((Character)Player.m_localPlayer).GetSkills().CheatRaiseSkill(text.ToLower(), (float)num2, true); return; } catch (Exception) { PrintOut("Falha ao definir habilidade. Verifique os parâmetros / nome. Veja /listskills. /set skill [habilidade] [nível]"); return; } } PrintOut("Falha ao definir habilidade. Verifique os parâmetros / nome. Veja /listskills. /set skill [habilidade] [nível]"); } else if (args[1].Equals("pickup")) { if (args.Length >= 3) { try { int num3 = int.Parse(args[2]); Player.m_localPlayer.m_autoPickupRange = num3; PrintOut("Novo raio definido para: " + num3); return; } catch (Exception) { PrintOut("Falha ao definir raio de coleta. Verifique os parâmetros. /set pickup 2"); return; } } PrintOut("Falha ao definir raio de coleta. Verifique os parâmetros. /set pickup 2"); } else if (args[1].Equals("jumpforce")) { if (args.Length >= 3) { try { int num4 = int.Parse(args[2]); ((Character)Player.m_localPlayer).m_jumpForce = num4; PrintOut("Novo raio definido para: " + num4); return; } catch (Exception) { PrintOut("Falha ao definir força de pulo. Verifique os parâmetros. /set jumpforce 10"); return; } } PrintOut("Falha ao definir força de pulo. Verifique os parâmetros. /set jumpforce 10"); } else if (args[1].Equals("exploreradius")) { if (args.Length >= 3) { try { int num5 = int.Parse(args[2]); Minimap.instance.m_exploreRadius = num5; PrintOut("Novo raio definido para: " + num5); return; } catch (Exception) { PrintOut("Falha ao definir raio de exploração. Verifique os parâmetros. /set exploreradius 100"); return; } } PrintOut("Falha ao definir raio de exploração. Verifique os parâmetros. /set exploreradius 100"); } else if (args[1].Equals("speed")) { if (args.Length >= 4) { string text2 = args[2]; string[] source = new string[3] { "crouch", "run", "swim" }; if (source.Contains(text2)) { float num6 = 0f; try { int num7 = int.Parse(args[3]); switch (text2) { case "crouch": num6 = ((Character)Player.m_localPlayer).m_crouchSpeed; ((Character)Player.m_localPlayer).m_crouchSpeed = num7; break; case "run": num6 = ((Character)Player.m_localPlayer).m_runSpeed; ((Character)Player.m_localPlayer).m_runSpeed = num7; break; case "swim": num6 = ((Character)Player.m_localPlayer).m_swimSpeed; ((Character)Player.m_localPlayer).m_swimSpeed = num7; break; } PrintOut("New " + text2 + " definida para: " + num7 + " (era: " + num6 + ")"); return; } catch (Exception) { PrintOut("Falha ao definir velocidade. Verifique o tipo. Ex: /set speed crouch 2"); return; } } PrintOut("Falha ao definir velocidade. Verifique o tipo. Ex: /set speed crouch 2"); } else { PrintOut("Falha ao definir velocidade. Verifique o tipo. Ex: /set speed crouch 2"); } } else { if (!args[1].Equals("difficulty")) { return; } if (args.Length >= 3) { try { int forcePlayerDifficulty = int.Parse(args[2]); Game.instance.SetForcePlayerDifficulty(forcePlayerDifficulty); PrintOut("Dificuldade definida para " + forcePlayerDifficulty); return; } catch (Exception) { PrintOut("Falha ao definir dificuldade. Verifique os parâmetros. /set difficulty 5"); return; } } PrintOut("Falha ao definir dificuldade. Verifique os parâmetros. /set difficulty 5"); } } internal void <InitCommands>b__53_41(ConsoleEventArgs args) { ItemDrop[] array = Object.FindObjectsByType<ItemDrop>((FindObjectsSortMode)0); int num = 0; for (int i = 0; i < array.Length; i++) { Fish component = ((Component)array[i]).GetComponent<Fish>(); if ((Object.op_Implicit((Object)(object)component) && !component.IsOutOfWater()) || array[i].IsPiece()) { continue; } ZNetView component2 = ((Component)array[i]).GetComponent<ZNetView>(); if (Object.op_Implicit((Object)(object)component2) && component2.IsValid()) { if (!component2.IsOwner()) { component2.ClaimOwnership(); } component2.Destroy(); num++; } } PrintOut("Itens removidos (" + num + ")."); } internal void <InitCommands>b__53_42(ConsoleEventArgs args) { //IL_005f: 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_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) GameObject val = SpawnPrefab(args); if ((Object)(object)val == (Object)null) { return; } MonsterAI component = val.GetComponent<MonsterAI>(); if ((Object)(object)component == (Object)null) { PrintOut("Spawned, but " + args[1] + " não possui IA de monstro e não pode ser domesticado."); return; } component.MakeTame(); Tameable component2 = val.GetComponent<Tameable>(); if ((Object)(object)component2 != (Object)null) { component2.m_tamedEffect.Create(val.transform.position, val.transform.rotation, (Transform)null, 1f, -1, default(ZDOID)); } PrintOut("Gerado domesticado - " + args[1]); } internal void <InitCommands>b__53_43(ConsoleEventArgs args) { GameObject val = SpawnPrefab(args); if ((Object)(object)val != (Object)null) { PrintOut("Gerado - " + args[1]); } } internal void <InitCommands>b__53_44(ConsoleEventArgs args) { //IL_0010: 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_003f: Expected O, but got Unknown List<Character> list = new List<Character>(); Character.GetCharactersInRange(((Component)Player.m_localPlayer).transform.position, 50f, list); foreach (Character item in list) { if (!item.IsPlayer()) { HitData val = new HitData(); val.m_damage.m_damage = 1E+10f; item.Damage(val); } } PrintOut("Criaturas próximas mortas! (50m)"); } internal void <InitCommands>b__53_45(ConsoleEventArgs args) { if (args.Length > 1) { foreach (GameObject item in ObjectDB.instance.m_items) { ItemDrop component = item.GetComponent<ItemDrop>(); if (((Object)component).name.ToLower().Contains(args[1].ToLower())) { PrintOut("Item: '" + ((Object)component).name + "'", LogTo.DebugConsole); } } return; } foreach (GameObject item2 in ObjectDB.instance.m_items) { ItemDrop component2 = item2.GetComponent<ItemDrop>(); PrintOut("Item: '" + ((Object)component2).name + "'", LogTo.DebugConsole); } } internal void <InitCommands>b__53_46(ConsoleEventArgs args) { ConsoleOpt.BuildPrefabs(); if (args.Length > 1) { foreach (string prefab in ConsoleOpt.PrefabList) { if (prefab.ToLower().StartsWith(args[1].ToLower())) { PrintOut("Prefab: '" + prefab + "'", LogTo.DebugConsole); } } return; } foreach (string prefab2 in ConsoleOpt.PrefabList) { PrintOut("Prefab: '" + prefab2 + "'", LogTo.DebugConsole); } } internal void <InitCommands>b__53_47(ConsoleEventArgs args) { string text = "Habilidades encontradas: "; foreach (object value in Enum.GetValues(typeof(SkillType))) { if (!value.ToString().Contains("None") && !value.ToString().Contains("All") && !value.ToString().Contains("FireMagic") && !value.ToString().Contains("FrostMagic")) { text = text + value.ToString() + ", "; } } text = text.Remove(text.Length - 2); PrintOut(text, LogTo.DebugConsole); } internal void <InitCommands>b__53_48(ConsoleEventArgs args) { ((Terminal)Console.instance).TryRunCommand("help", false, false); } internal bool <ListPortals>b__63_0(ZDO z) { return !z.IsValid(); } } [CompilerGenerated] private sealed class <>c__DisplayClass53_0 { public string finalWeatherName; internal bool <InitCommands>b__51(EnvSetup e) { return string.Equals(e.m_name, finalWeatherName, StringComparison.OrdinalIgnoreCase); } } public static bool flyEnabled = false; public static bool godEnabled = false; public static bool farInteract = false; public static float farInteractDistance = 50f; public static bool infStamina = false; public static bool noCostEnabled = false; public static bool ghostEnabled = false; public static bool infEitr = false; public static bool noCarryLimit = false; public static readonly HashSet<int> immuneTo = new HashSet<int>(); public static int carryWeight = 0; public static int pickupRange = 0; public static int jumpForce = 0; public static int runSpeed = 0; public static int swimSpeed = 0; public static int exploreRadius = 0; public static bool bTeleport = false; public static bool bDebugTime = false; public static bool bDetectEnemies = false; public static bool btDetectEnemiesSwitch = true; public static int bDetectRange = 20; public static bool altOnScreenControls = false; public static bool bCoords = false; public static int pageSize = 11; private static Vector3 chatPos = new Vector3(0f, -99f); private static ModConsole consoleOpt = null; private static bool eitrBaselineTaken = false; private static float baseEitrRegen; private static float baseEitrRegenDelay; private static bool tuningBaselineTaken = false; private static float baseCarry; private static float basePickup; private static float baseJump; private static float baseRun; private static float baseSwim; private static float baseExplore; public static Dictionary<string, string> commandList = new Dictionary<string, string> { { "/alt", "- (Removido) O menu agora é controlado pelo mouse. Pressione a tecla de alternar menu (padrão F6) para abri-lo." }, { "/listicons", "[Filtro] - Lista prefabs de itens que possuem um ícone, para escolher ícones do menu" }, { "/console", "[1/0] - Alterna o console. Sem parâmetros alterna o estado. 1 = Aberto, 0 = Fechado. Destinado ao uso com atalhos e aliases." }, { "/coords", "- Mostra as coordenadas no canto da tela" }, { "/clear", "- Limpa a saída atual exibida no console" }, { "/clearinventory", "- Remove todos os itens do seu inventário. Não há confirmação, tome cuidado." }, { "/detect", "[Alcance=20] - Alterna a detecção de inimigos" }, { "/farinteract", "[Distância=50] - Alterna interações à distância (incluindo construção). Para alterar a distância, desative e ative novamente com o novo valor" }, { "/echo", "[Texto] - Exibe o texto de volta no console. Destinado ao uso com aliases e execução automática." }, { "/env", "[Clima] - Altera o clima. Sem parâmetros lista todos os climas. -1 permite que o jogo volte a controlar o clima." }, { "/findtomb", "- Marca láides de jogadores mortos próximos no mapa, se houver" }, { "/fly", "- Alterna o modo de voo" }, { "/freecam", "- Alterna a câmera livre" }, { "/ghost", "- Alterna o Modo Fantasma (criaturas inimigas não podem te ver)" }, { "/give", "[Item] [Qtd=1], OU /give [Item] [Qtd=1] [Jogador] [Nível=1] - Dá o item ao jogador. Se o nome tiver espaço, use apenas a primeira parte do nome. Letras maiúsculas importam no nome do item/jogador!" }, { "/god", "- Alterna o Modo Deus" }, { "/heal", "[Jogador=local] - Cura o jogador" }, { "/imacheater", "- Usa a toolbox para forçar a ativação de trapaças padrão em qualquer servidor" }, { "/infstam", "- Alterna stamina infinita" }, { "/killall", "- Mata todas as criaturas próximas" }, { "/listitems", "[Nome Contém] - Lista todos os itens. Opcionalmente filtre pelo início do nome. Ex: /listitems Woo retorna itens que contêm 'Woo'" }, { "/listprefabs", "[Nome Contém] - Lista todos os prefabs/criaturas. Opcionalmente filtre pelo início do nome. Ex: /listprefabs Troll retorna prefabs que começam com 'Troll'" }, { "/listskills", "- Lista todas as habilidades" }, { "/nocost", "- Alterna construção sem custo/requisitos" }, { "/nores", "- Alterna a remoção de restrições de local para construir (exceto zonas de proteção)" }, { "/nosup", "- Alterna a dispensa de suporte para construções - AVISO! - SE RECONECTAR E ISSO ESTIVER DESATIVADO, SUAS ESTRUTURAS PODEM DESMORONAR - USE COM CUIDADO." }, { "/optterrain", "- Otimiza modificações antigas de terreno" }, { "/portals", "- Lista todas as marcas de portais" }, { "/removedrops", "- Remove itens jogados no chão" }, { "/resetwind", "- Se o vento foi alterado, permite que o jogo volte a controlar o vento" }, { "/repair", "- Repara todos os itens do seu inventário" }, { "/resetmap", "- Reseta a exploração do mapa" }, { "/revealmap", "- Revela todo o minimapa" }, { "/q", "- Sai rapidamente do jogo." }, { "/seed", "- Revela a semente (seed) do mapa" }, { "/set cw", "[Peso] - Define o limite de carga (padrão 300)" }, { "/set difficulty", "[Qtd Jogadores] - Define a dificuldade (padrão é o número de jogadores conectados)" }, { "/set exploreradius", "[Raio=100] - Define o raio de revelação do mapa" }, { "/set jumpforce", "[Força] - Define a força do pulo (padrão 10). Cuidado com quedas altas!" }, { "/set pickup", "[Raio] - Define o raio de coleta automática (padrão 2)" }, { "/set skill", "[Habilidade] [Nível] - Define o nível de uma habilidade" }, { "/set speed", "[Tipo] [Velocidade] - Tipos: crouch (agachar, pad: 2), run (correr, pad: 7), swim (nadar, pad: 2)" }, { "/td", "[Raio=5] [Altura=1] - Escava o terreno próximo. Raio máximo de 30." }, { "/tl", "[Raio=5] - Nivela o terreno próximo. Raio máximo de 30." }, { "/tr", "[Raio=5] [Altura=1] - Eleva o terreno próximo. Raio máximo de 30." }, { "/tu", "[Raio=5] - Desfaz modificações de terreno ao seu redor. Raio máximo de 50." }, { "/spawn", "[Nome Criatura] [Nível=1] - Evoca uma criatura ou prefab à sua frente. Letras maiúsculas importam! Ex: /spawn Boar 3 (use /give para itens!)" }, { "/spawntamed", "[Nome Criatura] [Nível=1] - Evoca uma criatura domesticada à sua frente. Letras maiúsculas importam! Ex: /spawntamed Boar 3" }, { "/stopevent", "- Interrompe o evento atual" }, { "/tame", "- Domestica todas as criaturas próximas" }, { "/tod", "[0-1] - Define (e trava) a hora do dia (-1 para destravar o tempo) - Ex: /tod 0.5" }, { "/tp", "[X,Z] - Teletransporta você para as coordenadas informadas" }, { "/wind", "[Ângulo] [Intensidade] - Define a direção e intensidade do vento" }, { "/whois", "- Lista todos os jogadores" } }; internal static bool MenuFeedbackActive = false; internal static bool MenuFeedbackShown = false; internal static ModConsole ConsoleOpt { get { return consoleOpt; } set { consoleOpt = value; } } internal static void ApplyInfStamina(Player lp, bool applyOffValues) { if (!((Object)(object)lp == (Object)null)) { if (infStamina) { lp.m_staminaRegenDelay = 0.05f; lp.m_staminaRegen = 999f; lp.m_runStaminaDrain = 0f; lp.m_encumberedStaminaDrain = 0f; lp.m_swimStaminaDrainMinSkill = 0f; lp.m_swimStaminaDrainMaxSkill = 0f; lp.m_sneakStaminaDrain = 0f; } else if (applyOffValues) { lp.m_staminaRegenDelay = 1f; lp.m_staminaRegen = 5f; lp.m_runStaminaDrain = 10f; lp.m_encumberedStaminaDrain = 10f; lp.m_swimStaminaDrainMinSkill = 5f; lp.m_swimStaminaDrainMaxSkill = 2f; lp.m_sneakStaminaDrain = 5f; } } } internal static void ApplyInfEitr(Player lp, bool applyOffValues) { if (!((Object)(object)lp == (Object)null)) { if (!eitrBaselineTaken) { eitrBaselineTaken = true; baseEitrRegen = lp.m_eiterRegen; baseEitrRegenDelay = lp.m_eitrRegenDelay; } if (infEitr) { lp.m_eiterRegen = 999f; lp.m_eitrRegenDelay = 0.05f; } else if (applyOffValues) { lp.m_eiterRegen = baseEitrRegen; lp.m_eitrRegenDelay = baseEitrRegenDelay; } } } internal static void CaptureTuningBaseline(Player lp) { if (!((Object)(object)lp == (Object)null) && !tuningBaselineTaken) { tuningBaselineTaken = true; baseCarry = lp.m_maxCarryWeight; basePickup = lp.m_autoPickupRange; baseJump = ((Character)lp).m_jumpForce; baseRun = ((Character)lp).m_runSpeed; baseSwim = ((Character)lp).m_swimSpeed; baseExplore = (((Object)(object)Minimap.instance != (Object)null) ? Minimap.instance.m_exploreRadius : 100f); } } internal static void ApplyTuning(Player lp) { if (!((Object)(object)lp == (Object)null)) { CaptureTuningBaseline(lp); if (noCarryLimit) { lp.m_maxCarryWeight = 99999f; } else if (carryWeight > 0) { lp.m_maxCarryWeight = carryWeight; } if (pickupRange > 0) { lp.m_autoPickupRange = pickupRange; } if (jumpForce > 0) { ((Character)lp).m_jumpForce = jumpForce; } if (runSpeed > 0) { ((Character)lp).m_runSpeed = runSpeed; } if (swimSpeed > 0) { ((Character)lp).m_swimSpeed = swimSpeed; } if (exploreRadius > 0 && (Object)(object)Minimap.instance != (Object)null) { Minimap.instance.m_exploreRadius = exploreRadius; } } } internal static void RestoreCarryBaseline(Player lp) { if (!((Object)(object)lp == (Object)null) && tuningBaselineTaken) { lp.m_maxCarryWeight = baseCarry; } } internal static void ResetTuning(Player lp) { noCarryLimit = false; carryWeight = 0; pickupRange = 0; jumpForce = 0; runSpeed = 0; swimSpeed = 0; exploreRadius = 0; if (!((Object)(object)lp == (Object)null) && tuningBaselineTaken) { lp.m_maxCarryWeight = baseCarry; lp.m_autoPickupRange = basePickup; ((Character)lp).m_jumpForce = baseJump; ((Character)lp).m_runSpeed = baseRun; ((Character)lp).m_swimSpeed = baseSwim; if ((Object)(object)Minimap.instance != (Object)null) { Minimap.instance.m_exploreRadius = baseExplore; } } } internal static void ApplyFarInteract(Player lp, bool applyOffValues) { if (!((Object)(object)lp == (Object)null)) { if (farInteract) { lp.m_maxInteractDistance = farInteractDistance; lp.m_maxPlaceDistance = farInteractDistance; } else if (applyOffValues) { lp.m_maxInteractDistance = 5f; lp.m_maxPlaceDistance = 5f; } } } internal static void SnapshotOnDeath(Player lp) { if (!((Object)(object)lp == (Object)null)) { godEnabled = ((Character)lp).InGodMode(); flyEnabled = ((Character)lp).IsDebugFlying(); noCostEnabled = lp.NoCostCheat(); ghostEnabled = ((Character)lp).InGhostMode(); } } internal static void ReapplyOnSpawn(Player lp) { if ((Object)(object)lp == (Object)null) { return; } if (SkConfigEntry.CPersistCheatsOnDeath != null && !SkConfigEntry.CPersistCheatsOnDeath.Value) { infStamina = false; farInteract = false; godEnabled = false; flyEnabled = false; noCostEnabled = false; ghostEnabled = false; infEitr = false; immuneTo.Clear(); return; } ApplyInfStamina(lp, applyOffValues: false); ApplyInfEitr(lp, applyOffValues: false); ApplyFarInteract(lp, applyOffValues: false); ApplyTuning(lp); if (ghostEnabled && !((Character)lp).InGhostMode()) { lp.SetGhostMode(true); } if (godEnabled && !((Character)lp).InGodMode()) { lp.SetGodMode(true); } if (noCostEnabled && !lp.NoCostCheat()) { lp.SetNoPlacementCost(true); } if (flyEnabled && !((Character)lp).IsDebugFlying()) { ZNetView component = ((Component)lp).GetComponent<ZNetView>(); if ((Object)(object)component != (Object)null && component.IsValid()) { lp.ToggleDebugFly(); } } Player.m_debugMode = Player.m_debugMode || flyEnabled || noCostEnabled || SkCommandPatcher.BCheat; } public static void Announce() { if ((SkConfigEntry.CScrollable != null) & !SkConfigEntry.CScrollable.Value) { if (SkVersionChecker.VersionCurrent()) { PrintOut("==== Toolbox (" + SkVersionChecker.currentVersion?.ToString() + ") by Skrip (DS) is enabled.\t\t====", LogTo.Console); } else { PrintOut("Toolbox por Skrip (DS) está ativada.", LogTo.Console); PrintOut("New Version Available on NexusMods!\t► Current: " + SkVersionChecker.currentVersion?.ToString() + " Latest: " + SkVersionChecker.latestVersion, LogTo.DebugConsole); } PrintOut("==== Press numpad 0 to open on-screen menu or type /? 1\t====", LogTo.Console); } try { commandList = commandList.OrderBy((KeyValuePair<string, string> obj) => obj.Key).ToDictionary((KeyValuePair<string, string> obj) => obj.Key, (KeyValuePair<string, string> obj) => obj.Value); SkCommandPatcher.InitPatch(); } catch (Exception) { } } public static string DecomposeAlias(string inCommand) { string[] array = inCommand.Split(new char[1] { ';' }); string text = inCommand; if ((Object)(object)ConsoleOpt != (Object)null && ConsoleOpt.AliasList != null && ConsoleOpt.AliasList.Count > 0) { for (int i = 0; i < array.Length; i++) { if (!string.IsNullOrEmpty(array[i])) { array[i] = array[i].Trim(); } if (Enumerable.Contains(ConsoleOpt.AliasList.Keys, array[i])) { string value = string.Empty; ConsoleOpt.AliasList.TryGetValue(array[i], out value); value = value.Trim(); if (value.EndsWith(";")) { value = value.Substring(0, value.Length - 1); } array[i] = value; } } text = string.Empty; string[] array2 = array; foreach (string text2 in array2) { text = ((array.Length <= 1) ? (text + text2) : (text + text2 + ";")); } } return text; } public static void ProcessCommands(string inCommand, LogTo source, GameObject go = null) { if (string.IsNullOrEmpty(inCommand)) { return; } if ((Object)(object)Console.instance != (Object)null) { List<string> privateField = Console.instance.GetPrivateField<List<string>>("m_history"); if (privateField != null) { if (privateField.Count == 0 || privateField[privateField.Count - 1] != inCommand) { privateField.Add(inCommand); } Console.instance.SetPrivateField("m_historyPosition", privateField.Count); } } inCommand = inCommand.Trim(); inCommand = DecomposeAlias(inCommand); string[] array = inCommand.Split(new char[1] { ';' }); string[] array2 = array; foreach (string text in array2) { string text2 = text.Trim(); if (!string.IsNullOrEmpty(text2)) { ((Terminal)Console.instance).TryRunCommand(text2, false, false); } } ((TMP_InputField)((Terminal)Console.instance).m_input).text = string.Empty; } public static void InitCommands() { //IL_0043: 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_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Expected O, but got Unknown //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Expected O, but got Unknown //IL_00b5: 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_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Expected O, but got Unknown //IL_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Expected O, but got Unknown //IL_0127: 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_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_014b: 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_0156: Expected O, but got Unknown //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_0184: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Expected O, but got Unknown //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: 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_01c8: Expected O, but got Unknown //IL_020b: 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_0201: Expected O, but got Unknown //IL_0244: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Expected O, but got Unknown //IL_027d: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0273: Expected O, but got Unknown //IL_02b6: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: 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: Expected O, but got Unknown //IL_02ef: Unknown result type (might be due to invalid IL or missing references) //IL_02da: Unknown result type (might be due to invalid IL or missing references) //IL_02df: Unknown result type (might be due to invalid IL or missing references) //IL_02e5: Expected O, but got Unknown //IL_0328: Unknown result type (might be due to invalid IL or missing references) //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_0318: Unknown result type (might be due to invalid IL or missing references) //IL_031e: Expected O, but got Unknown //IL_0361: Unknown result type (might be due to invalid IL or missing references) //IL_034c: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Expected O, but got Unknown //IL_039a: Unknown result type (might be due to invalid IL or missing references) //IL_0385: Unknown result type (might be due to invalid IL or missing references) //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_0390: Expected O, but got Unknown //IL_03d3: Unknown result type (might be due to invalid IL or missing references) //IL_03be: 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_03c9: Expected O, but got Unknown //IL_040c: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_03fc: Unknown result type (might be due to invalid IL or missing references) //IL_0402: Expected O, but got Unknown //IL_0445: Unknown