Skip to content

Commit

Permalink
skip past sections where the joypad is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jul 28, 2024
1 parent 1bacdb3 commit 567d4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ debug:
max_steps: 16
log_frequency: 1
disable_wild_encounters: True
disable_ai_actions: False
disable_ai_actions: True
use_global_map: False
reduce_res: False
animate_scripts: True
Expand Down
2 changes: 2 additions & 0 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,8 @@ def run_action_on_emulator(self, action):
count += 1
else:
self.pyboy.tick(self.action_freq, render=True)
while self.read_m("wJoyIgnore"):
self.pyboy.tick(1, render=False)

if self.events.get_event("EVENT_GOT_HM01"):
if self.auto_teach_cut and not self.check_if_party_has_hm(0x0F):
Expand Down

0 comments on commit 567d4a5

Please sign in to comment.