1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-18 09:11:31 +08:00

Upd: func signature predict updated, adapt shop modules respectively

This commit is contained in:
nEEtdo0d
2021-07-20 22:23:13 -04:00
parent 4b223ef239
commit c5fb8ba140
2 changed files with 5 additions and 5 deletions

View File

@@ -16,12 +16,12 @@ OCR_SHOP_SELECT_TOTAL_PRICE = Digit(SHOP_SELECT_TOTAL_PRICE, letter=(255, 255, 2
class GuildItemGrid(ShopItemGrid):
def predict(self, image, name=True, amount=True, cost=False, price=False):
def predict(self, image, name=True, amount=True, cost=False, price=False, tag=False):
"""
Overridden to iterate and add attribute for items classified as having
secondary grid and additional information
"""
super().predict(image, name, amount, cost, price)
super().predict(image, name, amount, cost, price, tag)
# Loop again for Guild Shop items
# Add attr 'secondary_grid' used to flag and id