mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 13:59:02 +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
|
||||
# a ui_ensure_index
|
||||
logger.info(f'Set box amount: {amount}')
|
||||
skip_first = True
|
||||
retry = Timer(1, count=2)
|
||||
for _ in self.loop():
|
||||
if current:
|
||||
current = 0
|
||||
if skip_first:
|
||||
skip_first = False
|
||||
else:
|
||||
current = ocr.ocr(self.device.image)
|
||||
diff = amount - current
|
||||
|
||||
Loading…
Reference in New Issue
Block a user