Please disclose if your mod was created primarily 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 No Shake Spray Paint v1.0.0
NoShakeSprayPaint.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("NoShakeSprayPaint")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NoShakeSprayPaint")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("4e1cd9fe-e255-4259-a678-87c8c608c5b6")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace NoShakeSprayPaint; [BepInPlugin("Sombre.NoShakeSprayPaint", "No Shake Spray Paint", "1.0.0")] public class NoShake : BaseUnityPlugin { private const string PLUGIN_GUID = "Sombre.NoShakeSprayPaint"; private const string PLUGIN_NAME = "No Shake Spray Paint"; private const string PLUGIN_VERSION = "1.0.0"; private readonly Harmony harmony = new Harmony("Sombre.NoShakeSprayPaint"); private static NoShake Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Sombre.NoShakeSprayPaint"); mls.LogInfo((object)"------No Shake Spray Paint done.------"); harmony.PatchAll(typeof(SprayPaintItemPatch)); } } [HarmonyPatch(typeof(SprayPaintItem))] internal class SprayPaintItemPatch { [HarmonyPatch("LateUpdate")] [HarmonyPostfix] private static void LateUpdatePatch(ref float ___sprayCanTank, ref float ___sprayCanShakeMeter) { ___sprayCanTank = 1f; ___sprayCanShakeMeter = 1f; } }