using System.Reflection; using EFT.UI; using HarmonyLib; using SPT.Reflection.Patching; namespace SPT.SinglePlayer.Patches.MainMenu { /// /// Remove BSG's check for Ref as the TraderID so we get Ref on the interm screen /// public class EnableRefIntermScreenPatch : ModulePatch { protected override MethodBase GetTargetMethod() { return AccessTools.Method(typeof(MerchantsList.Class2783), nameof(MerchantsList.Class2783.method_0)); } [PatchPrefix] public static bool PatchPrefix(ref bool __result) { __result = false; return false; // Do not run original method } } }