mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 02:10:44 -05:00
Store exit taken on raid end and store in app context for future use
This commit is contained in:
parent
4938f38083
commit
cb253348a4
@ -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 {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user