feature: add custom blacklisting and blacklist dogtags

This commit is contained in:
Platinum 2023-07-29 10:57:31 +10:00
parent 03d05ecad6
commit 71f561db65
2 changed files with 16 additions and 0 deletions

View File

@ -55,6 +55,16 @@
"itemIdHint": "GP-25 40mm UGL",
"itemId": "62e7e7bbe6da9612f743f1e0",
"fleaPriceOverride": 150000
},
{
"itemIdHint": "Dogtag BEAR",
"itemId": "59f32bb586f774757e1e8442",
"blacklisted": true
},
{
"itemIdHint": "Dogtag USEC",
"itemId": "59f32c3b86f77472a31742f0",
"blacklisted": true
}
]
}

View File

@ -90,6 +90,12 @@ class TheBlacklistMod implements IPostDBLoadMod {
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)) {
const handbookPrice = handbookItem.Price;
const existingFleaPrice = prices[item._id];