package org.project.item.consumables;

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

/**
 * A healing flask. Restores a flat amount of HP to whoever drinks it.
 */
public class Flask extends Consumable {

    public Flask() {
        super("Health Flask", 25, 20);
    }

    @Override
    public void use(Entity target) {
        target.heal(potency);
        System.out.println(ConsoleColors.green(
                "🧪 " + target.getName() + " drinks a Health Flask and recovers " + potency + " HP!"));
    }
}
