mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: skip first ocr in _handle_use_box_amount
This commit is contained in:
parent
367714584b
commit
f6e0a0bba2
@ -82,10 +82,11 @@ class StorageHandler(StorageUI):
|
|||||||
# set amount
|
# set amount
|
||||||
# a ui_ensure_index
|
# a ui_ensure_index
|
||||||
logger.info(f'Set box amount: {amount}')
|
logger.info(f'Set box amount: {amount}')
|
||||||
|
skip_first = True
|
||||||
retry = Timer(1, count=2)
|
retry = Timer(1, count=2)
|
||||||
for _ in self.loop():
|
for _ in self.loop():
|
||||||
if current:
|
if skip_first:
|
||||||
current = 0
|
skip_first = False
|
||||||
else:
|
else:
|
||||||
current = ocr.ocr(self.device.image)
|
current = ocr.ocr(self.device.image)
|
||||||
diff = amount - current
|
diff = amount - current
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user