1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-16 06:57:21 +08:00

Fix: Check currency > 0 before shop_buy_execute()

This commit is contained in:
LmeSzinc
2021-12-21 23:25:25 +08:00
parent ee0dfedc95
commit e3dc859954
5 changed files with 13 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ class GeneralShop(ShopBase):
self._shop_gold_coins = OCR_SHOP_GOLD_COINS.ocr(self.device.image)
self._shop_gems = OCR_SHOP_GEMS.ocr(self.device.image)
logger.info(f'Gold coins: {self._shop_gold_coins}, Gems: {self._shop_gems}')
return self._shop_gold_coins
@cached_property
def shop_general_items(self):