Fixed addEventWavesToMaps() not adding waves to correct location + now wipes out existing wave data

This commit is contained in:
Dev 2024-11-01 13:22:16 +00:00
parent ad9ae4fb52
commit 8055a00fc8

View File

@ -442,8 +442,8 @@ export class SeasonalEventService {
this.logger.warning(`Unable to add: ${eventType} wave to: ${mapKey}`);
continue;
}
locations[mapKey].base.BossLocationSpawn.push(...wavesToAdd);
locations[mapKey].base.waves = [];
locations[mapKey].base.waves.push(...wavesToAdd);
}
}