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

Adjust price of item based on what is left to buy (resource/uses left)

Parameters

barterSchemes: Record<string, IBarterScheme[][]>

All barter scheme for item having price adjusted

itemRoot: Item

Root item having price adjusted

itemTemplate: ITemplateItem

Db template of item