play opponent berserk sound
This commit is contained in:
parent
56f7cc30ba
commit
a9b96f4af4
|
@ -9,7 +9,7 @@ net {
|
||||||
ip = "5.196.91.160"
|
ip = "5.196.91.160"
|
||||||
asset {
|
asset {
|
||||||
domain = ${net.domain}
|
domain = ${net.domain}
|
||||||
version = 818
|
version = 819
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
play {
|
play {
|
||||||
|
|
|
@ -354,6 +354,7 @@ module.exports = function(opts) {
|
||||||
this.setBerserk = function(color) {
|
this.setBerserk = function(color) {
|
||||||
if (this.vm.goneBerserk[color]) return;
|
if (this.vm.goneBerserk[color]) return;
|
||||||
this.vm.goneBerserk[color] = true;
|
this.vm.goneBerserk[color] = true;
|
||||||
|
if (color !== this.data.player.color) $.sound.berserk();
|
||||||
m.redraw();
|
m.redraw();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue