1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 13:17:00 +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

@@ -1,4 +1,7 @@
<<<<<<< HEAD
from module.base.decorator import Config
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
from module.shop.shop_core import CoreShop
from module.shop.shop_general import GeneralShop
from module.shop.shop_guild import GuildShop
@@ -18,6 +21,7 @@ class RewardShop(ShopUI):
self.config.task_delay(server_update=True)
<<<<<<< HEAD
@Config.when(SERVER='tw')
def run_once(self):
# Munitions shops
@@ -43,6 +47,8 @@ class RewardShop(ShopUI):
self.config.task_delay(server_update=True)
@Config.when(SERVER=None)
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
def run_once(self):
# Munitions shops
self.ui_goto_shop()

View File

@@ -1,7 +1,10 @@
from module.ocr.ocr import Digit
from module.shop.assets import *
from module.ui.ui import UI
<<<<<<< HEAD
from module.log_res.log_res import LogRes
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
OCR_SHOP_GOLD_COINS = Digit(SHOP_GOLD_COINS, letter=(239, 239, 239), name='OCR_SHOP_GOLD_COINS')
OCR_SHOP_GEMS = Digit(SHOP_GEMS, letter=(255, 243, 82), name='OCR_SHOP_GEMS')
@@ -22,8 +25,11 @@ class ShopStatus(UI):
in:
"""
amount = OCR_SHOP_GOLD_COINS.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).Coin = amount
self.config.update()
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount
def status_get_gems(self):
@@ -35,8 +41,11 @@ class ShopStatus(UI):
in: page_shop, medal shop
"""
amount = OCR_SHOP_GEMS.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).Gem = amount
self.config.update()
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount
def status_get_medal(self):
@@ -48,8 +57,11 @@ class ShopStatus(UI):
in: page_shop, medal shop
"""
amount = OCR_SHOP_MEDAL.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).Medal = amount
self.config.update()
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount
def status_get_merit(self):
@@ -61,8 +73,11 @@ class ShopStatus(UI):
in: page_shop, merit shop
"""
amount = OCR_SHOP_MERIT.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).Merit = amount
self.config.update()
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount
def status_get_guild_coins(self):
@@ -74,8 +89,11 @@ class ShopStatus(UI):
in: page_shop, guild shop
"""
amount = OCR_SHOP_GUILD_COINS.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).GuildCoin = amount
self.config.update()
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount
def status_get_core(self):
@@ -87,8 +105,11 @@ class ShopStatus(UI):
in: page_shop, core shop
"""
amount = OCR_SHOP_CORE.ocr(self.device.image)
<<<<<<< HEAD
LogRes(self.config).Core = amount
self.config.update()
=======
>>>>>>> 24aa3e00bd9af9a6a050df54c6a0cef959a9c6c0
return amount
def status_get_voucher(self):