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

Calculate the overall price for an ammo box, where only one item is the ammo box itself and every other items are the bullets in that box

Parameters

items: Item[]

the ammo box (and all its children ammo items)

Returns

number

the price of the ammo box