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