Session 17: Sound Toggle (mute/unmute with persistence) Added
This commit is contained in:
+3
-3
@@ -54,8 +54,8 @@ const PRESTIGE = {
|
||||
prestigeUpgrades: Game.state.prestigeUpgrades || []
|
||||
};
|
||||
|
||||
// Audio feedback
|
||||
Audio.playPrestige();
|
||||
// Audio feedback (gated by the sound preference)
|
||||
Game.playSound('prestige');
|
||||
|
||||
// Particle effect for prestige
|
||||
const btn = document.getElementById('prestige-btn');
|
||||
@@ -88,7 +88,7 @@ const PRESTIGE = {
|
||||
Game.state.prestigeUpgrades.push(upgradeId);
|
||||
|
||||
UI.showNotification(`Unlocked: ${upgrade.name}!`, 'achievement');
|
||||
Audio.playPurchase();
|
||||
Game.playSound('purchase');
|
||||
UI.update();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user