Skip to content

Commit

Permalink
Added christmas config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomp committed Jan 15, 2025
1 parent f418099 commit a651681
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project/src/generators/BotLootGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>();

Expand Down
18 changes: 18 additions & 0 deletions project/src/services/SeasonalEventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a651681

Please sign in to comment.