victory and defeat sounds - draw is missing! - #594
parent
8bf5f906cc
commit
2e73532939
|
@ -1045,7 +1045,9 @@ lichess.storage = {
|
|||
move: 'Move',
|
||||
capture: 'Capture',
|
||||
explode: 'Explosion',
|
||||
lowtime: 'LowTime'
|
||||
lowtime: 'LowTime',
|
||||
victory: 'Victory',
|
||||
defeat: 'Defeat'
|
||||
};
|
||||
var volumes = {
|
||||
lowtime: 0.5,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
GenericNotify.mp3
|
|
@ -0,0 +1 @@
|
|||
GenericNotify.ogg
|
|
@ -0,0 +1 @@
|
|||
GenericNotify.mp3
|
|
@ -0,0 +1 @@
|
|||
GenericNotify.ogg
|
|
@ -39,7 +39,7 @@ module.exports = function(send, ctrl) {
|
|||
ctrl.data.game.winner = winner;
|
||||
ground.end(ctrl.chessground);
|
||||
xhr.reload(ctrl).then(ctrl.reload);
|
||||
if (!ctrl.data.player.spectator) $.sound.genericNotify();
|
||||
if (!ctrl.data.player.spectator) $.sound[ctrl.data.player.color === winner ? 'victory' : 'defeat']();
|
||||
},
|
||||
gone: function(isGone) {
|
||||
if (!ctrl.data.opponent.ai) {
|
||||
|
|
Loading…
Reference in New Issue