From 3c3877d75349f479efc898ce9de7b688e89a99bc Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 27 Oct 2024 17:25:11 +0000 Subject: [PATCH] Added call to `handleModEvent()` inside `updateGlobalEvents()` to allow modders to override with their own implementation --- project/src/services/SeasonalEventService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index e4b3d354..8f08e173 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -380,7 +380,7 @@ export class SeasonalEventService { break; default: // Likely a mod event - this.addEventGearToBots(event.type); + this.handleModEvent(event); break; } } @@ -590,6 +590,10 @@ export class SeasonalEventService { } } + protected handleModEvent(event: ISeasonalEvent) { + this.addEventGearToBots(event.type); + } + /** * Send gift to player if they'e not already received it * @param playerId Player to send gift to