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

Opt: One less screenshot before clicking BATTLE_PREPARATION

This commit is contained in:
LmeSzinc
2021-01-17 21:31:37 +08:00
parent d916c9910a
commit d3abb53021
2 changed files with 12 additions and 4 deletions

View File

@@ -34,14 +34,18 @@ class Combat(Combat_, EnemySearchingHandler):
fleet_index (int):
"""
logger.info('Combat preparation.')
skip_first_screenshot = True
if emotion_reduce:
self.emotion.wait(fleet=fleet_index)
# if emotion_reduce:
# self.emotion.wait(fleet=fleet_index)
if balance_hp:
self.hp_balance()
while 1:
self.device.screenshot()
if skip_first_screenshot:
skip_first_screenshot = False
else:
self.device.screenshot()
if self.appear(BATTLE_PREPARATION):
if self.handle_combat_automation_set(auto=auto == 'combat_auto'):