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

Looks up an items children and gets total handbook price for them

Parameters

parentItemId: string

parent item that has children we want to sum price of

items: Item[]

All items (parent + children)

handbookPrices: Record<string, number>

Prices of items from handbook

traderDetails: ITraderBase

Trader being sold to to perform buy category check against

Returns

number

Rouble price