import { PMCLootGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/mod.ts";
Handle the generation of dynamic PMC loot in pockets and backpacks and the removal of blacklisted items
Constructors
new
PMCLootGenerator(itemHelper: ItemHelper,
databaseServer: DatabaseServer,
configServer: ConfigServer,
itemFilterService: ItemFilterService,
ragfairPriceService: RagfairPriceService,
seasonalEventService: SeasonalEventService,
weightedRandomHelper: WeightedRandomHelper,
Properties
protected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
itemFilterService: ItemFilterServiceprotected
itemHelper: ItemHelperprotected
pmcConfig: IPmcConfigprotected
ragfairPriceService: RagfairPriceServiceprotected
seasonalEventService: SeasonalEventServiceprotected
weightedRandomHelper: WeightedRandomHelperMethods
protected
itemFitsInto2By2Slot(item: ITemplateItem): booleanCheck if item has a width/height that lets it fit into a 2x2 slot 1x1 / 1x2 / 2x1 / 2x2
generatePMCBackpackLootPool(botRole: string): Record<string, number>
Create an array of loot items a PMC can have in their backpack
generatePMCPocketLootPool(botRole: string): Record<string, number>
Create an array of loot items a PMC can have in their pockets
generatePMCVestLootPool(botRole: string): Record<string, number>
Create an array of loot items a PMC can have in their vests