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

using data from config, adjust an items price to be relative to its handbook price

Parameters

handbookPrices: HandbookItem[]

Prices of items in handbook

unreasonableItemChange: IUnreasonableModPrices

Change object from config

itemTpl: string

Item being adjusted

price: number

Current price of item

Returns

number

Adjusted price of item