From d7190d6da9416f157dccefb2f5abc3d033f66092 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sun, 17 Mar 2024 00:18:37 -0400 Subject: [PATCH] Fix bracket --- 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 44335f9..652b9a1 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -526,12 +526,12 @@ def run_action_on_emulator(self, action): def hidden_object_hook(self, *args, **kwargs): hidden_object_id = self.pyboy.memory[self.pyboy.symbol_lookup("wHiddenObjectIndex")[1]] - map_id = self.pyboy.memor[self.pyboy.symbol_lookup("wCurMap")[1]] + map_id = self.pyboy.memory[self.pyboy.symbol_lookup("wCurMap")[1]] self.seen_hidden_objects[(map_id, hidden_object_id)] = 1 def sprite_hook(self, *args, **kwargs): sprite_id = self.pyboy.memory[self.pyboy.symbol_lookup("hSpriteIndexOrTextID")[1]] - map_id = self.pyboy.memor[self.pyboy.symbol_lookup("wCurMap")[1]] + map_id = self.pyboy.memory[self.pyboy.symbol_lookup("wCurMap")[1]] self.seen_npcs[(map_id, sprite_id)] = 1 def start_menu_hook(self, *args, **kwargs):