mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-06 05:29:05 +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]))
|
return crop(self.image_raw, area_offset(area, offset=self._button.area[:2]))
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self.name == other
|
# For de-redundancy in Filter.apply()
|
||||||
|
return str(self) == str(other)
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
|
# For de-redundancy in merging two get items images
|
||||||
return hash(self.name)
|
return hash(self.name)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user