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 AffordableBoombox v1.0.0
AffordableBoombox.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; using replaceable_objects.Patches; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("AffordableBoombox")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("AffordableBoombox")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("6dea481f-58f6-485d-9b0d-e0ae2bf75586")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace replaceable_objects.Patches { [HarmonyPatch(typeof(Terminal))] internal class pricePatch { [HarmonyPatch("SetItemSales")] [HarmonyPostfix] private static void StorePrices(ref Item[] ___buyableItemsList) { ___buyableItemsList[6].creditsWorth = 5; } } } namespace AffordableBoombox { [BepInPlugin("Poseidon.affordableBoombox", "Replacable Boombox MOD", "1.0.0")] public class AffordableBoomboxBase : BaseUnityPlugin { private const string modGUID = "Poseidon.affordableBoombox"; private const string modName = "Replacable Boombox MOD"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Poseidon.affordableBoombox"); private static AffordableBoomboxBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Poseidon.affordableBoombox"); mls.LogInfo((object)"The boombox is now affordable!"); harmony.PatchAll(typeof(pricePatch)); } } }