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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user