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

Generate loot for a bot and store inside a private class property

Parameters

botRole: string

bots role (assault / pmcBot etc)

isPmc: boolean

Is the bot a PMC (alteres what loot is cached)

botJsonTemplate: IBotType

db template for bot having its loot generated