import { ItemFilterService } from "https://deno.land/x/sptaki@1.2.0/services/ItemFilterService.d.ts";
Centralise the handling of blacklisting items, uses blacklist found in config/item.json, stores items that should not be used by players / broken items
Constructors
Properties
protected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
itemConfig: IItemConfigprotected
logger: ILoggerMethods
getBlacklistedItems(): string[]
Return every template id blacklisted in config/item.json
getBossItems(): string[]
Return boss items in config/item.json
getItemRewardBlacklist(): string[]
Get an array of items that should never be given as a reward to player
isBossItem(tpl: string): boolean
Check if the provided template id is boss item in config/item.json
isItemBlacklisted(tpl: string): boolean
Check if the provided template id is blacklisted in config/item.json
isItemRewardBlacklisted(tpl: string): boolean
Check if item is blacklisted from being a reward for player