mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 00:13:35 +08:00
Fix: Handle shop items not loaded (#741)
- Opt: Faster ui switch and purchase in shop
This commit is contained in:
@@ -64,6 +64,14 @@ class Item:
|
||||
value = pre
|
||||
self._name = value
|
||||
|
||||
def is_known_item(self):
|
||||
if self.name == 'DefaultItem':
|
||||
return False
|
||||
elif self.name.isdigit():
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
def __str__(self):
|
||||
if self.name != 'DefaultItem' and self.cost == 'DefaultCost':
|
||||
name = f'{self.name}_x{self.amount}'
|
||||
|
||||
Reference in New Issue
Block a user