1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Refactor: Exercise module, mode easiest_else_exp might have issues

This commit is contained in:
LmeSzinc
2021-09-23 02:31:08 +08:00
parent eb7886df61
commit e607c920cf
9 changed files with 114 additions and 45 deletions

View File

@@ -57,7 +57,7 @@ class HpDaemon(ModuleBase):
def _at_low_hp(self, image):
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)
if 0.01 < self.attacker_hp <= self.config.LOW_HP_THRESHOLD:
if 0.01 < self.attacker_hp <= self.config.Exercise_LowHpThreshold:
if self.low_hp_confirm_timer.reached() and self.low_hp_confirm_timer.current() < 300:
self._show_hp(self.low_hp_confirm_timer.current())
return True