import { BotLootGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/BotLootGenerator.d.ts";
Constructors
Properties
Methods
Force healing items onto bot to ensure they can heal in-raid
Add generated weapons to inventory as loot
Take random items from a pool and add to an inventory until totalItemCount or totalValueLimit or space limit is reached
Some items need child items to function, add them to the itemToAddChildrenTo array
Get an array of the containers a bot has on them (pockets/backpack/vest)
Get spawn limits for a specific bot type from bot.json config If no limit found for a non pmc bot, fall back to defaults
Get the parentId or tplId of item inside spawnLimits object if it exists
Get a biased random number
Hydrate item limit array to contain items that have a limit for a specific bot type All values are set to 0
Check if an item has reached its bot-specific spawn limit
Randomise the size of an ammo stack
Randomise the stack size of a money object, uses different values for pmc or scavs
Add loot to bots containers