1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Dev: Add SHOP_EXTRACT_TEMPLATE to collect new item templates

This commit is contained in:
LmeSzinc
2022-12-31 01:27:57 +08:00
parent 33384d4685
commit 815dde4a5c
10 changed files with 52 additions and 21 deletions

View File

@@ -55,6 +55,8 @@ class OSShopHandler(UI, MapEventHandler):
Returns:
list[Item]:
"""
if self.config.SHOP_EXTRACT_TEMPLATE:
self.os_shop_items.extract_template(self.device.image, './assets/shop/os')
self.os_shop_items.predict(self.device.image, name=name, amount=name, cost=True, price=True)
items = self.os_shop_items.items