Set halloween event as disabled by default + enable for halloween
This commit is contained in:
parent
77c6bd8b62
commit
2040835566
@ -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
|
||||
|
@ -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()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user