mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
状态栏显示自动切换技能
This commit is contained in:
parent
4388eae096
commit
70f26922b9
@ -145,7 +145,7 @@ const hero = shallowReactive<Partial<HeroStatus>>({});
|
|||||||
const keys = shallowReactive<number[]>([]);
|
const keys = shallowReactive<number[]>([]);
|
||||||
const floor = ref<string>();
|
const floor = ref<string>();
|
||||||
const lvName = ref<string>();
|
const lvName = ref<string>();
|
||||||
const skill = ref<string>('无');
|
const skill = ref<string>(flags.autoSkill ? '自动切换' : '无');
|
||||||
const up = ref(0);
|
const up = ref(0);
|
||||||
const spring = ref<number>();
|
const spring = ref<number>();
|
||||||
const skillOpened = ref(core.getFlag('chapter', 0) > 0);
|
const skillOpened = ref(core.getFlag('chapter', 0) > 0);
|
||||||
@ -179,6 +179,9 @@ function update() {
|
|||||||
keys[2] = core.itemCount('redKey');
|
keys[2] = core.itemCount('redKey');
|
||||||
floor.value = core.status.thisMap?.title;
|
floor.value = core.status.thisMap?.title;
|
||||||
lvName.value = core.getLvName(hero.lv);
|
lvName.value = core.getLvName(hero.lv);
|
||||||
|
if (flags.autoSkill) {
|
||||||
|
skill.value = '自动切换';
|
||||||
|
} else {
|
||||||
if (flags.blade && flags.bladeOn) {
|
if (flags.blade && flags.bladeOn) {
|
||||||
skill.value = '断灭之刃';
|
skill.value = '断灭之刃';
|
||||||
} else if (flags.shield && flags.shieldOn) {
|
} else if (flags.shield && flags.shieldOn) {
|
||||||
@ -186,6 +189,7 @@ function update() {
|
|||||||
} else {
|
} else {
|
||||||
skill.value = '无';
|
skill.value = '无';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
up.value = core.getNextLvUpNeed() ?? 0;
|
up.value = core.getNextLvUpNeed() ?? 0;
|
||||||
if (core.hasFlag('spring')) {
|
if (core.hasFlag('spring')) {
|
||||||
spring.value = 50 - flags.springCount;
|
spring.value = 50 - flags.springCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user