Place fence seasonal item blocking behind config propery

This commit is contained in:
Dev 2023-07-22 14:16:19 +01:00
parent a04113eaa1
commit 5071072092
3 changed files with 4 additions and 1 deletions

View File

@ -90,6 +90,7 @@
{
"59e690b686f7746c9f75e848": {"min": 5, "max": 15}
},
"blacklistSeasonalItems": true,
"blacklist": [
"5661632d4bdc2d903d8b456b",
"543be5e94bdc2df1348b4568",

View File

@ -73,7 +73,7 @@ export class FenceBaseAssortGenerator
}
// Skip seasonal event items when not in seasonal event
if (blockedSeasonalItems.includes(item._id))
if (this.traderConfig.fence.blacklistSeasonalItems && blockedSeasonalItems.includes(item._id))
{
continue;
}

View File

@ -34,6 +34,8 @@ export interface FenceConfig
itemStackSizeOverrideMinMax: Record<string, MinMax>
itemTypeLimits: Record<string, number>
regenerateAssortsOnRefresh: boolean
/** Block seasonal items from appearing when season is inactive */
blacklistSeasonalItems: boolean;
blacklist: string[]
}