From a617133ccb9e87cc9be16c16834e7291e44370f1 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 11 Sep 2023 03:26:53 +0300 Subject: [PATCH] remove replaced DLC weapons from trader inventory --- CTI/Classes/Unlocker.uc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CTI/Classes/Unlocker.uc b/CTI/Classes/Unlocker.uc index 12e4ef0..5524c2c 100644 --- a/CTI/Classes/Unlocker.uc +++ b/CTI/Classes/Unlocker.uc @@ -122,6 +122,11 @@ private static function bool ReplaceWeapons( PartialUnlock = true; `Log_Warn("Can't unlock item:" @ WeapDefDLC @ "SharedUnlockId:" @ WeapDefDLC.default.SharedUnlockId); } + + if (RemoveItems.Find(WeapDefDLC) == INDEX_NONE) + { + RemoveItems.AddItem(WeapDefDLC); + } } if (PartialUnlock)