feature: add custom blacklisting and blacklist dogtags
This commit is contained in:
parent
03d05ecad6
commit
71f561db65
10
config.json
10
config.json
@ -55,6 +55,16 @@
|
|||||||
"itemIdHint": "GP-25 40mm UGL",
|
"itemIdHint": "GP-25 40mm UGL",
|
||||||
"itemId": "62e7e7bbe6da9612f743f1e0",
|
"itemId": "62e7e7bbe6da9612f743f1e0",
|
||||||
"fleaPriceOverride": 150000
|
"fleaPriceOverride": 150000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"itemIdHint": "Dogtag BEAR",
|
||||||
|
"itemId": "59f32bb586f774757e1e8442",
|
||||||
|
"blacklisted": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"itemIdHint": "Dogtag USEC",
|
||||||
|
"itemId": "59f32c3b86f77472a31742f0",
|
||||||
|
"blacklisted": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -90,6 +90,12 @@ class TheBlacklistMod implements IPostDBLoadMod {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (customItemConfig?.blacklisted) {
|
||||||
|
this.debug(`Blacklisted item ${item._id} - ${item._name} due to its customItemConfig.`);
|
||||||
|
ragfairConfig.dynamic.blacklist.custom.push(item._id);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (config.limitMaxPriceOfAttachments && this.attachmentCategoryIds.includes(handbookItem.ParentId)) {
|
if (config.limitMaxPriceOfAttachments && this.attachmentCategoryIds.includes(handbookItem.ParentId)) {
|
||||||
const handbookPrice = handbookItem.Price;
|
const handbookPrice = handbookItem.Price;
|
||||||
const existingFleaPrice = prices[item._id];
|
const existingFleaPrice = prices[item._id];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user