mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 03:08:15 +08:00
Fix: Recheck AP boxes when having OCR error
This commit is contained in:
parent
0fd15a26c4
commit
7bb5c15788
@ -160,12 +160,19 @@ class ActionPointHandler(UI, MapEventHandler):
|
||||
# Having too many current AP, probably an OCR error
|
||||
if self._action_point_current > 600:
|
||||
continue
|
||||
|
||||
oil, boxes = self._action_point_box[0], self._action_point_box[1:]
|
||||
# Having boxes
|
||||
if sum(self._action_point_box[1:]) > 0:
|
||||
break
|
||||
if sum(boxes) > 0:
|
||||
if oil > 100:
|
||||
break
|
||||
else:
|
||||
# [11, 0, 1, 0]
|
||||
continue
|
||||
# Or having oil
|
||||
# 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
|
||||
|
||||
@staticmethod
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user