using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using PersonalBoombox; 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("boomboxcoding")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("HP")] [assembly: AssemblyProduct("boomboxcoding")] [assembly: AssemblyCopyright("Copyright © HP 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("44137590-1a90-4096-aacc-ac64f8a9fb34")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace GlovesBoombox; [BepInPlugin("Gloves763.GlovesBoombox", "GlovesBoombox", "1.0.2")] [BepInProcess("Lethal Company.exe")] [BepInDependency("ImoutoSama.PersonalBoombox", "1.1.0")] public class GlovesBoomboxPlugin : BaseUnityPlugin { private const string modGUID = "Gloves763.GlovesBoombox"; private const string modName = "GlovesBoombox"; private const string modVersion = "1.0.2"; private readonly Harmony harmony = new Harmony("Gloves763.GlovesBoombox"); internal ManualLogSource logger; public ConfigEntry overridePriceFlagConfig; public ConfigEntry overridePriceValueConfig; private void Awake() { logger = Logger.CreateLogSource("Gloves763.GlovesBoombox"); logger.LogInfo((object)"Plugin GlovesBoombox has been added!"); overridePriceFlagConfig = ((BaseUnityPlugin)this).Config.Bind("General", "Override Price Flag", false, "If you want to override price of the boomboxes, you MUST set this to true."); overridePriceValueConfig = ConfigBindClamp("General", "Override Price Value", 30, "Overrides the price of the boomboxes by this value. Clamped from 0 to 1000.", 0, 1000); RequestData val = PersonalBoomboxPlugin.AddFromAssemblyDll(Assembly.GetExecutingAssembly().Location); val.overridePriceFlag = overridePriceFlagConfig.Value; val.overridePriceValue = overridePriceValueConfig.Value; } public ConfigEntry ConfigBindClamp(string section, string key, int defaultValue, string description, int min, int max) { ConfigEntry val = ((BaseUnityPlugin)this).Config.Bind(section, key, defaultValue, description); val.Value = Mathf.Clamp(val.Value, min, max); return val; } }