Fix tiny bugs

This commit is contained in:
ckcz123 2020-07-24 10:54:20 +08:00
parent 2bf38dece2
commit c4ea3def18
2 changed files with 9 additions and 1 deletions

View File

@ -1144,7 +1144,11 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
// 难度 // 难度
if (core.statusBar.hard.innerText != core.status.hard) { if (core.statusBar.hard.innerText != core.status.hard) {
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(); core.drawStatusBar();

View File

@ -975,6 +975,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.ui.drawTip = function () {}; core.ui.drawTip = function () {};
var _playSound = core.control.playSound; var _playSound = core.control.playSound;
core.control.playSound = function () {} core.control.playSound = function () {}
// 记录当前录像,因为可能存在换装问题
core.clearRouteFolding();
var routeLength = core.status.route.length;
// 优先判定装备 // 优先判定装备
if (hero1.equipment) { if (hero1.equipment) {
core.items.quickSaveEquip(100 + currHeroId); core.items.quickSaveEquip(100 + currHeroId);
@ -1012,6 +1015,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.ui.drawTip = _drawTip; core.ui.drawTip = _drawTip;
core.control.playSound = _playSound; core.control.playSound = _playSound;
core.status.route = core.status.route.slice(0, routeLength);
// 插入事件:改变角色行走图并进行楼层切换 // 插入事件:改变角色行走图并进行楼层切换
var toFloorId = data.floorId || core.status.floorId; var toFloorId = data.floorId || core.status.floorId;