update:新增乱斗语音,排位赛界面新增统计
This commit is contained in:
@@ -152,7 +152,8 @@ async function onReceiveMessage(msg) {
|
||||
halfTime.value = false;
|
||||
audioManager.play(audioKey);
|
||||
} else if (msg.type === MESSAGETYPESV2.BattleEnd) {
|
||||
audioManager.play(props.endAudioKey, false);
|
||||
// 大乱斗结束后取消尚未播完的等待提示,避免在结算阶段继续播报。
|
||||
audioManager.play(props.endAudioKey, props.melee);
|
||||
} else if (msg.type === MESSAGETYPESV2.ShootResult) {
|
||||
let arrow = {};
|
||||
if (msg.details && Array.isArray(msg.details)) {
|
||||
@@ -163,12 +164,15 @@ async function onReceiveMessage(msg) {
|
||||
}
|
||||
let key = [];
|
||||
key.push(arrow.ring ? `${arrow.ringX ? "X" : arrow.ring}环` : "未上靶");
|
||||
if (arrow.angle)
|
||||
if (arrow.angle !== null && arrow.angle !== undefined)
|
||||
key.push(`向${getDirectionText(arrow.angle)}调整`);
|
||||
const shouldPlayTententen =
|
||||
arrow.threeConsecutive10Rings === true ||
|
||||
msg.shootData?.threeConsecutive10Rings === true;
|
||||
if (!props.melee && shouldPlayTententen) key.push("tententen");
|
||||
if (shouldPlayTententen) key.push("tententen");
|
||||
if (props.melee && msg.meleeCompletionAudioKey) {
|
||||
key.push(msg.meleeCompletionAudioKey);
|
||||
}
|
||||
audioManager.play(key, false);
|
||||
} else if (msg.type === MESSAGETYPESV2.HalfRest) {
|
||||
halfTime.value = true;
|
||||
|
||||
Reference in New Issue
Block a user