update:个人训练优化

This commit is contained in:
2026-08-14 17:13:23 +08:00
parent d662db9465
commit e7f073ed7c
25 changed files with 481 additions and 344 deletions
+4 -2
View File
@@ -20,7 +20,7 @@ import {
MATCH_WS_STATE_EVENT,
} from "@/matchWebsocket";
import { MESSAGETYPESV2 } from "@/constants";
import { getDirectionText } from "@/util";
import { getDirectionText, getInvalidShotAudioKey } from "@/util";
import { takeMatchReturnSnapshot } from "@/utils/matchReturn";
import audioManager, {
AUDIO_INTERRUPTION_BEGIN_EVENT,
@@ -1136,7 +1136,9 @@ async function runInvalidShotTask(task, runId) {
title: "距离不足,无效",
icon: "none",
});
await playAudioKeys("射击无效", { interrupt: false });
await playAudioKeys(getInvalidShotAudioKey(task.message?.shootData), {
interrupt: false,
});
notifyMatchAudioAck(task);
}