posodobitev
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user