Skip to content

Commit

Permalink
Stardew Valley: Fix a bug in equals between Or and And rules Archipel…
Browse files Browse the repository at this point in the history
…agoMW#4326

(cherry picked from commit 6896d63)
  • Loading branch information
Jouramie committed Dec 15, 2024
1 parent b34bdc1 commit 03d3e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/stardew_valley/stardew_rule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def __repr__(self):

def __eq__(self, other):
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):
if len(self.combinable_rules) + len(self.simplification_state.original_simplifiable_rules) > 5:
Expand Down

0 comments on commit 03d3e3f

Please sign in to comment.