mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-20 21:24:30 +08:00
Fix: Not having enough coins to buy skin boxes
This commit is contained in:
@@ -199,7 +199,11 @@ class ShopBase(UI):
|
|||||||
if self.config.GeneralShop_BuySkinBox:
|
if self.config.GeneralShop_BuySkinBox:
|
||||||
if (not item.is_known_item()) and item.amount == 1 and item.cost == 'Coins' and item.price == 7000:
|
if (not item.is_known_item()) and item.amount == 1 and item.cost == 'Coins' and item.price == 7000:
|
||||||
logger.info(f'Item {item} is considered to be an equip skin box')
|
logger.info(f'Item {item} is considered to be an equip skin box')
|
||||||
return True
|
try:
|
||||||
|
if self._shop_gold_coins > item.price:
|
||||||
|
return True
|
||||||
|
except AttributeError:
|
||||||
|
logger.warning('Missing _shop_gold_coins')
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user