mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
fix: use Unique instance ID instead
This commit is contained in:
@@ -101,10 +101,7 @@ class OSShopItem(Item):
|
||||
return name
|
||||
|
||||
def __eq__(self, other):
|
||||
return hash(self) == hash(other)
|
||||
|
||||
def __hash__(self):
|
||||
return hash((self.name, self.price, self.cost, self.shop_index, self.scroll_pos))
|
||||
return id(self) == id(other)
|
||||
|
||||
|
||||
class OSShopItemGrid(ItemGrid):
|
||||
|
||||
Reference in New Issue
Block a user