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}
|
"59e690b686f7746c9f75e848": {"min": 5, "max": 15}
|
||||||
},
|
},
|
||||||
|
"blacklistSeasonalItems": true,
|
||||||
"blacklist": [
|
"blacklist": [
|
||||||
"5661632d4bdc2d903d8b456b",
|
"5661632d4bdc2d903d8b456b",
|
||||||
"543be5e94bdc2df1348b4568",
|
"543be5e94bdc2df1348b4568",
|
||||||
|
@ -73,7 +73,7 @@ export class FenceBaseAssortGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Skip seasonal event items when not in seasonal event
|
// Skip seasonal event items when not in seasonal event
|
||||||
if (blockedSeasonalItems.includes(item._id))
|
if (this.traderConfig.fence.blacklistSeasonalItems && blockedSeasonalItems.includes(item._id))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,8 @@ export interface FenceConfig
|
|||||||
itemStackSizeOverrideMinMax: Record<string, MinMax>
|
itemStackSizeOverrideMinMax: Record<string, MinMax>
|
||||||
itemTypeLimits: Record<string, number>
|
itemTypeLimits: Record<string, number>
|
||||||
regenerateAssortsOnRefresh: boolean
|
regenerateAssortsOnRefresh: boolean
|
||||||
|
/** Block seasonal items from appearing when season is inactive */
|
||||||
|
blacklistSeasonalItems: boolean;
|
||||||
blacklist: string[]
|
blacklist: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user