FeeIncreaseEvent.java

package com.vikingz.unitycoon.events.eventfiles;

import com.vikingz.unitycoon.building.BuildingStats.BuildingType;
import com.vikingz.unitycoon.global.GameGlobals;

/**
 * This is a new class which creates a fee increase event object.
 * It was implemented to complete UR_EVENTS.
 */
public class FeeIncreaseEvent extends Event{

    /**
     * A neutral event where fees increase, giving more money from accommodation buildings, but decreasing satisfaction.
     */
    public FeeIncreaseEvent() {

        setMessage("Inflation has hit your Uni!\n\nIncome from Accommodation has increased,\nbut people"
            + " aren't happy...");

        setLeftRun(() -> {
            GameGlobals.MONEY.applyMultiplierToType(BuildingType.ACCOMODATION, 1.25F);
            GameGlobals.SATISFACTION.applyPenalty(10);
        });
    }
}