Play the 250+ bits sound at half volume
TomDaTankLoud is much louder than the other alert sounds; the 250+ bits tier now sets its own volume (0.4 instead of the default 0.8). Other tiers unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cdcd3737a7
commit
0cc53e1d73
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@
|
||||||
// bits: under BITS_MIN = no alert; otherwise the highest matching tier wins
|
// bits: under BITS_MIN = no alert; otherwise the highest matching tier wins
|
||||||
const BITS_MIN = 5;
|
const BITS_MIN = 5;
|
||||||
const BITS_TIERS = [
|
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: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: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 },
|
{ 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;
|
if (!(e.bits >= BITS_MIN)) return null;
|
||||||
const t = BITS_TIERS.find(t => e.bits >= t.min);
|
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,
|
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;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue