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 DynamicCompany v1.1.1
DynamicCompany/Dynamic Comapny.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 BepInEx.Logging; using Dynamic_Comapny.Patches; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("Dynamic Comapny")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Dynamic Comapny")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("4be94a4c-eef7-4fb6-9175-ad1d27bcc5f6")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace Dynamic_Comapny { [BepInPlugin("Netoper.DynamicCompany", "Dynamic Company", "1.0")] public class DynamicCompanyBase : BaseUnityPlugin { private const string modGUID = "Netoper.DynamicCompany"; private const string modName = "Dynamic Company"; private const string modVersion = "1.0"; private readonly Harmony harmony = new Harmony("Netoper.DynamicCompany"); private static DynamicCompanyBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Netoper.DynamicCompany"); mls.LogInfo((object)"DynamicCompany has loaded"); mls.LogFatal((object)"Krystian noob"); harmony.PatchAll(typeof(DynamicCompanyBase)); harmony.PatchAll(typeof(BetterTerminal)); } } } namespace Dynamic_Comapny.Patches { [HarmonyPatch(typeof(Terminal))] internal class BetterTerminal { [HarmonyPatch("Start")] [HarmonyPostfix] private static void start(Terminal __instance) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown TerminalNode val = new TerminalNode(); ((Object)val).name = "lights"; val.clearPreviousText = true; val.terminalEvent = "togglelights"; val.displayText = "Toggling ship lights! \n\n\n"; TerminalKeyword val2 = ScriptableObject.CreateInstance<TerminalKeyword>(); val2.word = "lights"; ((Object)val2).name = "lights"; val2.isVerb = true; val2.specialKeywordResult = val; __instance.terminalNodes.allKeywords = CollectionExtensions.AddToArray<TerminalKeyword>(__instance.terminalNodes.allKeywords, val2); } [HarmonyPatch("RunTerminalEvents")] [HarmonyPostfix] private static void runTerminalEvents(TerminalNode node) { //IL_002e: Unknown result type (might be due to invalid IL or missing references) if (!string.IsNullOrWhiteSpace(node.terminalEvent) && node.terminalEvent == "togglelights") { ((StartOfRound)Object.FindAnyObjectByType(typeof(StartOfRound))).shipRoomLights.ToggleShipLights(); } } } }