add ManaFlask.java
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user