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

Add: Combat auto mode for different fleet

This commit is contained in:
LmeSzinc
2020-07-29 00:50:49 +08:00
parent 4bc3631bf1
commit e8ce2d37b5
9 changed files with 59 additions and 29 deletions

View File

@@ -15,7 +15,14 @@ class CombatAuto(ModuleBase):
self.auto_skip_timer.reset()
self.auto_mode_checked = False
def handle_combat_auto(self):
def handle_combat_auto(self, auto):
"""
Args:
auto (str): Combat auto mode.
Returns:
bool: If executed
"""
if self.auto_mode_checked:
return False
if self.auto_mode_click_timer.reached():
@@ -27,7 +34,7 @@ class CombatAuto(ModuleBase):
if not self.auto_click_interval_timer.reached():
return False
auto = self.config.COMBAT_AUTO_MODE == 'combat_auto'
auto = auto == 'combat_auto'
if self.appear(COMBAT_AUTO, offset=(200, 200)):
if auto:
self.device.click(COMBAT_AUTO_SWITCH)