0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
modules/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs
2024-07-17 15:45:37 +01:00

25 lines
710 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.Class2719), nameof(MerchantsList.Class2719.method_0));
}
[PatchPrefix]
private static bool PatchPrefix(ref bool __result)
{
__result = false;
return false; // Do not run original method
}
}
}