Skip to main content
Deno 2 is finally here 🎉️
Learn more
method RagfairPriceService.prototype.adjustUnreasonablePrice
Re-export
import { RagfairPriceService } from "https://deno.land/x/sptaki@1.2.0/services/mod.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