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:
parent
dd88571e29
commit
063d1eaea8
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user