From 70f26922b9e2764b8b837360afc3d1238ecfc264 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 22 Apr 2023 10:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A0=8F=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2=E6=8A=80=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/statusBar.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ui/statusBar.vue b/src/ui/statusBar.vue index d6b9385..7ccc2e9 100644 --- a/src/ui/statusBar.vue +++ b/src/ui/statusBar.vue @@ -145,7 +145,7 @@ const hero = shallowReactive>({}); const keys = shallowReactive([]); const floor = ref(); const lvName = ref(); -const skill = ref('无'); +const skill = ref(flags.autoSkill ? '自动切换' : '无'); const up = ref(0); const spring = ref(); const skillOpened = ref(core.getFlag('chapter', 0) > 0); @@ -179,12 +179,16 @@ function update() { keys[2] = core.itemCount('redKey'); floor.value = core.status.thisMap?.title; lvName.value = core.getLvName(hero.lv); - if (flags.blade && flags.bladeOn) { - skill.value = '断灭之刃'; - } else if (flags.shield && flags.shieldOn) { - skill.value = '铸剑为盾'; + if (flags.autoSkill) { + skill.value = '自动切换'; } else { - skill.value = '无'; + if (flags.blade && flags.bladeOn) { + skill.value = '断灭之刃'; + } else if (flags.shield && flags.shieldOn) { + skill.value = '铸剑为盾'; + } else { + skill.value = '无'; + } } up.value = core.getNextLvUpNeed() ?? 0; if (core.hasFlag('spring')) {