mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 07:13:34 +08:00
Opt: Move shop items all together
This commit is contained in:
@@ -28,8 +28,8 @@ class GeneralShop(ShopBase):
|
||||
"""
|
||||
shop_grid = self.shop_grid
|
||||
shop_general_items = ShopItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
|
||||
shop_general_items.load_template_folder('./assets/general_shop')
|
||||
shop_general_items.load_cost_template_folder('./assets/shop_cost')
|
||||
shop_general_items.load_template_folder('./assets/shop/general')
|
||||
shop_general_items.load_cost_template_folder('./assets/shop/cost')
|
||||
return shop_general_items
|
||||
|
||||
def shop_general_check_item(self, item):
|
||||
|
||||
@@ -60,8 +60,8 @@ class GuildShop(ShopBase):
|
||||
"""
|
||||
shop_grid = self.shop_grid
|
||||
shop_guild_items = GuildItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
|
||||
shop_guild_items.load_template_folder('./assets/guild_shop_cn')
|
||||
shop_guild_items.load_cost_template_folder('./assets/shop_cost')
|
||||
shop_guild_items.load_template_folder('./assets/shop/guild_cn')
|
||||
shop_guild_items.load_cost_template_folder('./assets/shop/cost')
|
||||
return shop_guild_items
|
||||
|
||||
@cached_property
|
||||
@@ -73,8 +73,8 @@ class GuildShop(ShopBase):
|
||||
"""
|
||||
shop_grid = self.shop_grid
|
||||
shop_guild_items = GuildItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
|
||||
shop_guild_items.load_template_folder('./assets/guild_shop')
|
||||
shop_guild_items.load_cost_template_folder('./assets/shop_cost')
|
||||
shop_guild_items.load_template_folder('./assets/shop/guild')
|
||||
shop_guild_items.load_cost_template_folder('./assets/shop/cost')
|
||||
return shop_guild_items
|
||||
|
||||
def shop_guild_check_item(self, item):
|
||||
@@ -186,7 +186,7 @@ class GuildShop(ShopBase):
|
||||
return False
|
||||
|
||||
# Scan for plus/minus locations varies based on grid and item selected
|
||||
# After searching within an offset, buttons move to the actual location automatically
|
||||
# After searching within an offset, buttons move to the actual location automatically.
|
||||
self.device.screenshot()
|
||||
if self.appear(SELECT_MINUS, offset=select_offset) and self.appear(SELECT_PLUS, offset=select_offset):
|
||||
break
|
||||
|
||||
@@ -36,8 +36,8 @@ class MedalShop(ShopBase):
|
||||
"""
|
||||
shop_grid = self.shop_medal_grid
|
||||
shop_medal_items = ShopItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
|
||||
shop_medal_items.load_template_folder('./assets/medal_shop')
|
||||
shop_medal_items.load_cost_template_folder('./assets/shop_cost')
|
||||
shop_medal_items.load_template_folder('./assets/shop/medal')
|
||||
shop_medal_items.load_cost_template_folder('./assets/shop/cost')
|
||||
shop_medal_items.similarity = 0.88 # Lower the threshold for consistent matches of PR/DRBP
|
||||
return shop_medal_items
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@ class MeritShop(ShopBase):
|
||||
"""
|
||||
shop_grid = self.shop_grid
|
||||
shop_merit_items = ShopItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
|
||||
shop_merit_items.load_template_folder('./assets/merit_shop')
|
||||
shop_merit_items.load_cost_template_folder('./assets/shop_cost')
|
||||
shop_merit_items.load_template_folder('./assets/shop/merit')
|
||||
shop_merit_items.load_cost_template_folder('./assets/shop/cost')
|
||||
return shop_merit_items
|
||||
|
||||
def shop_merit_check_item(self, item):
|
||||
|
||||
Reference in New Issue
Block a user