From 71f561db6546739af168e042da03105a5ff864ad Mon Sep 17 00:00:00 2001 From: Platinum Date: Sat, 29 Jul 2023 10:57:31 +1000 Subject: [PATCH] feature: add custom blacklisting and blacklist dogtags --- config.json | 10 ++++++++++ src/mod.ts | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/config.json b/config.json index 2af0307..c907c3d 100644 --- a/config.json +++ b/config.json @@ -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 } ] } \ No newline at end of file diff --git a/src/mod.ts b/src/mod.ts index 7b571bb..b453502 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -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];