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

Return the price of the preset for the given item tpl, or for the tpl itself if no preset exists

Parameters

tpl: string

The item template to get the price of

Returns

number

The price of the given item preset, or base item if no preset exists