play sound and change presence of tile if interacted with

This commit is contained in:
2025-12-08 05:02:36 +01:00
parent 730c7d406e
commit 285b18b4cc
5 changed files with 44 additions and 1 deletions

View File

@@ -222,7 +222,8 @@ public class Player extends Entity {
public void interactTile(int index) {
if(index == 999 || !panel.iTile[index].destructible) return;
if(!panel.iTile[index].meetItemReq(this)) return;
panel.iTile[index] = null;
panel.iTile[index].playSE();
panel.iTile[index] = panel.iTile[index].getDestroyedForm();
}
public void interactNPC(int index) {