Logging when duplicate events are encountered.

This commit is contained in:
Daan Vanden Bosch 2019-10-29 15:26:10 +01:00
parent 5f1b3d5ff1
commit 95da6e9e57

View File

@ -88,6 +88,9 @@ function build_event_dags(dat_events: readonly DatEvent[]): QuestEventDagModel[]
if (data && data.event) {
event_model = data.event;
logger.warn(
`Ignored duplicate event #${data.event.id} for section ${data.event.section_id} of area ${data.event.area_id}.`,
);
} else {
event_model = new QuestEventModel(
event.id,