2024-07-05 15:40:14 +01:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using EFT.UI;
|
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using SPT.Reflection.Patching;
|
|
|
|
|
|
|
|
|
|
namespace SPT.SinglePlayer.Patches.MainMenu
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Remove BSG's check for Ref as the TraderID so we get Ref on the interm screen
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EnableRefIntermScreenPatch : ModulePatch
|
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
2024-09-26 14:13:30 +01:00
|
|
|
|
return AccessTools.Method(typeof(MerchantsList.Class2783), nameof(MerchantsList.Class2783.method_0));
|
2024-07-05 15:40:14 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPrefix]
|
2024-08-02 16:57:59 +01:00
|
|
|
|
public static bool PatchPrefix(ref bool __result)
|
2024-07-05 15:40:14 +01:00
|
|
|
|
{
|
|
|
|
|
__result = false;
|
|
|
|
|
return false; // Do not run original method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|