diff --git a/src/App.vue b/src/App.vue index a6a381d..f0fdb3e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -112,6 +112,7 @@ const warnWindowCountdown = ref(5); // 测试玩法 const showTestWindow = ref(false) const maxHP = ref(1000) +const HP = ref(maxHP.value) // 连接状态 const gameState = ref(false) @@ -159,6 +160,10 @@ watch(showWarnWindow, (newVal) => { } }); +watch(waveCounter, () => { + HP.value = Math.max(0, HP.value - channelAStrength.value) +}); + const fansMedal = computed({ get: () => settings.value.fansMedal, set: (value) => { settings.value.fansMedal = value === 'true' } @@ -460,7 +465,7 @@ const guardLevelText = computed(() => {
绿色背景方便用色度键抠像,最大 HP 为
-+