mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Fix scav case erroring on item generation
This commit is contained in:
parent
38371f47fb
commit
45788e1489
@ -90,12 +90,21 @@ export class ScavCaseRewardGenerator
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (item._type === "Node")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Skip item if item id is on blacklist or boss item
|
||||
// Skip item if item id is on blacklist
|
||||
if ((item._type !== "Item")
|
||||
|| this.scavCaseConfig.rewardItemBlacklist.includes(item._id)
|
||||
|| this.itemFilterService.isItemBlacklisted(item._id)
|
||||
|| ( !this.scavCaseConfig.allowBossItemsAsRewards || this.itemFilterService.isBossItem(item._id)))
|
||||
|| this.itemFilterService.isItemBlacklisted(item._id))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.scavCaseConfig.allowBossItemsAsRewards && this.itemFilterService.isBossItem(item._id))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user