From 63624def2dbdec6decfe3bfe965f7fed116858e8 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Thu, 5 Jun 2025 10:20:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=AD=A3rewindReplay=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=B7=A5=E5=85=B7=E6=A0=8F=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=8F=98=E5=9B=9E=E6=99=AE=E9=80=9A=E6=A8=A1=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/functions.js b/project/functions.js index a226fa13..a5257c29 100644 --- a/project/functions.js +++ b/project/functions.js @@ -58,14 +58,14 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = core.plugin.checkSkipFuncs(); // 清空自绘道具栏的缓存 core.plugin.clearItemBoxCache(); - // 设置一次工具栏,统计出元素数量 - core.setToolbarButton('normal'); + // 设置一次工具栏,统计出元素数量 + // 注意:录像回退rewindReplay时会调用此函数,此时工具栏应该显示录像图标,所以这里要判定 + core.setToolbarButton(core.domStyle.toolbarBtn === 'replay' ? 'replay' : 'normal'); }, "win": function (reason, norank, noexit) { // 游戏获胜事件 // 请注意,成绩统计时是按照hp进行上传并排名 - // 可以先在这里对最终分数进行计算,比如将2倍攻击和5倍黄钥匙数量加到分数上 - // core.status.hero.hp += 2 * core.getRealStatus('atk') + 5 * core.itemCount('yellowKey'); + // 因为bug,请不要试图在此处修改生命来修改分数,而是在提交前使用事件块修改生命 // 如果不退出,则临时存储数据 if (noexit) {