From 34435df1f9ce33ac0b46fffb981fb9b3889e0725 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:47:40 -0400 Subject: [PATCH] More initializations... --- pokemonred_puffer/environment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index 780dece..a91f210 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -293,6 +293,7 @@ def reset(self, seed: Optional[int] = None, options: Optional[dict[str, Any]] = for i in range(EVENT_FLAGS_START, EVENT_FLAGS_START + EVENTS_FLAGS_LENGTH) ) # A bit of duplicate code. Blah. + self.events = EventFlags(self.pyboy) self.required_events = self.get_required_events() self.seen_pokemon = np.zeros(152, dtype=np.uint8) self.caught_pokemon = np.zeros(152, dtype=np.uint8)