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 Excuse me v1.0.4
Excuse me!.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Excuse me!")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Excuse me!")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("36e39046-d169-46d1-a7eb-13ea48b2c3f0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")] [assembly: AssemblyVersion("1.0.0.0")] namespace Excuse_me { [BepInPlugin("Hexnet.lethalcompany.excuseme", "Excuse me!", "1.0.1")] public class ExcuseMe : BaseUnityPlugin { private const string modGUID = "Hexnet.lethalcompany.excuseme"; private const string modName = "Excuse me!"; private const string modVersion = "1.0.1"; private readonly Harmony harmony = new Harmony("Hexnet.lethalcompany.excuseme"); private void Awake() { harmony.PatchAll(); Debug.Log((object)"[EM]: Excuse me! loaded successfully!"); } } } namespace Excuse_me.Patches { [HarmonyPatch] internal class BellDingerFixes { [HarmonyPatch(typeof(StartOfRound))] internal class SceneFixes { [HarmonyPatch("SceneManager_OnLoadComplete1")] [HarmonyPostfix] public static void InitializePatch(ulong clientId, string sceneName) { if (sceneName != "CompanyBuilding") { BellTrigger = null; return; } GameObject val = GameObject.Find("BellDinger/Trigger"); if ((Object)(object)val != (Object)null) { BellTrigger = val.GetComponent<InteractTrigger>(); } } } [HarmonyPatch(typeof(InteractTrigger))] internal class BellFixes { [HarmonyPatch("Interact")] [HarmonyPostfix] public static void ResetBell() { if ((Object)(object)BellTrigger != (Object)null && BellTrigger.interactCooldown) { BellTrigger.interactCooldown = false; } } } private static InteractTrigger BellTrigger; } }