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

Add: Combat mode hide_in_bottom_left

This commit is contained in:
LmeSzinc
2020-08-14 06:44:03 +08:00
parent 58707a83ab
commit bd215e0e98
11 changed files with 36 additions and 15 deletions

View File

@@ -23,6 +23,20 @@ class CombatManual(ModuleBase):
self.device.long_click(MOVE_DOWN, duration=0.8)
return True
def handle_combat_stand_still_bottom_left(self, auto):
"""
Args:
auto (str): Combat auto mode.
Returns:
bool: If executed
"""
if auto != 'hide_in_bottom_left':
return False
self.device.long_click(MOVE_LEFT_DOWN, duration=(3.5, 5.5))
return True
def handle_combat_weapon_release(self):
if self.appear_then_click(READY_AIR_RAID, interval=5):
return True
@@ -45,5 +59,8 @@ class CombatManual(ModuleBase):
if self.handle_combat_stand_still_in_the_middle(auto):
self.manual_executed = True
return True
if self.handle_combat_stand_still_bottom_left(auto):
self.manual_executed = True
return True
return False