From a651681fd660f5a23fc456458609501a977dce21 Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 15 Jan 2025 15:30:03 +0000 Subject: [PATCH] Added christmas config changes --- project/src/generators/BotLootGenerator.ts | 2 +- project/src/services/SeasonalEventService.ts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/project/src/generators/BotLootGenerator.ts b/project/src/generators/BotLootGenerator.ts index 9f28a754..b58bb9cc 100644 --- a/project/src/generators/BotLootGenerator.ts +++ b/project/src/generators/BotLootGenerator.ts @@ -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(); diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index 580c8d0a..eeafbde5 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -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) {