File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,10 +296,12 @@ var clientSettings = require("./clientsettings.js");
296296 if ( isNew ) {
297297 var messageJsonElements = shtml . getBracketCodeJSON ( message , {
298298 vineboom : browserCommands . _bracket_vineboom_sound ,
299+ badtothebone : browserCommands . _bracket_badtothebone_sound ,
299300 } ) ;
300301 } else {
301302 var messageJsonElements = shtml . getBracketCodeJSON ( message , {
302303 vineboom : function ( ) { } ,
304+ badtothebone : function ( ) { } ,
303305 } ) ;
304306 }
305307
Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ var commandEffectsDiv = elements.getGPId("commandEffects");
1212var isRotating = false ;
1313var xpErrorSound = "" ;
1414var vineboomSound = null ;
15+ var badToTheBoneSound = null ;
1516( async function ( ) {
1617 //Init audio files.
1718 xpErrorSound = await audio . loadSoundFromURL ( "sounds/xp-error.mp3" ) ;
1819 vineboomSound = await audio . loadSoundFromURL ( "sounds/vineboom.wav" ) ;
20+ badToTheBoneSound = await audio . loadSoundFromURL ( "sounds/badtothebone.wav" ) ;
1921} ) ( ) ;
2022
2123com . _resetEffects = function ( ) {
@@ -407,6 +409,13 @@ com._bracket_vineboom_sound = function () {
407409 var sound = new audio . Player ( vineboomSound ) ;
408410 sound . play ( ) ;
409411} ;
412+ com . _bracket_badtothebone_sound = function ( ) {
413+ if ( ! clientSettings . getSetting ( "BRACKET_CODE_SOUNDS" ) ) {
414+ return ;
415+ }
416+ var sound = new audio . Player ( badToTheBoneSound ) ;
417+ sound . play ( ) ;
418+ } ;
410419
411420com . vineboom = function ( ) {
412421 var sound = new audio . Player ( vineboomSound ) ;
Original file line number Diff line number Diff line change 1- {"timestamp" :" 1761158994969 " }
1+ {"timestamp" :" 1761219553900 " }
You can’t perform that action at this time.
0 commit comments