using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; 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("ClassLibrary1")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ClassLibrary1")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("dba058d1-5e28-47db-aea9-8b41baf69d29")] [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 ExamplePlugin; [BepInPlugin("happy", "dropbepinex", "1.0.0.0")] public class drop : BaseUnityPlugin { private InventoryUI iui; private int mode = 0; private void Awake() { } private void Update() { InventoryItem val = ScriptableObject.CreateInstance(); Hotbar val2 = Object.FindObjectOfType(); if ((Object)(object)iui == (Object)null) { val.id = 50; } if (mode >= 4) { mode = 0; } if (mode == 0) { val.id = 50; val.amount = 999; } if (mode == 1) { val.id = 3; val.amount = 999; } if (mode == 2) { val.id = Random.Range(0, 151); val.amount = 1; } if (mode == 3 && (Object)(object)val2.currentItem != (Object)null && (Object)(object)val2 != (Object)null) { val.id = val2.currentItem.id; val.amount = val2.currentItem.amount; } if (Input.GetKey((KeyCode)120)) { iui = Object.FindObjectOfType(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"grabbing ui class"); } if (Input.GetKey((KeyCode)122)) { ((BaseUnityPlugin)this).Logger.LogInfo((object)("dropping:" + (object)val)); iui.DropItemIntoWorld(val); iui.DropItemIntoWorld(val); } if (Input.GetKeyDown((KeyCode)99)) { mode++; if (mode == 0) { ((BaseUnityPlugin)this).Logger.LogMessage((object)"mode: meat"); } if (mode == 1) { ((BaseUnityPlugin)this).Logger.LogMessage((object)"mode: coins"); } if (mode == 2) { ((BaseUnityPlugin)this).Logger.LogMessage((object)"mode: random"); } if (mode == 3) { ((BaseUnityPlugin)this).Logger.LogMessage((object)"mode: copy held item"); } } } }