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 Lethal Company Plus v1.4.3
LethalCompanyPlus.dll
Decompiled 9 months agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using CustomStoryLogs; using LethalMoonUnlocks; 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("LethalCompanyPlus")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("LethalCompanyPlus")] [assembly: AssemblyTitle("LethalCompanyPlus")] [assembly: AssemblyVersion("1.0.0.0")] namespace LethalCompanyPlus; [BepInPlugin("HeroVFX.lethalcompanyplus", "Lethal Company Plus", "1.0.0")] public class MoonUnlocker : BaseUnityPlugin { private static MoonUnlocker _instance; private void Awake() { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Expected O, but got Unknown //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Expected O, but got Unknown //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Expected O, but got Unknown _instance = this; CustomStoryLogs.AnyLogCollectEvent = (LogCollected)Delegate.Combine((Delegate?)(object)CustomStoryLogs.AnyLogCollectEvent, (Delegate?)new LogCollected(OnAnyLogCollected)); UnlockManager.OnCollectStoryLockedMoons += new DesignateStoryUnlocks(OnCollectStoryLockedMoons); } private static List<string> OnCollectStoryLockedMoons() { return new List<string> { "Atlas Abyss", "Bozoros", "Luigis Mansion" }; } public static void OnAnyLogCollected(int logID) { if ((Object)(object)_instance != (Object)null) { ((BaseUnityPlugin)_instance).Logger.LogInfo((object)$"Log collected with ID: {logID}"); } Dictionary<int, string> dictionary = new Dictionary<int, string> { { 1614930972, "Atlas Abyss" }, { 2017494550, "Bozoros" }, { -1653261251, "Luigis Mansion" } }; if (dictionary.ContainsKey(logID)) { string text = dictionary[logID]; UnlockManager.TryReleaseStoryLock(text); ((BaseUnityPlugin)_instance).Logger.LogInfo((object)(text + " unlocked successfully.")); } } }