1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-20 08:19:31 +08:00
This commit is contained in:
GH Action - Upstream Sync
2025-05-22 06:32:27 +00:00

View File

@@ -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