using EFT.UI; using SPT.Reflection.Patching; using System.Reflection; namespace SPT.SinglePlayer.Patches.MainMenu { /// /// Remove the label shown on some of Ragmans clothing options to "buy from website" /// 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; } } }