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

Added christmas config changes

This commit is contained in:
Chomp 2025-01-15 15:30:03 +00:00
parent f4180993cb
commit a651681fd6
2 changed files with 19 additions and 1 deletions

View File

@ -135,7 +135,7 @@ export class BotLootGenerator {
const containersBotHasAvailable = this.getAvailableContainersBotCanStoreItemsIn(botInventory);
// This set is passed as a reference to fill up the containers that are already full, this aliviates
// This set is passed as a reference to fill up the containers that are already full, this alleviates
// generation of the bots by avoiding checking the slots of containers we already know are full
const containersIdFull = new Set<string>();

View File

@ -484,6 +484,24 @@ export class SeasonalEventService {
if (event.settings?.adjustBotAppearances) {
this.adjustBotAppearanceValues(event.type);
}
const globals = this.databaseService.getGlobals();
globals.config.Airdrop.AirdropViewType = "NewYear";
const radioSettings = globals.AudioSettings.RadioBroadcastSettings;
radioSettings.EnabledBroadcast = true;
const christmasStation = radioSettings.RadioStations.find((x) => x.Station === "Christmas");
christmasStation.Enabled = true;
const rundansStation = radioSettings.RadioStations.find((x) => x.Station === "RunddansEvent");
rundansStation.Enabled = true;
globals.config.BTRSettings.MapsConfigs["TarkovStreets"].BtrSkin = "Tarcola";
globals.config.BTRSettings.MapsConfigs["Woods"].BtrSkin = "Tarcola";
globals.config.RunddansSettings.active = true;
globals.config.RunddansSettings.activePVE = true;
}
protected applyNewYearsEvent(event: ISeasonalEvent, globalConfig: IConfig) {