mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Stardew Valley: Fix a bug in equals between Or and And rules #4326
This commit is contained in:
@@ -293,7 +293,7 @@ class AggregatingStardewRule(BaseStardewRule, ABC):
|
|||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return (isinstance(other, type(self)) and self.combinable_rules == other.combinable_rules and
|
return (isinstance(other, type(self)) and self.combinable_rules == other.combinable_rules and
|
||||||
self.simplification_state.original_simplifiable_rules == self.simplification_state.original_simplifiable_rules)
|
self.simplification_state.original_simplifiable_rules == other.simplification_state.original_simplifiable_rules)
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
if len(self.combinable_rules) + len(self.simplification_state.original_simplifiable_rules) > 5:
|
if len(self.combinable_rules) + len(self.simplification_state.original_simplifiable_rules) > 5:
|
||||||
|
Reference in New Issue
Block a user