remove replaced DLC weapons from trader inventory
This commit is contained in:
parent
3580be6ea7
commit
a617133ccb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user