mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 04:58:22 +08:00
Fix: Recheck AP boxes when having OCR error
This commit is contained in:
@@ -160,12 +160,19 @@ class ActionPointHandler(UI, MapEventHandler):
|
|||||||
# Having too many current AP, probably an OCR error
|
# Having too many current AP, probably an OCR error
|
||||||
if self._action_point_current > 600:
|
if self._action_point_current > 600:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
oil, boxes = self._action_point_box[0], self._action_point_box[1:]
|
||||||
# Having boxes
|
# Having boxes
|
||||||
if sum(self._action_point_box[1:]) > 0:
|
if sum(boxes) > 0:
|
||||||
break
|
if oil > 100:
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
# [11, 0, 1, 0]
|
||||||
|
continue
|
||||||
# Or having oil
|
# Or having oil
|
||||||
# Might be 0 or 1 when page is not fully loaded
|
# Might be 0 or 1 when page is not fully loaded
|
||||||
if self._action_point_box[0] > 100:
|
# [1, 0, 0, 0]
|
||||||
|
if oil > 100:
|
||||||
break
|
break
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user