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

Calculate the cost of a weapon preset by adding together the price of its mods + base price of default weapon preset

Parameters

weaponRootItem: Item

base weapon

weaponWithChildren: Item[]

weapon plus mods

existingPrice: number

price of existing base weapon

Returns

number

price of weapon in roubles