import { RaidTimeAdjustmentService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Constructors
new
RaidTimeAdjustmentService(logger: ILogger,
databaseServer: DatabaseServer,
randomUtil: RandomUtil,
weightedRandomHelper: WeightedRandomHelper,
applicationContext: ApplicationContext,
configServer: ConfigServer,
Properties
protected
applicationContext: ApplicationContextprotected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
locationConfig: ILocationConfigprotected
logger: ILoggerprotected
randomUtil: RandomUtilprotected
weightedRandomHelper: WeightedRandomHelperMethods
protected
adjustLootMultipliers(mapLootMultiplers: LootMultiplier, loosePercent: number): voidAdjust the loot multiplier values passed in to be a % of their original value
protected
adjustWaves(mapBase: ILocationBase, raidAdjustments: IRaidChanges): voidAdjust 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): IScavRaidTimeLocationSettingsGet raid start time settings for specific map
getRaidAdjustments(sessionId: string, request: IGetRaidTimeRequest): IGetRaidTimeResponse
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