remove replaced DLC weapons from trader inventory

This commit is contained in:
GenZmeY 2023-09-11 03:26:53 +03:00
parent 3580be6ea7
commit a617133ccb
Signed by: GenZmeY
GPG Key ID: 424DA4BC3CB2CF39

View File

@ -122,6 +122,11 @@ private static function bool ReplaceWeapons(
PartialUnlock = true; PartialUnlock = true;
`Log_Warn("Can't unlock item:" @ WeapDefDLC @ "SharedUnlockId:" @ WeapDefDLC.default.SharedUnlockId); `Log_Warn("Can't unlock item:" @ WeapDefDLC @ "SharedUnlockId:" @ WeapDefDLC.default.SharedUnlockId);
} }
if (RemoveItems.Find(WeapDefDLC) == INDEX_NONE)
{
RemoveItems.AddItem(WeapDefDLC);
}
} }
if (PartialUnlock) if (PartialUnlock)