1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-20 22:35:35 +08:00

Fix: shop_*_check_item, because only general shop detects cost

This commit is contained in:
LmeSzinc
2021-08-11 11:10:37 +08:00
parent 723f4929d2
commit c17a22bf33
3 changed files with 9 additions and 15 deletions

View File

@@ -85,11 +85,9 @@ class GuildShop(ShopBase):
Returns: Returns:
bool: whether item can be bought bool: whether item can be bought
""" """
if item.cost == 'GuildCoins':
if item.price > self._shop_guild_coins: if item.price > self._shop_guild_coins:
return False return False
return True return True
return False
def shop_get_select(self, category, choice): def shop_get_select(self, category, choice):
""" """

View File

@@ -70,8 +70,6 @@ class MedalShop(ShopBase):
Returns: Returns:
bool: bool:
""" """
if item.cost == 'Medal':
if item.price > self._shop_medal: if item.price > self._shop_medal:
return False return False
return True return True
return False

View File

@@ -38,8 +38,6 @@ class MeritShop(ShopBase):
Returns: Returns:
bool: bool:
""" """
if item.cost == 'Merit':
if item.price > self._shop_merit: if item.price > self._shop_merit:
return False return False
return True return True
return False