mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 23:57:23 +08:00
Fix: Handle random OCR error in action points
This commit is contained in:
@@ -145,6 +145,9 @@ class ActionPointHandler(UI, MapEventHandler):
|
|||||||
|
|
||||||
self.action_point_update()
|
self.action_point_update()
|
||||||
|
|
||||||
|
# Having too many current AP, probably an OCR error
|
||||||
|
if self._action_point_current > 600:
|
||||||
|
continue
|
||||||
# Having boxes
|
# Having boxes
|
||||||
if sum(self._action_point_box[1:]) > 0:
|
if sum(self._action_point_box[1:]) > 0:
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ STRATEGIC_SEARCH_SCROLL = Scroll(STRATEGIC_SEARCH_SCROLL_AREA, color=(247, 211,
|
|||||||
class StrategicSearchHandler(EnemySearchingHandler):
|
class StrategicSearchHandler(EnemySearchingHandler):
|
||||||
def strategy_search_enter(self, skip_first_screenshot=False):
|
def strategy_search_enter(self, skip_first_screenshot=False):
|
||||||
logger.info('Strategic search enter')
|
logger.info('Strategic search enter')
|
||||||
|
self.interval_clear(STRATEGIC_SEARCH_MAP_OPTION_OFF)
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
|
|||||||
Reference in New Issue
Block a user