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

Add: 适配第三章

- 增加处理踩问号是会刷物资船的情况
- 增加对物资船的缺失预测
- 收完菜后出击, 会重新检查舰队
  因为离开出击界面后, 出击舰队会重置为游戏默认的
- 修复了部分偏红的过场图, 会被认作索敌的问题
This commit is contained in:
LmeSzinc
2020-04-15 15:14:35 +08:00
parent 6a9e82d468
commit 8ce405f28a
15 changed files with 315 additions and 53 deletions

View File

@@ -12,12 +12,12 @@ class EnemySearchingHandler(InfoBarHandler):
def _color_initial(self):
MAP_ENEMY_SEARCHING.load_color(self.device.image)
def _enemy_searching_appear(self):
def enemy_searching_appear(self):
return red_overlay_transparency(
MAP_ENEMY_SEARCHING.color, get_color(self.device.image, MAP_ENEMY_SEARCHING.area)
) > self.MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD
def _handle_enemy_flashing(self):
def handle_enemy_flashing(self):
self.device.sleep(1)
def handle_in_stage(self):
@@ -40,11 +40,11 @@ class EnemySearchingHandler(InfoBarHandler):
appeared = False
while 1:
timeout.start()
if self._enemy_searching_appear():
if self.enemy_searching_appear():
appeared = True
else:
if appeared:
self._handle_enemy_flashing()
self.handle_enemy_flashing()
self.device.sleep(0.3)
logger.info('In map.')
break