From 236b225c81997892f5e289e2eebd493495c3468c Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:29:46 -0400 Subject: [PATCH] more --- pokemonred_puffer/environment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index bf65e38..bfa303e 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -312,6 +312,9 @@ def reset(self, seed: Optional[int] = None, options: Optional[dict[str, Any]] = with open(self.init_state_path, "rb") as f: self.pyboy.load_state(f) + self.events = EventFlags(self.pyboy) + self.missables = MissableFlags(self.pyboy) + self.missables = MissableFlags(self.pyboy) self.required_events = self.get_required_events() self.required_items = self.get_required_items() self.base_event_flags = sum(