mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 07:26:46 +08:00
Upd: _at_low_hp() in various battle UI
This commit is contained in:
parent
9b69de459d
commit
0973cbc6f8
@ -1,7 +1,7 @@
|
||||
from module.base.base import ModuleBase
|
||||
from module.base.timer import Timer
|
||||
from module.base.utils import color_bar_percentage
|
||||
from module.combat_ui.assets import PAUSE, PAUSE_Iridescent_Fantasy, PAUSE_New
|
||||
from module.combat_ui.assets import PAUSE, PAUSE_Christmas, PAUSE_Cyber, PAUSE_Iridescent_Fantasy, PAUSE_Neon, PAUSE_New
|
||||
from module.exercise.assets import *
|
||||
from module.logger import logger
|
||||
|
||||
@ -61,7 +61,13 @@ class HpDaemon(ModuleBase):
|
||||
if pause == PAUSE:
|
||||
self.attacker_hp = self._calculate_hp(image, area=ATTACKER_HP_AREA.area, reverse=True)
|
||||
self.defender_hp = self._calculate_hp(image, area=DEFENDER_HP_AREA.area, reverse=False)
|
||||
elif pause in [PAUSE_New, PAUSE_Iridescent_Fantasy]:
|
||||
elif pause in [
|
||||
PAUSE_New,
|
||||
PAUSE_Iridescent_Fantasy,
|
||||
PAUSE_Neon,
|
||||
PAUSE_Christmas,
|
||||
PAUSE_Cyber,
|
||||
]:
|
||||
self.attacker_hp = self._calculate_hp(image, area=ATTACKER_HP_AREA_New.area, reverse=True)
|
||||
self.defender_hp = self._calculate_hp(image, area=DEFENDER_HP_AREA_New.area, reverse=True)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user