Skip to content

Commit 9231f92

Browse files
committed
Add bad to the bone sound
1 parent 6a4b405 commit 9231f92

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/chat/interface/chatinterface.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/chat/interface/commands/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ var commandEffectsDiv = elements.getGPId("commandEffects");
1212
var isRotating = false;
1313
var xpErrorSound = "";
1414
var 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

2123
com._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

411420
com.vineboom = function () {
412421
var sound = new audio.Player(vineboomSound);

wpstatic/sounds/badtothebone.wav

469 KB
Binary file not shown.

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1761158994969"}
1+
{"timestamp":"1761219553900"}

0 commit comments

Comments
 (0)