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

Get offers for the client based on type of search being performed

Parameters

searchRequest: ISearchRequestData

Client search request data

itemsToAdd: string[]

Comes from ragfairHelper.filterCategories()

traderAssorts: Record<string, ITraderAssort>

Trader assorts

pmcProfile: IPmcData

Player profile

Returns

array of offers