From b7380ac56c446916f3d376cfe1d22a556e6474b5 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Fri, 31 May 2024 23:58:09 -0400 Subject: [PATCH] self.game.memory -> self.pyboy.memory --- pokemonred_puffer/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index 88202f1..d0a735e 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -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):