From 2040835566c408565d0220db2bd502e99aaf98fb Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 6 Nov 2023 13:18:38 +0000 Subject: [PATCH] Set halloween event as disabled by default + enable for halloween --- project/src/models/eft/common/IGlobals.ts | 26 ++++++++++++++++++++ project/src/services/SeasonalEventService.ts | 6 +++++ 2 files changed, 32 insertions(+) diff --git a/project/src/models/eft/common/IGlobals.ts b/project/src/models/eft/common/IGlobals.ts index 67c655f8..608f1501 100644 --- a/project/src/models/eft/common/IGlobals.ts +++ b/project/src/models/eft/common/IGlobals.ts @@ -75,6 +75,7 @@ export interface IConfig SkillPointsBeforeFatigue: number SkillFatigueReset: number DiscardLimitsEnabled: boolean + EventSettings: IEventSettings EventType: string[] WalkSpeed: Ixyz SprintSpeed: Ixyz @@ -110,6 +111,31 @@ export interface IWeaponFastDrawSettings WeaponPistolFastSwitchMinSpeedMult: number } +export interface IEventSettings +{ + EventActive: boolean + EventTime: number + EventWeather: IEventWeather + ExitTimeMultiplier: number + StaminaMultiplier: number + SummonFailedWeather: IEventWeather + SummonSuccessWeather: IEventWeather + WeatherChangeTime: number +} + +export interface IEventWeather +{ + Cloudness: number + Hour: number + Minute: number + Rain: number + RainRandomness: number + ScaterringFogDensity: number + TopWindDirection: Ixyz + Wind: number + WindDirection: number +} + export interface IGraphicSettings { ExperimentalFogInCity: boolean diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index 79ce5b72..1f8387e2 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -298,6 +298,7 @@ export class SeasonalEventService globalConfig.Health.ProfileHealthSettings.DefaultStimulatorBuff = "Buffs_Halloween"; this.addEventGearToBots(eventType); this.adjustZryachiyMeleeChance(); + this.enableHalloweenSummonEvent(); this.addEventBossesToMaps(eventType); this.addPumpkinsToScavBackpacks(); this.adjustTraderIcons(eventType); @@ -326,6 +327,11 @@ export class SeasonalEventService this.databaseServer.getTables().bots.types.bosszryachiy.chances.equipment.Scabbard = 100; } + protected enableHalloweenSummonEvent(): void + { + this.databaseServer.getTables().globals.config.EventSettings.EventActive = true; + } + protected addEventBossesToMaps(eventType: SeasonalEventType): void { const botsToAddPerMap = this.seasonalEventConfig.eventBossSpawns[eventType.toLowerCase()];