package org.project.item.consumables;

import org.project.entity.Entity;
import org.project.util.ConsoleColors;

/**
 * A mana/stamina potion. Restores a flat amount of the resource the player uses
 * to power their abilities.
 */
public class ManaPotion extends Consumable {

    public ManaPotion() {
        super("Mana Potion", 20, 20);
    }

    @Override
    public void use(Entity target) {
        target.fillMana(potency);
        System.out.println(ConsoleColors.blue(
                "🔷 " + target.getName() + " drinks a Mana Potion and restores " + potency + " Mana!"));
    }
}
