using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("DemoInjectors")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("DemoInjectors")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("01eaaaf5-a5a2-401b-ad9e-877bc1d62c88")] [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 DemoInjectors; [BepInPlugin("um.wk.demoinjectors", "DemoInjectors", "1.0")] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) ((BaseUnityPlugin)this).Logger.LogInfo((object)"hi, if you're seeing this in the log, injectors in vendors are fixed, you can delete this mod now"); new Harmony("um.wk.demoinjectors").PatchAll(); } } [HarmonyPatch(typeof(CL_GameManager), "Start")] public class DemoInjectorsPatch { [HarmonyPostfix] public static void Postfix(CL_GameManager __instance) { StatManager.saveData.gameStats.SetStatistic("vendor_item_injector", (object)2, (DataType)0); } }