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/RemoveClothingItemExternalObtainLabelPatch.cs
2024-09-26 14:04:00 +01:00

24 lines
573 B
C#

using EFT.UI;
using SPT.Reflection.Patching;
using System.Reflection;
namespace SPT.SinglePlayer.Patches.MainMenu
{
/// <summary>
/// Remove the label shown on some of Ragmans clothing options to "buy from website"
/// </summary>
internal class RemoveClothingItemExternalObtainLabelPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(ClothingItem).GetMethod(nameof(ClothingItem.Init));
}
[PatchPrefix]
private static void Prefix(ref ClothingItem.GClass3372 offer)
{
offer.Offer.ExternalObtain = false;
}
}
}