mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
Fix: shop_*_check_item, because only general shop detects cost
This commit is contained in:
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user