0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 08:50:43 -05:00
modules/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs
2024-09-26 14:13:30 +01:00

25 lines
709 B
C#

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()
{
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
}
}
}