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

Opt: Move Wasteland mode to stop condition if_map_reach

Opt: Gather map status
This commit is contained in:
LmeSzinc
2020-08-11 00:08:29 +08:00
parent 2134c4d8d5
commit 7ee63cc651
12 changed files with 109 additions and 102 deletions

View File

@@ -12,7 +12,8 @@ class EnemySearchingHandler(InfoHandler):
MAP_ENEMY_SEARCHING_TIMEOUT_SECOND = 5
in_stage_timer = Timer(1.5, count=5)
stage_entrance = None
is_map_green = False
map_is_clear = False # Will be override in fast_forward.py
def enemy_searching_color_initial(self):
MAP_ENEMY_SEARCHING.load_color(self.device.image)
@@ -42,7 +43,7 @@ class EnemySearchingHandler(InfoHandler):
if self.appear(MAP_PREPARATION) or self.appear(FLEET_PREPARATION):
self.device.click(MAP_PREPARATION_CANCEL)
return False
if self.is_map_green \
if self.map_is_clear \
and self.stage_entrance is not None \
and self.stage_entrance.area \
and not self.appear(self.stage_entrance, threshold=30):