mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-24 17:09:05 +08:00
Upd: Dashboard PurpleCoin
This commit is contained in:
@@ -88,9 +88,11 @@ class OSStatus(UI):
|
|||||||
|
|
||||||
def get_purple_coins(self) -> int:
|
def get_purple_coins(self) -> int:
|
||||||
if self.appear(OS_SHOP_CHECK):
|
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:
|
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):
|
def os_shop_get_coins(self):
|
||||||
self._shop_yellow_coins = self.get_yellow_coins()
|
self._shop_yellow_coins = self.get_yellow_coins()
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ class OSShop(PortShop, AkashiShop):
|
|||||||
Pages:
|
Pages:
|
||||||
in: PORT_SUPPLY_CHECK
|
in: PORT_SUPPLY_CHECK
|
||||||
"""
|
"""
|
||||||
|
self.os_shop_get_coins()
|
||||||
items = self.scan_all()
|
items = self.scan_all()
|
||||||
if not len(items):
|
if not len(items):
|
||||||
logger.warning('Empty OS shop.')
|
logger.warning('Empty OS shop.')
|
||||||
@@ -175,7 +176,6 @@ class OSShop(PortShop, AkashiShop):
|
|||||||
if not len(items):
|
if not len(items):
|
||||||
logger.warning('Nothing to buy.')
|
logger.warning('Nothing to buy.')
|
||||||
return False
|
return False
|
||||||
self.os_shop_get_coins()
|
|
||||||
skip_get_coins = True
|
skip_get_coins = True
|
||||||
items.reverse()
|
items.reverse()
|
||||||
count = 0
|
count = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user