From b4b5b1152fcfb0fb8b9e31f708cd8f5241c144a0 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sun, 1 Sep 2024 22:35:10 -0400 Subject: [PATCH] revert ho reward disabling for casino --- pokemonred_puffer/environment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index c580cdd..0d65f8b 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -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]]