Skip to main content
The Deno 2 Release Candidate is here
Learn more
class BotDifficultyHelper
import { BotDifficultyHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Constructors

new
BotDifficultyHelper(
logger: ILogger,
jsonUtil: JsonUtil,
databaseServer: DatabaseServer,
randomUtil: RandomUtil,
localisationService: LocalisationService,
botHelper: BotHelper,
configServer: ConfigServer,
)

Properties

protected
botHelper: BotHelper
protected
configServer: ConfigServer
protected
databaseServer: DatabaseServer
protected
jsonUtil: JsonUtil
protected
localisationService: LocalisationService
protected
logger: ILogger
protected
pmcConfig: IPmcConfig
protected
randomUtil: RandomUtil

Methods

protected
getDifficultySettings(type: string, difficulty: string): Difficulty

Get difficulty settings for a PMC

Choose a random difficulty from - easy/normal/hard/impossible

convertBotDifficultyDropdownToBotDifficulty(dropDownDifficulty: string): string

Translate chosen value from pre-raid difficulty dropdown into bot difficulty value

getBotDifficultySettings(type: string, difficulty: string): Difficulty

Get difficulty settings for desired bot type, if not found use assault bot types

getPmcDifficultySettings(
pmcType: "bear" | "usec",
difficulty: string,
usecType: string,
bearType: string,
): Difficulty