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