Skip to content

Commit

Permalink
check specificly if pet is randomized
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouramie committed Jun 13, 2024
1 parent bf608f5 commit 01a83b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions worlds/stardew_valley/content/feature/friendsanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ class FriendsanityFeature(ABC):
def get_randomized_hearts(self, villager: Villager) -> Tuple[int, ...]:
...

@property
def is_pet_randomized(self):
return bool(self.get_pet_randomized_hearts())

@abstractmethod
def get_pet_randomized_hearts(self) -> Tuple[int, ...]:
...
Expand Down
2 changes: 1 addition & 1 deletion worlds/stardew_valley/logic/pet_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def has_pet_hearts(self, hearts: int = 1) -> StardewRule:
if hearts == 0:
return True_()

if self.content.features.friendsanity.is_enabled:
if self.content.features.friendsanity.is_pet_randomized:
return self.received_pet_hearts(hearts)

return self.can_befriend_pet(hearts)
Expand Down

0 comments on commit 01a83b3

Please sign in to comment.