连环音效更新

This commit is contained in:
mengxinzxz 2024-05-03 14:14:36 +08:00
parent 4dd3352f34
commit 93495c670c
3 changed files with 5 additions and 11 deletions

Binary file not shown.

BIN
audio/effect/link_clear.mp3 Normal file

Binary file not shown.

View File

@ -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) { if (lib.config.background_audio) {
game.playAudio("effect", "link"); game.playAudio("effect", "link" + (isLinked ? "_clear" : ""));
} }
game.broadcast(function () { }, isLinked);
if (lib.config.background_audio) {
game.playAudio("effect", "link");
}
});
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");