From c4ea3def1853e3e28bc8d25f4fb54a4c23b8e399 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Fri, 24 Jul 2020 10:54:20 +0800 Subject: [PATCH] Fix tiny bugs --- project/functions.js | 6 +++++- project/plugins.js | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/project/functions.js b/project/functions.js index bdf06a2b..3fd16f03 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1144,7 +1144,11 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = // 难度 if (core.statusBar.hard.innerText != core.status.hard) { core.statusBar.hard.innerText = core.status.hard; - core.statusBar.hard.style.color = core.getFlag('__hardColor__', 'red'); + } + var hardColor = core.getFlag('__hardColor__', 'red'); + if (core.statusBar.hard.getAttribute('_style') != hardColor) { + core.statusBar.hard.style.color = hardColor; + core.statusBar.hard.setAttribute('_style', hardColor); } // 自定义状态栏绘制 core.drawStatusBar(); diff --git a/project/plugins.js b/project/plugins.js index d7c8e121..7b2aecc2 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -975,6 +975,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.ui.drawTip = function () {}; var _playSound = core.control.playSound; core.control.playSound = function () {} + // 记录当前录像,因为可能存在换装问题 + core.clearRouteFolding(); + var routeLength = core.status.route.length; // 优先判定装备 if (hero1.equipment) { core.items.quickSaveEquip(100 + currHeroId); @@ -1012,6 +1015,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.ui.drawTip = _drawTip; core.control.playSound = _playSound; + core.status.route = core.status.route.slice(0, routeLength); // 插入事件:改变角色行走图并进行楼层切换 var toFloorId = data.floorId || core.status.floorId;