mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 01:43:43 +08:00
Fix: Missing break in get_yellow_coins() (fixed #2190)
This commit is contained in:
@@ -61,6 +61,8 @@ class OSStatus(UI):
|
|||||||
yellow_coins = OCR_SHOP_YELLOW_COINS.ocr(self.device.image)
|
yellow_coins = OCR_SHOP_YELLOW_COINS.ocr(self.device.image)
|
||||||
if timeout.reached():
|
if timeout.reached():
|
||||||
logger.warning('Get yellow coins timeout')
|
logger.warning('Get yellow coins timeout')
|
||||||
|
break
|
||||||
|
|
||||||
if yellow_coins < 100:
|
if yellow_coins < 100:
|
||||||
# OCR may get 0 or 1 when amount is not immediately loaded
|
# OCR may get 0 or 1 when amount is not immediately loaded
|
||||||
logger.info('Yellow coins less than 100, assuming it is an ocr error')
|
logger.info('Yellow coins less than 100, assuming it is an ocr error')
|
||||||
|
|||||||
Reference in New Issue
Block a user