Merge develop into main #1

Merged
Sadra3st merged 23 commits from develop into main 2026-05-21 20:43:16 +00:00
2 changed files with 24 additions and 16 deletions
Showing only changes of commit 3cca5e91a8 - Show all commits
@@ -1,16 +0,0 @@
package org.project.item.consumables;
import org.project.entity.Entity;
// TODO: UPDATE IMPLEMENTATION
public class Flask {
/*
THIS IS AN EXAMPLE OF A CONSUMABLE DESIGN.
*/
// TODO: UPDATE USE METHOD
@Override
public void use(Entity target) {
target.heal(target.getMaxHP() / 10);
}
}
@@ -0,0 +1,24 @@
package org.project.item.consumables;
import org.project.entity.Entity;
import org.project.entity.players.Player;
import org.project.item.Item;
public class HealFlask extends Consumable {
private int healAmount;
public HealFlask(String name, int healAmount, int charges) {
super(name, healAmount, charges);
}
public void use(Player target) {
super.use(target);
System.out.println(target.getName() + " healed for " + healAmount);
}
}