Added sptGenerateLoot to IStartLocalRaidRequestData to allow caller to choose to generate loot or not, default is true

This commit is contained in:
Dev 2024-10-03 15:12:51 +01:00
parent dda3bc5310
commit 7b1a37e71e
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ export interface IStartLocalRaidRequestData {
playerSide: string; playerSide: string;
isLocationTransition: boolean; isLocationTransition: boolean;
transition: IStartLocalRaidTransition; transition: IStartLocalRaidTransition;
/** Should loot generation be skipped, default false */
sptSkipLootGeneration?: boolean;
} }
export interface IStartLocalRaidTransition { export interface IStartLocalRaidTransition {

View File

@ -96,7 +96,7 @@ export class LocationLifecycleService {
serverId: `${request.location}.${request.playerSide}.${this.timeUtil.getTimestamp()}`, // TODO - does this need to be more verbose - investigate client? serverId: `${request.location}.${request.playerSide}.${this.timeUtil.getTimestamp()}`, // TODO - does this need to be more verbose - investigate client?
serverSettings: this.databaseService.getLocationServices(), // TODO - is this per map or global? serverSettings: this.databaseService.getLocationServices(), // TODO - is this per map or global?
profile: { insuredItems: playerProfile.InsuredItems }, profile: { insuredItems: playerProfile.InsuredItems },
locationLoot: this.generateLocationAndLoot(request.location), locationLoot: request.sptSkipLootGeneration ? null : this.generateLocationAndLoot(request.location),
transition: { transition: {
isLocationTransition: false, isLocationTransition: false,
transitionRaidId: "66f5750951530ca5ae09876d", transitionRaidId: "66f5750951530ca5ae09876d",