using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("No Door")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("0.0.1.0")] [assembly: AssemblyInformationalVersion("0.0.1")] [assembly: AssemblyProduct("No Door")] [assembly: AssemblyTitle("No Door")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.1.0")] [module: UnverifiableCode] [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 NoDoor { [BepInPlugin("shenxl.NoDoor", "NoDoor", "0.0.1")] public class Plugin : BaseUnityPlugin { public const string ModGUID = "shenxl.NoDoor"; public const string ModName = "NoDoor"; public const string ModVersion = "0.0.1"; private Harmony _harmony; internal static ManualLogSource Logger; private void Awake() { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown ((Object)((Component)this).gameObject).hideFlags = (HideFlags)61; Logger = ((BaseUnityPlugin)this).Logger; _harmony = new Harmony("shenxl.NoDoor"); _harmony.PatchAll(); } public static void cheats() { CommandConsole.cheatsEnabled = true; CommandConsole.hasCheated = true; } } [HarmonyPatch(typeof(DEN_EngravedDoor))] public class Patch_DEN_EngravedDoor { [HarmonyPatch("OnEnable")] [HarmonyPostfix] public static void Patch_OnEnable(DEN_EngravedDoor __instance) { CL_GameManager gMan = CL_GameManager.gMan; if (gMan != null) { CL_UIManager uiMan = gMan.uiMan; if (uiMan != null) { uiMan.highscoreHeader.ShowText("Close The Door\nCheat mode is enabled\nscores will not be recorded on the leaderboard"); } } Plugin.cheats(); Object.Destroy((Object)(object)((Component)__instance).gameObject); __instance = null; } } }