podobi
This commit is contained in:
@@ -56,6 +56,11 @@ class FarmingSystem {
|
||||
this.scene.terrainSystem.tilledSprites.set(key, sprite);
|
||||
}
|
||||
|
||||
// Play dig sound
|
||||
if (this.scene.soundManager) {
|
||||
this.scene.soundManager.playDig();
|
||||
}
|
||||
|
||||
console.log(`✅ Tilled soil at (${gridX}, ${gridY})`);
|
||||
return true;
|
||||
}
|
||||
@@ -98,6 +103,11 @@ class FarmingSystem {
|
||||
this.scene.farmStats.cropsPlanted++;
|
||||
}
|
||||
|
||||
// Play plant sound
|
||||
if (this.scene.soundManager) {
|
||||
this.scene.soundManager.playPlant();
|
||||
}
|
||||
|
||||
console.log(`🌱 Planted ${cropType} at (${gridX}, ${gridY})`);
|
||||
return true;
|
||||
}
|
||||
@@ -164,6 +174,11 @@ class FarmingSystem {
|
||||
if (crop.sprite) crop.sprite.destroy();
|
||||
this.crops = this.crops.filter(c => c !== crop);
|
||||
|
||||
// Play harvest sound
|
||||
if (this.scene.soundManager) {
|
||||
this.scene.soundManager.playHarvest();
|
||||
}
|
||||
|
||||
console.log(`🌾 Harvested ${crop.type}! (+${goldEarned} gold)`);
|
||||
|
||||
// Show floating text
|
||||
|
||||
Reference in New Issue
Block a user