1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 07:28:21 +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:
bool: whether item can be bought
"""
if item.cost == 'GuildCoins':
if item.price > self._shop_guild_coins:
return False
return True
return False
if item.price > self._shop_guild_coins:
return False
return True
def shop_get_select(self, category, choice):
"""

View File

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

View File

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