Skip to content

Commit

Permalink
- Fixed hearts logic sometimes forgetting to check the actual values
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Jun 28, 2024
1 parent cfffc73 commit 068dc0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worlds/stardew_valley/logic/relationship_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def has_hearts_with_any_bachelor(self, hearts: int = 1) -> StardewRule:
if hearts == 0:
return True_()

return self.logic.or_(*(self.logic.relationship.has_hearts(name)
return self.logic.or_(*(self.logic.relationship.has_hearts(name, hearts)
for name, villager in self.content.villagers.items()
if villager.bachelor))

Expand All @@ -87,7 +87,7 @@ def has_hearts_with_any(self, hearts: int = 1) -> StardewRule:
if hearts == 0:
return True_()

return self.logic.or_(*(self.logic.relationship.has_hearts(name)
return self.logic.or_(*(self.logic.relationship.has_hearts(name, hearts)
for name, villager in self.content.villagers.items()))

def has_hearts_with_n(self, amount: int, hearts: int = 1) -> StardewRule:
Expand All @@ -96,7 +96,7 @@ def has_hearts_with_n(self, amount: int, hearts: int = 1) -> StardewRule:
if hearts == 0 or amount == 0:
return True_()

return self.logic.count(amount, *(self.logic.relationship.has_hearts(name)
return self.logic.count(amount, *(self.logic.relationship.has_hearts(name, hearts)
for name, villager in self.content.villagers.items()))

# Should be cached
Expand Down

0 comments on commit 068dc0b

Please sign in to comment.