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
|
SkillPointsBeforeFatigue: number
|
||||||
SkillFatigueReset: number
|
SkillFatigueReset: number
|
||||||
DiscardLimitsEnabled: boolean
|
DiscardLimitsEnabled: boolean
|
||||||
|
EventSettings: IEventSettings
|
||||||
EventType: string[]
|
EventType: string[]
|
||||||
WalkSpeed: Ixyz
|
WalkSpeed: Ixyz
|
||||||
SprintSpeed: Ixyz
|
SprintSpeed: Ixyz
|
||||||
@ -110,6 +111,31 @@ export interface IWeaponFastDrawSettings
|
|||||||
WeaponPistolFastSwitchMinSpeedMult: number
|
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
|
export interface IGraphicSettings
|
||||||
{
|
{
|
||||||
ExperimentalFogInCity: boolean
|
ExperimentalFogInCity: boolean
|
||||||
|
@ -298,6 +298,7 @@ export class SeasonalEventService
|
|||||||
globalConfig.Health.ProfileHealthSettings.DefaultStimulatorBuff = "Buffs_Halloween";
|
globalConfig.Health.ProfileHealthSettings.DefaultStimulatorBuff = "Buffs_Halloween";
|
||||||
this.addEventGearToBots(eventType);
|
this.addEventGearToBots(eventType);
|
||||||
this.adjustZryachiyMeleeChance();
|
this.adjustZryachiyMeleeChance();
|
||||||
|
this.enableHalloweenSummonEvent();
|
||||||
this.addEventBossesToMaps(eventType);
|
this.addEventBossesToMaps(eventType);
|
||||||
this.addPumpkinsToScavBackpacks();
|
this.addPumpkinsToScavBackpacks();
|
||||||
this.adjustTraderIcons(eventType);
|
this.adjustTraderIcons(eventType);
|
||||||
@ -326,6 +327,11 @@ export class SeasonalEventService
|
|||||||
this.databaseServer.getTables().bots.types.bosszryachiy.chances.equipment.Scabbard = 100;
|
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
|
protected addEventBossesToMaps(eventType: SeasonalEventType): void
|
||||||
{
|
{
|
||||||
const botsToAddPerMap = this.seasonalEventConfig.eventBossSpawns[eventType.toLowerCase()];
|
const botsToAddPerMap = this.seasonalEventConfig.eventBossSpawns[eventType.toLowerCase()];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user