Place fence seasonal item blocking behind config propery
This commit is contained in:
parent
a04113eaa1
commit
5071072092
@ -90,6 +90,7 @@
|
||||
{
|
||||
"59e690b686f7746c9f75e848": {"min": 5, "max": 15}
|
||||
},
|
||||
"blacklistSeasonalItems": true,
|
||||
"blacklist": [
|
||||
"5661632d4bdc2d903d8b456b",
|
||||
"543be5e94bdc2df1348b4568",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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[]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user