状态栏显示自动切换技能

This commit is contained in:
unanmed 2023-04-22 10:14:19 +08:00
parent 4388eae096
commit 70f26922b9

View File

@ -145,7 +145,7 @@ const hero = shallowReactive<Partial<HeroStatus>>({});
const keys = shallowReactive<number[]>([]);
const floor = ref<string>();
const lvName = ref<string>();
const skill = ref<string>('无');
const skill = ref<string>(flags.autoSkill ? '自动切换' : '无');
const up = ref(0);
const spring = ref<number>();
const skillOpened = ref(core.getFlag('chapter', 0) > 0);
@ -179,6 +179,9 @@ function update() {
keys[2] = core.itemCount('redKey');
floor.value = core.status.thisMap?.title;
lvName.value = core.getLvName(hero.lv);
if (flags.autoSkill) {
skill.value = '自动切换';
} else {
if (flags.blade && flags.bladeOn) {
skill.value = '断灭之刃';
} else if (flags.shield && flags.shieldOn) {
@ -186,6 +189,7 @@ function update() {
} else {
skill.value = '无';
}
}
up.value = core.getNextLvUpNeed() ?? 0;
if (core.hasFlag('spring')) {
spring.value = 50 - flags.springCount;