From 4e41b4630e200687aae41a00cd8bf6615e0ef89c Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sun, 17 Mar 2024 00:13:22 -0400 Subject: [PATCH] fix for loop --- pokemonred_puffer/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index fd3e70a..de38e26 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -780,7 +780,7 @@ def update_tm_hm_moves_obtained(self): # Scan party for i in range(self.read_m("wPartyCount")): _, addr = self.pyboy.symbol_lookup(f"wPartyMon{i+1}Moves") - for move_id in self.pyboy.memory[addr : addr + 4] in TM_HM_MOVES: + for move_id in self.pyboy.memory[addr : addr + 4]: if move_id in TM_HM_MOVES: self.moves_obtained[move_id] = 1 """