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

Store exit taken on raid end and store in app context for future use

This commit is contained in:
Chomp 2024-12-27 10:50:51 +00:00
parent 4938f38083
commit cb253348a4
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,8 @@ export interface ILocationTransit {
dayTime: string;
/** The location player last visited */
sptLastVisitedLocation: string;
/** Name of exit taken */
sptExitName?: string;
}
export interface ITransitProfile {

View File

@ -367,6 +367,7 @@ export class LocationLifecycleService {
request.locationTransit.sptLastVisitedLocation = locationName;
// TODO - Persist each players last visited location history over multiple transits, e.g using InMemoryCacheService, need to take care to not let data get stored forever
// Store transfer data for later use in `startLocalRaid()` when next raid starts
request.locationTransit.sptExitName = request.results.exitName;
this.applicationContext.addValue(ContextVariableType.TRANSIT_INFO, request.locationTransit);
}