Skip items that are listed in the custom blacklist from being set as sellable (!396)

Fixes issue #747

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/396
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
This commit is contained in:
Archangel 2024-08-15 18:03:12 +00:00 committed by chomp
parent daf70ea67f
commit 5017b01938

View File

@ -524,7 +524,7 @@ export class GameController {
protected setAllDbItemsAsSellableOnFlea(): void {
const dbItems = Object.values(this.databaseService.getItems());
for (const item of dbItems) {
if (item._type === "Item" && !item._props?.CanSellOnRagfair) {
if (item._type === "Item" && !item._props?.CanSellOnRagfair && !this.ragfairConfig.dynamic.blacklist.custom.includes(item._id)) {
item._props.CanSellOnRagfair = true;
}
}