1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 08:38:20 +08:00
This commit is contained in:
SevCrane
2024-06-05 23:53:03 +08:00
179 changed files with 17873 additions and 1 deletions

View File

@@ -9,7 +9,10 @@ from module.map.map_grids import SelectedGrids
from module.ocr.ocr import Digit
from module.os_handler.assets import *
from module.ui.ui import UI
<<<<<<< HEAD
from module.log_res.log_res import LogRes
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
OCR_SHOP_YELLOW_COINS = Digit(SHOP_YELLOW_COINS, letter=(239, 239, 239), threshold=160, name='OCR_SHOP_YELLOW_COINS')
OCR_SHOP_PURPLE_COINS = Digit(SHOP_PURPLE_COINS, letter=(255, 255, 255), name='OCR_SHOP_PURPLE_COINS')
@@ -72,11 +75,17 @@ class OSStatus(UI):
continue
else:
break
<<<<<<< HEAD
LogRes(self.config).YellowCoin = yellow_coins
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return yellow_coins
def get_purple_coins(self) -> int:
amount = OCR_SHOP_PURPLE_COINS.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).PurpleCoin = amount
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount