Skip to content

Commit

Permalink
self.game.memory -> self.pyboy.memory
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 1, 2024
1 parent 3171d2a commit b7380ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ def teach_cut_to_bulba(self):
poke = self.pyboy.memory[poke_addr]
if poke in [9, 153, 154]: # bulba line
slot = 0 # this should have tackle
self.game.memory[poke_addr + 8 + slot] = 15
self.game.memory[move_pp_addr[slot] + 44 * poke_idx] = 30
self.pyboy.memory[poke_addr + 8 + slot] = 15
self.pyboy.memory[move_pp_addr[slot] + 44 * poke_idx] = 30
# fill up pp: 30/30

def cut_if_next(self):
Expand Down

0 comments on commit b7380ac

Please sign in to comment.