mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
fix: use Unique instance ID instead
This commit is contained in:
parent
ad6cb7fab0
commit
1d464a912c
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user