commit
2a2c88b17b
Binary file not shown.
Binary file not shown.
|
@ -9186,19 +9186,13 @@ export const Content = {
|
||||||
game.addVideo("turnOver", player, player.classList.contains("turnedover"));
|
game.addVideo("turnOver", player, player.classList.contains("turnedover"));
|
||||||
},
|
},
|
||||||
link: function () {
|
link: function () {
|
||||||
if (player.isLinked()) {
|
const isLinked = player.isLinked();
|
||||||
game.log(player, "解除连环");
|
game.log(player, (isLinked ? "解除" : "被") + "连环");
|
||||||
} else {
|
game.broadcastAll(isLinked => {
|
||||||
game.log(player, "被连环");
|
|
||||||
}
|
|
||||||
if (lib.config.background_audio) {
|
|
||||||
game.playAudio("effect", "link");
|
|
||||||
}
|
|
||||||
game.broadcast(function () {
|
|
||||||
if (lib.config.background_audio) {
|
if (lib.config.background_audio) {
|
||||||
game.playAudio("effect", "link");
|
game.playAudio("effect", "link" + (isLinked ? "_clear" : ""));
|
||||||
}
|
}
|
||||||
});
|
}, isLinked);
|
||||||
player.classList.remove("target");
|
player.classList.remove("target");
|
||||||
if (get.is.linked2(player)) {
|
if (get.is.linked2(player)) {
|
||||||
player.classList.toggle("linked2");
|
player.classList.toggle("linked2");
|
||||||
|
|
Loading…
Reference in New Issue