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 InfiniteWeed v1.0.1
InfiniteWeed.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 UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("InfiniteWeed")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("InfiniteWeed")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c03704e0-d35c-4162-8bf0-0bd7a375ed0d")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")] [assembly: AssemblyVersion("1.0.0.0")] namespace InfiniteWeed { [BepInPlugin("egvan.InfiniteWeed", "Infinite Super Weed Killer", "1.0.0.0")] public class TheWeed : BaseUnityPlugin { private const string modGUID = "egvan.InfiniteWeed"; private const string modName = "Infinite Super Weed Killer"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("egvan.InfiniteWeed"); private static TheWeed Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("egvan.InfiniteWeed"); harmony.PatchAll(); mls.LogInfo((object)"Plugin egvan.InfiniteWeed is loaded!"); } } } namespace InfiniteWeed.Patches { [HarmonyPatch(typeof(SprayPaintItem))] internal class SprayPaintItemPatch { [HarmonyPatch("LateUpdate")] [HarmonyPostfix] private static void infiniteSprayPatch(ref float ___sprayCanTank) { ___sprayCanTank = 1f; } [HarmonyPatch("LateUpdate")] [HarmonyPostfix] private static void infiniteCanShakePatch(ref float ___sprayCanShakeMeter) { ___sprayCanShakeMeter = 1f; } } }