import { RagfairAssortGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/RagfairAssortGenerator.d.ts";
Constructors
new
RagfairAssortGenerator(jsonUtil: JsonUtil,
hashUtil: HashUtil,
itemHelper: ItemHelper,
presetHelper: PresetHelper,
databaseServer: DatabaseServer,
seasonalEventService: SeasonalEventService,
configServer: ConfigServer,
Properties
protected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
generatedAssortItems: Item[][]protected
hashUtil: HashUtilprotected
itemHelper: ItemHelperprotected
jsonUtil: JsonUtilprotected
presetHelper: PresetHelperprotected
ragfairConfig: IRagfairConfigprotected
seasonalEventService: SeasonalEventServiceMethods
protected
assortsAreGenerated(): booleanCheck internal generatedAssortItems array has objects
protected
createRagfairAssortRootItem(tplId: string, id?: string): ItemCreate a base assort item and return it with populated values + 999999 stack count + unlimited count = true
protected
generateRagfairAssortItems(): Item[][]Generate an array of arrays (item + children) the flea can sell
protected
getPresetsToAdd(): IPreset[]Get presets from globals to add to flea ragfairConfig.dynamic.showDefaultPresetsOnly decides if its all presets or just defaults
getAssortItems(): Item[][]
Get an array of arrays that can be sold on the flea Each sub array contains item + children (if any)