From 5cb7fb5ad5da7dfb2b9606c496970f69b52da9fe Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sun, 7 Jul 2024 20:18:58 -0400 Subject: [PATCH] {} is not a set() --- pokemonred_puffer/environment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index 5cf0546..a08df64 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -1443,13 +1443,13 @@ def get_levels_reward(self): def get_required_events(self) -> set[str]: return ( {event for event in REQUIRED_EVENTS if self.events.get_event(event)} - | ({"rival3"} if (self.read_m("wSSAnne2FCurScript") == 4) else {}) + | ({"rival3"} if (self.read_m("wSSAnne2FCurScript") == 4) else set()) | ( {"game_corner_rocket"} if self.missables.get_missable("HS_GAME_CORNER_ROCKET") - else {} + else set() ) - | ({"saffron_guard"} if self.wd728.get_bit("GAVE_SAFFRON_GUARD_DRINK") else {}) + | ({"saffron_guard"} if self.wd728.get_bit("GAVE_SAFFRON_GUARD_DRINK") else set()) ) def get_events_sum(self):