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

// This method, along with calculateItemWorth, is trying to mirror the client-side code found in the method "CalculateTaxPrice". // It's structured to resemble the client-side code as closely as possible - avoid making any big structure changes if it's not necessary.

Parameters

item: Item

Item being sold on flea

pmcData: IPmcData

player profile

requirementsValue: number
offerItemCount: number

Number of offers being created

sellInOnePiece: boolean

Returns

number

Tax in roubles