2024-08-05 10:45:19 +00:00
|
|
|
import { IEliminationConfig, IQuestConfig, IRepeatableQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
|
|
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
|
|
|
import { MathUtil } from "@spt/utils/MathUtil";
|
|
|
|
import { ProbabilityObject, ProbabilityObjectArray } from "@spt/utils/RandomUtil";
|
|
|
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
2024-04-03 20:15:11 +11:00
|
|
|
export declare class RepeatableQuestHelper {
|
|
|
|
protected mathUtil: MathUtil;
|
|
|
|
protected configServer: ConfigServer;
|
2024-08-05 10:45:19 +00:00
|
|
|
protected cloner: ICloner;
|
2024-04-03 20:15:11 +11:00
|
|
|
protected questConfig: IQuestConfig;
|
2024-08-05 10:45:19 +00:00
|
|
|
constructor(mathUtil: MathUtil, configServer: ConfigServer, cloner: ICloner);
|
2024-04-03 20:15:11 +11:00
|
|
|
/**
|
|
|
|
* Get the relevant elimination config based on the current players PMC level
|
|
|
|
* @param pmcLevel Level of PMC character
|
|
|
|
* @param repeatableConfig Main repeatable config
|
|
|
|
* @returns IEliminationConfig
|
|
|
|
*/
|
|
|
|
getEliminationConfigByPmcLevel(pmcLevel: number, repeatableConfig: IRepeatableQuestConfig): IEliminationConfig;
|
|
|
|
probabilityObjectArray<K, V>(configArrayInput: ProbabilityObject<K, V>[]): ProbabilityObjectArray<K, V>;
|
|
|
|
}
|