mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 05:10:45 -05:00
Add RemoveClothingItemExternalObtainLabelPatch (!163)
Needs to be tested, I am in the process of updating my client to the latest version. If you cannot test right now I'll do it once I am done. Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com> Reviewed-on: SPT/Modules#163 Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com> Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
d4c10c4765
commit
00a880e49c
@ -0,0 +1,20 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -62,6 +62,7 @@ namespace SPT.SinglePlayer
|
|||||||
new InsuranceScreenPatch().Enable();
|
new InsuranceScreenPatch().Enable();
|
||||||
new FixQuestAchieveControllersPatch().Enable();
|
new FixQuestAchieveControllersPatch().Enable();
|
||||||
new RemoveStashUpgradeLabelPatch().Enable();
|
new RemoveStashUpgradeLabelPatch().Enable();
|
||||||
|
new RemoveClothingItemExternalObtainLabelPatch().Enable();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user