mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 04:25:38 +08:00
Pref: Exit use box loop before checking scroll at_bottom
This commit is contained in:
@@ -250,9 +250,11 @@ class StorageHandler(StorageUI):
|
|||||||
else:
|
else:
|
||||||
MATERIAL_SCROLL.set_top(main=self)
|
MATERIAL_SCROLL.set_top(main=self)
|
||||||
|
|
||||||
while amount > used:
|
while 1:
|
||||||
logger.hr('Use boxes in page')
|
logger.hr('Use boxes in page')
|
||||||
used += self._storage_use_box_in_page(rarity=rarity, amount=amount - used)
|
used += self._storage_use_box_in_page(rarity=rarity, amount=max(amount - used, 0))
|
||||||
|
if used >= amount:
|
||||||
|
break
|
||||||
if MATERIAL_SCROLL.at_bottom(main=self):
|
if MATERIAL_SCROLL.at_bottom(main=self):
|
||||||
logger.info('Scroll bar reached end, stop')
|
logger.info('Scroll bar reached end, stop')
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user