2024-08-24 10:35:20 +00:00
|
|
|
|
using EFT.UI;
|
|
|
|
|
using SPT.Reflection.Patching;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace SPT.SinglePlayer.Patches.MainMenu
|
|
|
|
|
{
|
2024-08-28 12:52:54 +01:00
|
|
|
|
/// <summary>
|
2024-09-16 15:02:51 +01:00
|
|
|
|
/// Remove the label shown on some of Ragmans clothing options to "buy from website"
|
2024-08-28 12:52:54 +01:00
|
|
|
|
/// </summary>
|
2024-08-24 10:35:20 +00:00
|
|
|
|
internal class RemoveClothingItemExternalObtainLabelPatch : ModulePatch
|
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
|
|
|
|
return typeof(ClothingItem).GetMethod(nameof(ClothingItem.Init));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPrefix]
|
2024-09-26 14:04:00 +01:00
|
|
|
|
private static void Prefix(ref ClothingItem.GClass3372 offer)
|
2024-08-24 10:35:20 +00:00
|
|
|
|
{
|
|
|
|
|
offer.Offer.ExternalObtain = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|