完成新的个人练习流程调试
This commit is contained in:
@@ -128,14 +128,17 @@ async function onReceiveMessage(msg) {
|
||||
} else if (msg.type === MESSAGETYPESV2.BattleEnd) {
|
||||
audioManager.play("比赛结束");
|
||||
} else if (msg.type === MESSAGETYPESV2.ShootResult) {
|
||||
if (msg.shootData.playerId !== user.value.id) return;
|
||||
if (msg.shootData) {
|
||||
let key = [];
|
||||
key.push(msg.shootData.ring ? `${msg.shootData.ring}环` : "未上靶");
|
||||
if (!msg.shootData.ring)
|
||||
key.push(`向${getDirectionText(msg.shootData.angle)}调整`);
|
||||
audioManager.play(key, false);
|
||||
let arrow = {};
|
||||
if (msg.details && Array.isArray(msg.details)) {
|
||||
arrow = msg.details[msg.details.length - 1];
|
||||
} else {
|
||||
if (msg.shootData.playerId !== user.value.id) return;
|
||||
if (msg.shootData) arrow = msg.shootData;
|
||||
}
|
||||
let key = [];
|
||||
key.push(arrow.ring ? `${arrow.ring}环` : "未上靶");
|
||||
if (!arrow.ring) key.push(`向${getDirectionText(arrow.angle)}调整`);
|
||||
audioManager.play(key, false);
|
||||
} else if (msg.type === MESSAGETYPESV2.HalfRest) {
|
||||
halfTime.value = true;
|
||||
audioManager.play("中场休息");
|
||||
|
||||
Reference in New Issue
Block a user