Skip to content

Commit

Permalink
Symbol table fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Aug 30, 2024
1 parent d674b0c commit a633e7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def run_action_on_emulator(self, action):
self.update_seen_coords()

while self.read_m("wJoyIgnore"):
# DO NOT DELETE. Some animations require dialog interaction
# DO NOT DELETE. Some animations require dialog navigation
self.pyboy.button("a", 8)
self.pyboy.tick(self.action_freq, render=False)

Expand Down Expand Up @@ -1127,7 +1127,7 @@ def solve_missable_strength_puzzle(self):
if not self.disable_wild_encounters:
self.setup_disable_wild_encounters()
# Activate strength
_, status_flags_1 = self.pyboy.symbol_lookup("status_flags_1")
_, status_flags_1 = self.pyboy.symbol_lookup("wStatusFlags1")
self.pyboy.memory[status_flags_1] |= 0b0000_0001
# Perform solution
current_repel_steps = self.read_m("wRepelRemainingSteps")
Expand Down Expand Up @@ -1166,7 +1166,7 @@ def solve_switch_strength_puzzle(self):
if not self.disable_wild_encounters:
self.setup_disable_wild_encounters()
# Activate strength
_, status_flags_1 = self.pyboy.symbol_lookup("status_flags_1")
_, status_flags_1 = self.pyboy.symbol_lookup("wStatusFlags1")
self.pyboy.memory[status_flags_1] |= 0b0000_0001
# Perform solution
current_repel_steps = self.read_m("wRepelRemainingSteps")
Expand Down

0 comments on commit a633e7c

Please sign in to comment.