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

Merge remote-tracking branch 'origin/master' into update_asset

This commit is contained in:
nEEtdo0d
2021-01-17 11:08:42 -05:00
2 changed files with 12 additions and 4 deletions

View File

@@ -98,6 +98,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)
@@ -105,7 +106,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'):

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'):