Skip to content

Commit 063d1ea

Browse files
author
Chomp
committed
Added forceSnow to seasonal mod event
Moved majority of code into `handleModEvent` to help modders handle custom events via method overriding
1 parent dd88571 commit 063d1ea

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

project/src/services/SeasonalEventService.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,6 @@ export class SeasonalEventService {
408408
default:
409409
// Likely a mod event
410410
this.handleModEvent(event);
411-
if (event.settings?.enableSummoning) {
412-
this.enableHalloweenSummonEvent();
413-
this.addEventBossesToMaps("halloweensummon");
414-
}
415-
if (event.settings?.zombieSettings?.enabled) {
416-
this.configureZombies(event.settings?.zombieSettings);
417-
}
418411
break;
419412
}
420413
}
@@ -738,6 +731,17 @@ export class SeasonalEventService {
738731

739732
protected handleModEvent(event: ISeasonalEvent) {
740733
this.addEventGearToBots(event.type);
734+
735+
if (event.settings?.enableSummoning) {
736+
this.enableHalloweenSummonEvent();
737+
this.addEventBossesToMaps("halloweensummon");
738+
}
739+
if (event.settings?.zombieSettings?.enabled) {
740+
this.configureZombies(event.settings?.zombieSettings);
741+
}
742+
if (event.settings?.forceSnow) {
743+
this.enableSnow();
744+
}
741745
}
742746

743747
/**

0 commit comments

Comments
 (0)