import { RagfairTaxService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Constructors
new
RagfairTaxService(logger: ILogger,
databaseServer: DatabaseServer,
ragfairPriceService: RagfairPriceService,
itemHelper: ItemHelper,
Properties
protected
databaseServer: DatabaseServerprotected
itemHelper: ItemHelperprotected
logger: ILoggerprotected
playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>protected
ragfairPriceService: RagfairPriceServiceMethods
protected
calculateItemWorth(): numbercalculateTax(): number
item: Item,
pmcData: IPmcData,
requirementsValue: number,
offerItemCount: number,
sellInOnePiece: boolean,
// 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.
clearStoredOfferTaxById(offerIdToRemove: string): void
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void