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

Constructors

new
RaidTimeAdjustmentService(
logger: ILogger,
databaseServer: DatabaseServer,
randomUtil: RandomUtil,
weightedRandomHelper: WeightedRandomHelper,
applicationContext: ApplicationContext,
configServer: ConfigServer,
)

Properties

protected
applicationContext: ApplicationContext
protected
configServer: ConfigServer
protected
databaseServer: DatabaseServer
protected
locationConfig: ILocationConfig
protected
logger: ILogger
protected
randomUtil: RandomUtil
protected
weightedRandomHelper: WeightedRandomHelper

Methods

protected
adjustLootMultipliers(mapLootMultiplers: LootMultiplier, loosePercent: number): void

Adjust the loot multiplier values passed in to be a % of their original value

protected
adjustWaves(mapBase: ILocationBase, raidAdjustments: IRaidChanges): void

Adjust bot waves to act as if player spawned later

protected
getExitAdjustments(mapBase: ILocationBase, newRaidTimeMinutes: number): ExtractChange[]

Adjust exit times to handle scavs entering raids part-way through

protected
getMapSettings(location: string): IScavRaidTimeLocationSettings

Get raid start time settings for specific map

Create a randomised adjustment to the raid based on map data in location.json

makeAdjustmentsToMap(raidAdjustments: IRaidChanges, mapBase: ILocationBase): void

Make alterations to the base map data passed in Loot multipliers/waves/wave start times