1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +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

@@ -97,6 +97,7 @@ class Combat(Level, HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall
fleet_index (int):
"""
logger.info('Combat preparation.')
skip_first_screenshot = True
if emotion_reduce:
self.emotion.wait(fleet=fleet_index)
@@ -104,7 +105,10 @@ class Combat(Level, HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall
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'):