mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
21 lines
456 B
C#
21 lines
456 B
C#
![]() |
using EFT.UI;
|
|||
|
using SPT.Reflection.Patching;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
namespace SPT.SinglePlayer.Patches.MainMenu
|
|||
|
{
|
|||
|
internal class RemoveClothingItemExternalObtainLabelPatch : ModulePatch
|
|||
|
{
|
|||
|
protected override MethodBase GetTargetMethod()
|
|||
|
{
|
|||
|
return typeof(ClothingItem).GetMethod(nameof(ClothingItem.Init));
|
|||
|
}
|
|||
|
|
|||
|
[PatchPrefix]
|
|||
|
private static void Prefix(ref ClothingItem.GClass3338 offer)
|
|||
|
{
|
|||
|
offer.Offer.ExternalObtain = false;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|