mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 06:10:44 -05:00
Fixed incorrect globals interface and related code (fixes christmas error)
This commit is contained in:
parent
f07ba3fec4
commit
de00ac3ef2
@ -44,7 +44,6 @@ export class DataCallbacks {
|
||||
*/
|
||||
public getGlobals(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGlobals> {
|
||||
const globals = this.databaseService.getGlobals();
|
||||
globals.time = Date.now() / 1000;
|
||||
|
||||
return this.httpResponse.getBody(this.databaseService.getGlobals());
|
||||
}
|
||||
|
@ -88,6 +88,7 @@ export class PrestigeController {
|
||||
}
|
||||
|
||||
// Skill copy
|
||||
// TODO - Find what skills should be prestiged over
|
||||
const commonSKillsToCopy = prePrestigePmc.Skills.Common;
|
||||
for (const skillToCopy of commonSKillsToCopy) {
|
||||
// Set progress to max level 20
|
||||
|
@ -2,11 +2,9 @@ import type { Ixy, Ixyz } from "@spt/models/eft/common/Ixyz";
|
||||
import type { IItem } from "@spt/models/eft/common/tables/IItem";
|
||||
|
||||
export interface IGlobals {
|
||||
time: number;
|
||||
config: IConfig;
|
||||
LocationInfection: ILocationInfection;
|
||||
bot_presets: IBotPreset[];
|
||||
AudioSettings: IAudioSettings;
|
||||
BotWeaponScatterings: IBotWeaponScattering[];
|
||||
ItemPresets: Record<string, IPreset>;
|
||||
}
|
||||
@ -127,6 +125,7 @@ export interface IProjectileExplosionParams {
|
||||
}
|
||||
|
||||
export interface IConfig {
|
||||
AudioSettings: IAudioSettings;
|
||||
ArtilleryShelling: IArtilleryShelling;
|
||||
content: IContent;
|
||||
AimPunchMagnitude: number;
|
||||
|
@ -488,7 +488,7 @@ export class SeasonalEventService {
|
||||
const globals = this.databaseService.getGlobals();
|
||||
globals.config.Airdrop.AirdropViewType = "NewYear";
|
||||
|
||||
const radioSettings = globals.AudioSettings.RadioBroadcastSettings;
|
||||
const radioSettings = globals.config.AudioSettings.RadioBroadcastSettings;
|
||||
|
||||
radioSettings.EnabledBroadcast = true;
|
||||
const christmasStation = radioSettings.RadioStations.find((x) => x.Station === "Christmas");
|
||||
|
Loading…
x
Reference in New Issue
Block a user