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

Opt: Faster retirement, including click interval clear and less screenshots

- Rename dock_filter_set_faster to dock_filter_set and remove old dock_filter_set
This commit is contained in:
LmeSzinc
2021-11-21 16:24:26 +08:00
parent 2cbd473bc5
commit 1e3cdd4c38
6 changed files with 66 additions and 104 deletions

View File

@@ -43,13 +43,22 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
return False
def map_offensive(self):
def map_offensive(self, skip_first_screenshot=True):
"""
Pages:
in: in_map, MAP_OFFENSIVE
out: combat_appear
"""
while 1:
self.device.screenshot()
if skip_first_screenshot:
skip_first_screenshot = False
else:
self.device.screenshot()
if self.appear_then_click(MAP_OFFENSIVE, interval=1):
continue
if self.handle_combat_low_emotion():
self.interval_reset(MAP_OFFENSIVE)
continue
if self.handle_retirement():
continue