Skip to content

Commit

Permalink
duplicate some code for success
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jul 8, 2024
1 parent 8794fd5 commit fd05e9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ def reset(self, seed: Optional[int] = None, options: Optional[dict[str, Any]] =
self.read_m(i).bit_count()
for i in range(EVENT_FLAGS_START, EVENT_FLAGS_START + EVENTS_FLAGS_LENGTH)
)
# A bit of duplicate code. Blah.
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)
self.moves_obtained = np.zeros(0xA5, dtype=np.uint8)
Expand Down

0 comments on commit fd05e9e

Please sign in to comment.