update:更新训练的说明文案
This commit is contained in:
@@ -110,50 +110,58 @@ const createDifficultySummary = (item = {}) => {
|
||||
const timeLimit = toNumber(item.time_limit);
|
||||
const hitReq = toNumber(item.hit_req);
|
||||
const totalReq = toNumber(item.total_req);
|
||||
const energyReqPercent = toNumber(item.energy_req_percent);
|
||||
const shootingTimeText =
|
||||
timeLimit > 0 ? `在${timeLimit}秒内进行射箭` : "不限时进行射箭";
|
||||
const enduranceTimeText =
|
||||
timeLimit > 0
|
||||
? `在${timeLimit}秒内完成${arrows}箭`
|
||||
: `不限时完成${arrows}箭`;
|
||||
const rhythmRequiredArrows = toNumber(item.total_req, arrows) || arrows;
|
||||
const timeLine = {
|
||||
parts: timeLimit > 0
|
||||
? [{ text: "限时" }, { text: `${timeLimit}秒`, highlight: true }]
|
||||
: [{ text: "不限时" }],
|
||||
};
|
||||
|
||||
const summaryMap = {
|
||||
base: [
|
||||
shootingTimeText,
|
||||
`需要有${arrows}箭命中${hitReq}环内`,
|
||||
{ parts: [
|
||||
{ text: "需有" }, { text: `${arrows}箭`, highlight: true },
|
||||
{ text: "命中" }, { text: `≥${hitReq}环`, highlight: true },
|
||||
] },
|
||||
timeLine,
|
||||
],
|
||||
endurance: [
|
||||
enduranceTimeText,
|
||||
`且累计环数大于${totalReq}环`,
|
||||
{ parts: [
|
||||
{ text: "需射箭数" }, { text: `≥${arrows}箭`, highlight: true },
|
||||
{ text: ",累计环数" }, { text: `≥${totalReq}环`, highlight: true },
|
||||
] },
|
||||
timeLine,
|
||||
],
|
||||
precision: [
|
||||
shootingTimeText,
|
||||
`需要有${arrows}箭命中高亮区域`,
|
||||
{ parts: [
|
||||
{ text: "需有" }, { text: `${arrows}箭`, highlight: true },
|
||||
{ text: "命中高亮区域" },
|
||||
] },
|
||||
timeLine,
|
||||
],
|
||||
rhythm: [
|
||||
arrows > 0
|
||||
? `需要在指定时间节点射出${arrows}射箭`
|
||||
: "需要在指定时间节点射箭",
|
||||
hitReq > 0 ? `且每箭命中${hitReq}环内` : "且每箭命中指定区域",
|
||||
{ parts: [
|
||||
{ text: "跟随节拍撒放,共" }, { text: `${arrows}箭`, highlight: true },
|
||||
{ text: "需" }, { text: `${rhythmRequiredArrows}箭`, highlight: true },
|
||||
] },
|
||||
{ parts: [
|
||||
{ text: "命中" }, { text: `≥${hitReq}环`, highlight: true },
|
||||
{ text: "且踏中节拍区间" },
|
||||
] },
|
||||
],
|
||||
stability: [
|
||||
{
|
||||
parts: [
|
||||
{ text: timeLimit > 0 ? "在" : "" },
|
||||
{
|
||||
text: timeLimit > 0 ? `${timeLimit}秒` : "不限时",
|
||||
highlight: true,
|
||||
},
|
||||
{ text: timeLimit > 0 ? "内射箭,命中" : "射箭,命中" },
|
||||
{ text: `${hitReq}环`, highlight: true },
|
||||
{ text: "可获得能量" },
|
||||
{ text: "命中" },
|
||||
{ text: `≥${hitReq}环`, highlight: true },
|
||||
{ text: "可为能量槽充能" },
|
||||
],
|
||||
},
|
||||
{
|
||||
parts: [
|
||||
{ text: "计时结束能量需要大于" },
|
||||
{ text: `${energyReqPercent}%`, highlight: true },
|
||||
{ text: timeLimit > 0 ? "限时 " : "不限时" },
|
||||
{ text: timeLimit > 0 ? `${timeLimit}` : "", highlight: true },
|
||||
{ text: timeLimit > 0 ? " 秒,能量打满即过关" : ",能量打满即过关" },
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -628,6 +636,7 @@ const createPracticeQuery = (difficulty) => {
|
||||
},
|
||||
rhythm: {
|
||||
hitReq: toNumber(difficulty.hit_req),
|
||||
totalReq: toNumber(difficulty.total_req, toNumber(difficulty.arrows)),
|
||||
mode: toNumber(difficulty.mode),
|
||||
roundTime: toNumber(difficulty.round_time ?? difficulty.roundTime),
|
||||
shootTime: toNumber(difficulty.shoot_time ?? difficulty.shootTime),
|
||||
|
||||
Reference in New Issue
Block a user