using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("SilverSkillPlugin")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SilverSkillPlugin")] [assembly: AssemblyTitle("SilverSkillPlugin")] [assembly: AssemblyVersion("1.0.0.0")] namespace SilverSkill; [BepInPlugin("fierrof.silverskill", "Silver Skill", "1.0.0")] public class SilverSkillPlugin : BaseUnityPlugin { private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("fierrof.silverskill").PatchAll(); } } [HarmonyPatch(typeof(Item), "OnUse")] public class SilverPulsePatch { private static void Postfix(Item __instance, Character _targetChar) { if (__instance.ItemID == -59237 && (Object)(object)_targetChar != (Object)null && !PhotonNetwork.isNonMasterClientInRoom) { _targetChar.Inventory.AddMoney(100); } } }