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

Add a specific number of cartridges to a bots inventory (defaults to vest and pockets)

Parameters

ammoTpl: string

Ammo tpl to add to vest/pockets

cartridgeCount: number

number of cartridges to add to vest/pockets

inventory: Inventory

bot inventory to add cartridges to

optional
equipmentSlotsToAddTo: EquipmentSlots[]

what equipment slots should bullets be added into