0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 16:10:43 -05:00

Added forceSnow to seasonal mod event

Moved majority of code into `handleModEvent` to help modders handle custom events via method overriding
This commit is contained in:
Chomp 2024-11-30 14:13:18 +00:00
parent dd88571e29
commit 063d1eaea8

View File

@ -408,13 +408,6 @@ export class SeasonalEventService {
default:
// Likely a mod event
this.handleModEvent(event);
if (event.settings?.enableSummoning) {
this.enableHalloweenSummonEvent();
this.addEventBossesToMaps("halloweensummon");
}
if (event.settings?.zombieSettings?.enabled) {
this.configureZombies(event.settings?.zombieSettings);
}
break;
}
}
@ -738,6 +731,17 @@ export class SeasonalEventService {
protected handleModEvent(event: ISeasonalEvent) {
this.addEventGearToBots(event.type);
if (event.settings?.enableSummoning) {
this.enableHalloweenSummonEvent();
this.addEventBossesToMaps("halloweensummon");
}
if (event.settings?.zombieSettings?.enabled) {
this.configureZombies(event.settings?.zombieSettings);
}
if (event.settings?.forceSnow) {
this.enableSnow();
}
}
/**