phase 11 part1

This commit is contained in:
2025-12-08 12:30:15 +01:00
parent 3336b59e7d
commit 07f0752d81
15 changed files with 1383 additions and 133 deletions

View File

@@ -226,6 +226,13 @@ class InteractionSystem {
if (this.scene.terrainSystem.decorationsMap.has(id)) {
const decor = this.scene.terrainSystem.decorationsMap.get(id);
// Workstation Interaction
if (this.scene.workstationSystem && (decor.type.includes('furnace') || decor.type.includes('mint'))) {
const heldItem = activeTool ? { itemId: activeTool } : null;
const result = this.scene.workstationSystem.interact(gridX, gridY, heldItem);
if (result) return;
}
// handleTreeHit Logic (User Request)
// Preverimo tip in ustrezno orodje
let damage = 1;