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 DisableLandmines v1.0.2
NoLandmines.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 NoLandmines.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("NoLandmines")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NoLandmines")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("7baaeaae-c699-4fad-bc72-84e294a8b327")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace NoLandmines { [BepInPlugin("SpiralMods", "No Landmines", "1.0.0")] public class NoLandminesBase : BaseUnityPlugin { private const string modGUID = "SpiralMods"; private const string modName = "No Landmines"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("SpiralMods"); private static NoLandminesBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("SpiralMods"); mls.LogInfo((object)"NoLandmines has loaded."); harmony.PatchAll(typeof(NoLandminesBase)); harmony.PatchAll(typeof(LandminePatch)); harmony.PatchAll(typeof(Turret)); } } } namespace NoLandmines.Patches { [HarmonyPatch(typeof(Landmine))] internal class LandminePatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void patchUpdate(ref bool ___mineActivated) { ___mineActivated = false; } } }