AlumniEvent.java
package com.vikingz.unitycoon.events.eventfiles;
import com.vikingz.unitycoon.global.GameGlobals;
/**
* This is a new class which creates an alumni event object.
* It was implemented to complete UR_EVENTS.
*/
public class AlumniEvent extends Event {
/**
* A positive event where alumni donate the equivalent of £1,000,000 to the university.
*/
public AlumniEvent() {
setMessage("Alumni have decided to donate to the university!\n\nYou have received 1,000k!");
setLeftRun(() -> GameGlobals.MONEY.deposit(1000));
GameGlobals.EVENT.incrementPositiveEvent();
}
}