Skip to content

Commit

Permalink
Fix bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Mar 17, 2024
1 parent 705cf66 commit d7190d6
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 @@ -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):
Expand Down

0 comments on commit d7190d6

Please sign in to comment.