Skip to content

Commit

Permalink
same type attack bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Oct 19, 2024
1 parent 3a58748 commit 94e2460
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,14 +620,19 @@ def _get_obs(self):
"events": np.concatenate(
(
np.fromiter(self.events.get_events(EVENTS), dtype=np.uint8),
[
self.read_m("wSSAnne2FCurScript") == 4, # rival 3
self.missables.get_missable(
"HS_GAME_CORNER_ROCKET"
), # game corner rocket
self.flags.get_bit("BIT_GAVE_SAFFRON_GUARDS_DRINK"), # saffron guard
self.flags.get_bit("BIT_GOT_LAPRAS"), # got lapras
],
np.array(
[
self.read_m("wSSAnne2FCurScript") == 4, # rival 3
self.missables.get_missable(
"HS_GAME_CORNER_ROCKET"
), # game corner rocket
self.flags.get_bit(
"BIT_GAVE_SAFFRON_GUARDS_DRINK"
), # saffron guard
self.flags.get_bit("BIT_GOT_LAPRAS"), # got lapras
],
dtype=np.uint8,
),
),
dtype=np.uint8,
),
Expand Down

0 comments on commit 94e2460

Please sign in to comment.