added stackable functionality to items and improved inventory management

This commit is contained in:
2025-12-13 12:13:01 +01:00
parent b380e218f6
commit 97da3982d1
9 changed files with 99 additions and 26 deletions

View File

@@ -83,6 +83,8 @@ public class Entity {
public int value;
public int price;
public int knockbackVal;
public boolean stackable;
public int amt = 1;
public Entity(GamePanel panel) {
this.panel = panel;
@@ -229,8 +231,8 @@ public class Entity {
alive = false;
}
}
public void use(Entity entity) {
public boolean use(Entity entity) {
return false;
} //If entity is consumable
public void checkDrop() {