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 NoGunSpread v1.0.3
NoGunSpread.dll
Decompiled a year agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Unamed_mod.Patches; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Unamed mod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Unamed mod")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("6fb9dfec-26ee-4d2d-9a4b-704ee1267f46")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("Lazarus.NoGunSpread", "NoGunSpread", "1.0.0")] public class Class1 : BaseUnityPlugin { public const string modGUID = "Lazarus.NoGunSpread"; public const string modname = "NoGunSpread"; public const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Lazarus.NoGunSpread"); public void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"John 11:11!"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"WAKEY WAKEY!"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"NoGunSpread has risen!"); harmony.PatchAll(typeof(NoGunSpreadPatch)); } } namespace Unamed_mod.Patches; [HarmonyPatch(typeof(ItemGun))] internal class NoGunSpreadPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void patch(ItemGun __instance) { __instance.gunRandomSpread = 0f; } }