From 9d25a521d0b91b0e8e9d1290e0157e550925a3c4 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 28 Nov 2024 20:55:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E5=BD=95=E5=83=8F?= =?UTF-8?q?=E7=9A=84=E8=AE=B0=E5=BD=95=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/game/replay.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugin/game/replay.ts b/src/plugin/game/replay.ts index 705532a..2ab960a 100644 --- a/src/plugin/game/replay.ts +++ b/src/plugin/game/replay.ts @@ -46,6 +46,7 @@ export function init() { break; } const settingName = settingNameMap[setting]; + core.status.route.push(name); if (settingName) { tipAndWait(`切换设置:${settingName}`, 1000).then(() => { core.replay(); @@ -53,7 +54,6 @@ export function init() { } else { core.replay(); } - core.status.route.push(name); return true; }); @@ -63,10 +63,10 @@ export function init() { upgradeSkill(skill); const s = getSkillFromIndex(skill); const skillName = s?.title; + core.status.route.push(name); tipAndWait(`升级技能:${skillName}`, 1000).then(() => { core.replay(); }); - core.status.route.push(name); return true; }); @@ -113,10 +113,10 @@ export function init() { (type === 'buy' ? num : -num) as number ); const { name: itemName } = core.material.items[id as AllIdsOf<'items'>]; + core.status.route.push(name); tipAndWait(`购买物品:${itemName}`, 1000).then(() => { core.replay(); }); - core.status.route.push(name); return true; }); @@ -180,6 +180,7 @@ export function init() { } core.updateStatusBar(); const name = skillNameMap[toEmit]; + core.status.route.push(`useSkill:${toEmit}`); if (name) { tipAndWait(`切换技能:${name}`, 1000).then(() => { core.replay(); @@ -187,7 +188,6 @@ export function init() { } else { core.replay(); } - core.status.route.push(`useSkill:${toEmit}`); return true; }