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 DisableTurrets v1.0.1
NoTurrets.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 HarmonyLib; using NoTurrets.Patches; 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("NoTurrets")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NoTurrets")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("4e2f441d-c53f-4545-9787-96ec16c448ce")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace NoTurrets { [BepInPlugin("SpiralMods", "No Turrets", "1.0.0")] public class NoTurretsBase : BaseUnityPlugin { private const string modGUID = "SpiralMods"; private const string modName = "No Turrets"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("SpiralMods"); private static NoTurretsBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("SpiralMods"); mls.LogInfo((object)"NoTurrets has loaded."); harmony.PatchAll(typeof(NoTurretsBase)); harmony.PatchAll(typeof(TurretPatch)); harmony.PatchAll(typeof(Turret)); } } } namespace NoTurrets.Patches { [HarmonyPatch(typeof(Turret))] internal class TurretPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void patchUpdate(ref bool ___turretActive) { ___turretActive = false; } } }