phase 11 part1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user