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

More JSON and interface changes

This commit is contained in:
Dev 2024-09-26 20:49:08 +01:00
parent 454a71213f
commit 058ccc2b29
9 changed files with 44939 additions and 30799 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -130,6 +130,8 @@ export class BotController {
const botDetails = botTypesDb[botType]; const botDetails = botTypesDb[botType];
if (!botDetails?.difficulty) { if (!botDetails?.difficulty) {
this.logger.warning(`Unable to find bot: ${botType} difficulty values`);
continue; continue;
} }

View File

@ -16,6 +16,7 @@ export interface ITraderServices {
PlayerTaxi: ITraderService; PlayerTaxi: ITraderService;
BtrItemsDelivery: ITraderService; BtrItemsDelivery: ITraderService;
BtrBotCover: ITraderService; BtrBotCover: ITraderService;
TransitItemsDelivery: ITraderService;
} }
export interface ITraderService { export interface ITraderService {

View File

@ -10,7 +10,7 @@ export interface IEndLocalRaidRequestData {
lostInsuredItems: IItem[]; lostInsuredItems: IItem[];
/** Items sent via traders to player, keyed to service e.g. BTRTransferStash */ /** Items sent via traders to player, keyed to service e.g. BTRTransferStash */
transferItems: Record<string, IItem[]>; transferItems: Record<string, IItem[]>;
locationTransit: any; locationTransit: ILocationTransit;
} }
export interface IEndRaidResult { export interface IEndRaidResult {
@ -24,3 +24,21 @@ export interface IEndRaidResult {
favorite: boolean; favorite: boolean;
playTime: number; playTime: number;
} }
export interface ILocationTransit {
hash: string;
playersCount: number;
ip: string;
location: string;
profiles: Record<string, ITransitProfile>;
transitionRaidId: string;
raidMode: string;
side: string;
dayTime: string;
}
export interface ITransitProfile {
_id: string;
keyId: string;
isSolo: boolean;
}

View File

@ -2,6 +2,5 @@ import { IRaidSettings } from "@spt/models/eft/match/IRaidSettings";
export interface IGetRaidConfigurationRequestData extends IRaidSettings { export interface IGetRaidConfigurationRequestData extends IRaidSettings {
keyId: string; keyId: string;
CanShowGroupPreview: boolean;
MaxGroupCount: number; MaxGroupCount: number;
} }

View File

@ -97,6 +97,12 @@ export class LocationLifecycleService {
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: this.generateLocationAndLoot(request.location),
transition: {
isLocationTransition: false,
transitionRaidId: "66f5750951530ca5ae09876d",
transitionCount: 0,
visitedLocations: [],
},
}; };
// Apply changes from pmcConfig to bot hostility values // Apply changes from pmcConfig to bot hostility values