mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: Shop item de-redundancy
This commit is contained in:
@@ -98,9 +98,11 @@ class Item:
|
||||
return crop(self.image_raw, area_offset(area, offset=self._button.area[:2]))
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.name == other
|
||||
# For de-redundancy in Filter.apply()
|
||||
return str(self) == str(other)
|
||||
|
||||
def __hash__(self):
|
||||
# For de-redundancy in merging two get items images
|
||||
return hash(self.name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user