Added call to handleModEvent() inside updateGlobalEvents() to allow modders to override with their own implementation

This commit is contained in:
Dev 2024-10-27 17:25:11 +00:00
parent 7ae812bfe6
commit 3c3877d753

View File

@ -380,7 +380,7 @@ export class SeasonalEventService {
break; break;
default: default:
// Likely a mod event // Likely a mod event
this.addEventGearToBots(event.type); this.handleModEvent(event);
break; 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 * Send gift to player if they'e not already received it
* @param playerId Player to send gift to * @param playerId Player to send gift to