posodobitev

This commit is contained in:
2025-12-11 19:36:08 +01:00
parent 5395f4abd2
commit 6e998d516d
36 changed files with 2045 additions and 304 deletions

View File

@@ -86,7 +86,7 @@ class InteractionSystem {
handleTalk(npc) {
if (!this.scene.hybridSkillSystem) {
npc.toggleState();
console.log('Talk with:', npc.type);
return;
}
@@ -120,7 +120,7 @@ class InteractionSystem {
color: color
});
npc.toggleState(); // Stop moving briefly
// NPC pauses briefly (handled by AI)
}
handleInteraction(gridX, gridY, isAttack = false) {
@@ -247,7 +247,7 @@ class InteractionSystem {
return;
}
if (!isAttack) npc.toggleState();
// NPC interaction complete
return;
}
}
@@ -301,11 +301,8 @@ class InteractionSystem {
}
}
// 4. Try Farming Action
if (this.scene.farmingSystem && !isAttack) {
const didFarm = this.scene.farmingSystem.interact(gridX, gridY, activeTool);
if (didFarm) return;
}
// 4. Farming is now handled via Player Space key (handleFarmingAction)
// No click farming anymore
// 5. Try damage decoration
const id = `${gridX},${gridY}`;