add ManaFlask.java

This commit is contained in:
2026-05-17 08:52:06 -07:00
parent 42a1a97cab
commit 59c7671ca8
@@ -0,0 +1,23 @@
package org.project.item.consumables;
import org.project.entity.Entity;
import org.project.entity.players.Player;
import org.project.item.Item;
public class ManaFlask extends Consumable {
private int manaAmount;
public ManaFlask(String name, int manaAmount, int charges) {
super(name, manaAmount, charges);
}
public void use(Player target) {
super.use(target);
System.out.println(target.getName() + " got " + manaAmount + " mana");
}
}