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

Calculates the overall price for an item (with all its children)

Parameters

itemTpl: string

the item tpl to calculate the fence price for

items: Item[]

the items (with its children) to calculate fence price for

Returns

number

the fence price of the item