mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 13:03:33 +08:00
Add: Consume spilled Coins
This commit is contained in:
@@ -109,9 +109,7 @@ class GeneralShop(ShopClerk, ShopUI, ShopStatus):
|
||||
|
||||
def shop_check_custom_item(self, item):
|
||||
"""
|
||||
Optional def to check a custom item that
|
||||
cannot be template matched as color and
|
||||
design constantly changes i.e. equip skin box
|
||||
Check a custom item that should be bought with specific option.
|
||||
|
||||
Args:
|
||||
item: Item to check
|
||||
@@ -119,8 +117,14 @@ class GeneralShop(ShopClerk, ShopUI, ShopStatus):
|
||||
Returns:
|
||||
bool: whether item is custom
|
||||
"""
|
||||
if self.config.GeneralShop_ConsumeCoins and self._currency >= 550000:
|
||||
if item.cost == 'Coins':
|
||||
return True
|
||||
|
||||
if self.config.GeneralShop_BuySkinBox:
|
||||
if (not item.is_known_item()) and item.amount == 1 and item.cost == 'Coins' and item.price == 7000:
|
||||
# check a custom item that cannot be template matched as color
|
||||
# and design constantly changes i.e. equip skin box
|
||||
logger.info(f'Item {item} is considered to be an equip skin box')
|
||||
if self._currency >= item.price:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user