startEvent(index) {
    const currentEvent = this.eventList[index];
    const eventDuration = currentEvent.duration * 1000;
    Materialize.toast(`New Event: ${currentEvent.name}`, 4000);
    currentEvent.active = true;
    ui.displayEvents(currentEvent);
    this.stopEvent(currentEvent.id, eventDuration);
    clickerApp.calculateEventBonuses(currentEvent.multiply, currentEvent.bonus);
  }
// starts a new event. Expects an index of eventList array.
starts a new event. Expects an index of eventList array.
starts a new event . Expects an index of eventList array .
startEvent(index) {
    const currentEvent = this.eventList[index];
    const eventDuration = currentEvent.duration * 1000;
    Materialize.toast(`New Event: ${currentEvent.name}`, 4000);
    currentEvent.active = true;
    ui.displayEvents(currentEvent);
    this.stopEvent(currentEvent.id, eventDuration);
    clickerApp.calculateEventBonuses(currentEvent.multiply, currentEvent.bonus);
  }
startEvent ( index ) { const currentEvent = this . eventList [ index ] ; const eventDuration = currentEvent . duration * 1000 ; Materialize . toast ( ` ${ currentEvent . name } ` , 4000 ) ; currentEvent . active = true ; ui . displayEvents ( currentEvent ) ; this . stopEvent ( currentEvent . id , eventDuration ) ; clickerApp . calculateEventBonuses ( currentEvent . multiply , currentEvent . bonus ) ; }
starts a new event.
starts a new event .