Skip to content

Commit

Permalink
revert ho reward disabling for casino
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Sep 2, 2024
1 parent 11965f5 commit b4b5b11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,7 @@ def sign_hook(self, *args, **kwargs):
def hidden_object_hook(self, *args, **kwargs):
hidden_object_id = self.pyboy.memory[self.pyboy.symbol_lookup("wHiddenObjectIndex")[1]]
map_id = self.pyboy.memory[self.pyboy.symbol_lookup("wCurMap")[1]]
if map_id != MapIds.GAME_CORNER.value:
self.seen_hidden_objs[(map_id, hidden_object_id)] = 1.0
self.seen_hidden_objs[(map_id, hidden_object_id)] = 1.0

def sprite_hook(self, *args, **kwargs):
sprite_id = self.pyboy.memory[self.pyboy.symbol_lookup("hSpriteIndexOrTextID")[1]]
Expand Down

0 comments on commit b4b5b11

Please sign in to comment.