diff --git a/public/alerts/polaroid.js b/public/alerts/polaroid.js index 815b60a..55c2ed4 100644 --- a/public/alerts/polaroid.js +++ b/public/alerts/polaroid.js @@ -38,7 +38,7 @@ // bits: under BITS_MIN = no alert; otherwise the highest matching tier wins const BITS_MIN = 5; const BITS_TIERS = [ - { min:250, sound:'TomDaTankLoud.mp3', art:'CharacterHype2.png', badge:'#e0457b', hearts:3 }, + { min:250, sound:'TomDaTankLoud.mp3', art:'CharacterHype2.png', badge:'#e0457b', hearts:3, volume:0.4 }, // very loud clip: half volume { min:150, sound:'run-vine-sound-effect.mp3', art:'CharacterHype2.png', badge:'#e0457b', hearts:2 }, { min:100, sound:'windows-xp-startup_1ph012N.mp3', art:'CharacterHype2.png', badge:'#9b6bdc', hearts:1 }, { min:75, sound:'we-do-a-little-trolling_80cJgd9.mp3', art:'CharacterCool.png', badge:'#9b6bdc', hearts:0 }, @@ -133,7 +133,7 @@ if (!(e.bits >= BITS_MIN)) return null; const t = BITS_TIERS.find(t => e.bits >= t.min); return { art:t.art, name:who, line:`cheered ${e.bits} bits!`, msg:e.message, tape:TAPE.bits, sound:t.sound, - badge:{ big:e.bits, small:'bits', color:t.badge }, hearts:t.hearts, phbg:'linear-gradient(#efe6ff,#d7c6f5)' }; + badge:{ big:e.bits, small:'bits', color:t.badge }, hearts:t.hearts, volume:t.volume, phbg:'linear-gradient(#efe6ff,#d7c6f5)' }; } } return null;