import { BotEquipmentModPoolService } from "https://deno.land/x/sptaki@1.2.0/services/BotEquipmentModPoolService.d.ts";
Store a mapping between weapons, their slots and the items that fit those slots
Constructors
new
BotEquipmentModPoolService(logger: ILogger,
vfs: VFS,
itemHelper: ItemHelper,
databaseServer: DatabaseServer,
localisationService: LocalisationService,
configServer: ConfigServer,
Properties
protected
botConfig: IBotConfigprotected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
gearModPool: Modsprotected
itemHelper: ItemHelperprotected
localisationService: LocalisationServiceprotected
logger: ILoggerprotected
vfs: VFSprotected
weaponModPool: ModsMethods
protected
generateGearPool(): voidCreate gear mod pool and set generated flag to true
protected
generatePool(items: ITemplateItem[], poolType: string): voidStore dictionary of mods for each item passed in
protected
generateWeaponPool(): voidCreate weapon mod pool and set generated flag to true
getCompatibleModsFoGearSlot(itemTpl: string, slotName: string): string[]
Get array of compatible mods for an items mod slot (generate pool if it doesnt exist already)
getCompatibleModsForWeaponSlot(itemTpl: string, slotName: string): string[]
Get array of compatible mods for an items mod slot (generate pool if it doesnt exist already)
getModsForGearSlot(itemTpl: string): Record<string, string[]>
Get mods for a piece of gear by its tpl
getModsForWeaponSlot(itemTpl: string): Record<string, string[]>
Get mods for a weapon by its tpl
resetPool(): void
Empty the mod pool