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(