This commit is contained in:
2025-12-07 21:31:44 +01:00
parent 4a0ca267ea
commit 974141c08c
52 changed files with 2485 additions and 397 deletions

View File

@@ -84,10 +84,15 @@ class LootSystem {
const leftover = this.scene.inventorySystem.addItem(drop.type, drop.count);
if (leftover === 0) {
// Success
this.scene.sound.play('pickup_sound')
// (Assuming sound exists, if not it will just warn silently or fail)
// Actually, let's skip sound call if not sure to avoid error spam
// Success - Play Sound
if (this.scene.soundManager) {
this.scene.soundManager.playPickup();
}
// Sparkle Effect
if (this.scene.particleEffects) {
this.scene.particleEffects.sparkle(drop.x, drop.y);
}
// Float text effect
this.showFloatingText(`+${drop.count} ${drop.type}`, drop.x, drop.y);