Skip to main content
The Deno 2 Release Candidate is here
Learn more
method BotLootCacheService.prototype.getLootFromCache
import { BotLootCacheService } from "https://deno.land/x/sptaki@1.2.0/services/BotLootCacheService.d.ts";

Get the fully created loot array, ordered by price low to high

Parameters

botRole: string

bot to get loot for

isPmc: boolean

is the bot a pmc

lootType: LootCacheType

what type of loot is needed (backpack/pocket/stim/vest etc)

botJsonTemplate: IBotType

Base json db file for the bot having its loot generated

Returns

Record<string, number>

ITemplateItem array