update:优化语音和训练文案

This commit is contained in:
2026-10-23 11:55:02 +08:00
parent 5bb9df8a03
commit eca15178f4
5 changed files with 110 additions and 91 deletions
+23 -30
View File
@@ -111,57 +111,50 @@ const createDifficultySummary = (item = {}) => {
const hitReq = toNumber(item.hit_req);
const totalReq = toNumber(item.total_req);
const rhythmRequiredArrows = toNumber(item.total_req, arrows) || arrows;
const timeLine = {
parts: timeLimit > 0
? [{ text: "限时" }, { text: `${timeLimit}秒`, highlight: true }]
: [{ text: "不限时" }],
};
const timeParts = timeLimit > 0
? [{ text: `${timeLimit}`, highlight: true }, { text: "秒内," }]
: [{ text: "不限时," }];
const summaryMap = {
base: [
{ parts: [
{ text: "需有" }, { text: `${arrows}箭`, highlight: true },
{ text: "命中" }, { text: `≥${hitReq}环`, highlight: true },
...timeParts,
{ text: "命中" }, { text: `${arrows}`, highlight: true },
{ text: "支" }, { text: `≥${hitReq}`, highlight: true },
{ text: "环的箭" },
] },
timeLine,
],
endurance: [
{ parts: [
{ text: "需射箭数" }, { text: `≥${arrows}箭`, highlight: true },
{ text: ",累计环数" }, { text: `≥${totalReq}环`, highlight: true },
...timeParts,
{ text: "共射出" }, { text: `≥${arrows}`, highlight: true },
{ text: "支箭,且总环数" }, { text: `≥${totalReq}`, highlight: true },
{ text: "环" },
] },
timeLine,
],
precision: [
{ parts: [
{ text: "需有" }, { text: `${arrows}箭`, highlight: true },
{ text: "命中高亮区域" },
...timeParts,
{ text: "命中" }, { text: `${arrows}`, highlight: true },
{ text: "箭高亮区域" },
] },
timeLine,
],
rhythm: [
{ parts: [
{ text: "跟随节拍撒放,共" }, { text: `${arrows}箭`, highlight: true },
{ text: "需" }, { text: `${rhythmRequiredArrows}箭`, highlight: true },
] },
{ parts: [
{ text: "命中" }, { text: `≥${hitReq}环`, highlight: true },
{ text: "且踏中节拍区间" },
{ text: `${arrows}`, highlight: true },
{ text: "个节奏内,随节奏射箭,命中" },
{ text: `${rhythmRequiredArrows}`, highlight: true },
{ text: "箭成绩" }, { text: `≥${hitReq}`, highlight: true },
{ text: "环且踩中节拍区间" },
] },
],
stability: [
{
parts: [
{ text: "命中" },
{ text: `≥${hitReq}环`, highlight: true },
{ text: "可为能量槽充能" },
],
},
{
parts: [
{ text: timeLimit > 0 ? "限时 " : "不限时" },
{ text: timeLimit > 0 ? `${timeLimit}` : "", highlight: true },
{ text: timeLimit > 0 ? " 秒,能量打满即过关" : ",能量打满即过关" },
...timeParts,
{ text: "每射一箭" },
{ text: `≥${hitReq}`, highlight: true },
{ text: "环可为能量槽充能,能量充满即过关" },
],
},
],