mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Upd: Dashboard PurpleCoin
This commit is contained in:
parent
5f46f83c41
commit
5830e191b2
@ -88,9 +88,11 @@ class OSStatus(UI):
|
||||
|
||||
def get_purple_coins(self) -> int:
|
||||
if self.appear(OS_SHOP_CHECK):
|
||||
return OCR_OS_SHOP_PURPLE_COINS.ocr(self.device.image)
|
||||
purple_coins = OCR_OS_SHOP_PURPLE_COINS.ocr(self.device.image)
|
||||
else:
|
||||
return OCR_SHOP_PURPLE_COINS.ocr(self.device.image)
|
||||
purple_coins = OCR_SHOP_PURPLE_COINS.ocr(self.device.image)
|
||||
LogRes(self.config).PurpleCoin = purple_coins
|
||||
return purple_coins
|
||||
|
||||
def os_shop_get_coins(self):
|
||||
self._shop_yellow_coins = self.get_yellow_coins()
|
||||
|
||||
@ -167,6 +167,7 @@ class OSShop(PortShop, AkashiShop):
|
||||
Pages:
|
||||
in: PORT_SUPPLY_CHECK
|
||||
"""
|
||||
self.os_shop_get_coins()
|
||||
items = self.scan_all()
|
||||
if not len(items):
|
||||
logger.warning('Empty OS shop.')
|
||||
@ -174,8 +175,7 @@ class OSShop(PortShop, AkashiShop):
|
||||
items = self.items_filter_in_os_shop(items)
|
||||
if not len(items):
|
||||
logger.warning('Nothing to buy.')
|
||||
return False
|
||||
self.os_shop_get_coins()
|
||||
return False
|
||||
skip_get_coins = True
|
||||
items.reverse()
|
||||
count = 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user