0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Added locationConfig.forcedRaidEndState property

This commit is contained in:
Chomp 2025-01-08 19:30:41 +00:00
parent ce1f645697
commit d578e5f001
3 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{
"forcedRaidEndState": null,
"looseLootMultiplier": {
"bigmap": 2.5,
"develop": 1,

View File

@ -1,8 +1,11 @@
import { MinMax } from "@spt/models/common/MinMax";
import { IBossLocationSpawn, IWave } from "@spt/models/eft/common/ILocationBase";
import { ExitStatus } from "@spt/models/enums/ExitStatis";
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
export interface ILocationConfig extends IBaseConfig {
/** What state to force the raid to end as, e.g "Survived"/"Killed"/"Runner" */
forcedRaidEndState: ExitStatus;
kind: "spt-location";
/** Rogues are classified as bosses and spawn immediatly, this can result in no scavs spawning, delay rogues spawning to allow scavs to spawn first */
rogueLighthouseSpawnTimeSettings: IRogueLighthouseSpawnTimeSettings;

View File

@ -336,6 +336,10 @@ export class LocationLifecycleService {
// Clear bot loot cache
this.botLootCacheService.clearCache();
if (this.locationConfig.forcedRaidEndState !== null) {
request.results.result = this.locationConfig.forcedRaidEndState;
}
const fullProfile = this.profileHelper.getFullProfile(sessionId);
const pmcProfile = fullProfile.characters.pmc;
const scavProfile = fullProfile.characters.scav;