1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-25 00:09:03 +08:00

fix: use Unique instance ID instead

This commit is contained in:
霞飛
2024-06-21 01:53:42 +08:00
committed by LmeSzinc
parent ad6cb7fab0
commit 1d464a912c

View File

@@ -101,10 +101,7 @@ class OSShopItem(Item):
return name return name
def __eq__(self, other): def __eq__(self, other):
return hash(self) == hash(other) return id(self) == id(other)
def __hash__(self):
return hash((self.name, self.price, self.cost, self.shop_index, self.scroll_pos))
class OSShopItemGrid(ItemGrid): class OSShopItemGrid(ItemGrid):