From 8114271fafb829bea974ecc7afcdb9b1ff7655f4 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 13 Oct 2024 12:09:47 +0100 Subject: [PATCH] Added method comments --- project/src/services/SeasonalEventService.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index 93b2d4b3..d3b5d9a5 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -365,14 +365,24 @@ export class SeasonalEventService { } } + /** + * Force zryachiy to always have a melee weapon + */ protected adjustZryachiyMeleeChance(): void { this.databaseService.getBots().types.bosszryachiy.chances.equipment.Scabbard = 100; } + /** + * Enable the halloween zryachiy summon event + */ protected enableHalloweenSummonEvent(): void { this.databaseService.getGlobals().config.EventSettings.EventActive = true; } + /** + * Add event bosses to maps + * @param eventType Seasonal event, e.g. HALLOWEEN/CHRISTMAS + */ protected addEventBossesToMaps(eventType: SeasonalEventType): void { const botsToAddPerMap = this.seasonalEventConfig.eventBossSpawns[eventType.toLowerCase()]; if (!botsToAddPerMap) { @@ -484,6 +494,9 @@ export class SeasonalEventService { } } + /** + * Add pumpkin loot boxes to scavs + */ protected addPumpkinsToScavBackpacks(): void { this.databaseService.getBots().types.assault.inventory.items.Backpack[ ItemTpl.RANDOMLOOTCONTAINER_PUMPKIN_RAND_LOOT_CONTAINER @@ -562,6 +575,9 @@ export class SeasonalEventService { return this.seasonalEventConfig.eventBotMapping[eventBotRole]; } + /** + * Force the weather to be snow + */ public enableSnow(): void { this.weatherConfig.overrideSeason = Season.WINTER; }