1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-25 10:08:15 +08:00
This commit is contained in:
whoamikyo
2020-08-24 01:31:12 -03:00

View File

@@ -40,7 +40,7 @@ class RewardMeowfficer(UI):
count = remain count = remain
# Check coins # Check coins
coins = MEOWDDICER_COINS.ocr(self.device.image) coins = MEOWDDICER_COINS.ocr(self.device.image)
if coins < BUY_PRIZE: if (coins < BUY_PRIZE) and (remain < BUY_MAX):
logger.warning('Not enough coins to buy one') logger.warning('Not enough coins to buy one')
return False return False
elif (count - int(remain == BUY_MAX)) * BUY_PRIZE > coins: elif (count - int(remain == BUY_MAX)) * BUY_PRIZE > coins: