Skip to content

Commit

Permalink
Merge pull request #72 from randovania/bugfix/echo-crash
Browse files Browse the repository at this point in the history
fix echo gate crash
  • Loading branch information
duncathan authored Jul 28, 2023
2 parents 626b70d + de3a470 commit 337adde
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def randomize_echo_locks(editor: PatcherEditor, rng: random.Random):

scan_info.string = strg_id
key_scan.scannable_object_info.set_properties(scan_info)
key_scan.rebuild_dependencies()
scan_id = editor.add_file(f"accessible_echo_lock_{pitch}.SCAN", key_scan)

key_scans.append(scan_id)
Expand Down Expand Up @@ -92,3 +93,5 @@ def randomize_echo_locks(editor: PatcherEditor, rng: random.Random):
with gate_poi.edit_properties(PointOfInterest) as poi:
poi.scan_info.scannable_info0 = scan_id

area.update_all_dependencies()

Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ def randomize_minigyro_chamber(editor: PatcherEditor, rng: random.Random):
scan = editor.get_file(0xFBFF349D, Strg)
solution_text = '\n'.join(gyro.text for gyro in solution)
scan.set_string(1, f"Safety lockdown code is as follows:\n\n\n{solution_text}")

area.update_all_dependencies()
3 changes: 3 additions & 0 deletions src/open_prime_rando/echoes/small_randomizations/rubiks.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def randomize_rubiks_puzzles(editor: PatcherEditor, rng: random.Random):

patch_upstairs_puzzle_transform(editor)

area.update_all_dependencies()


def patch_upstairs_puzzle_transform(editor: PatcherEditor):
"""
The vanilla transform for these angles them with the glass, making the lock-on points
Expand Down

0 comments on commit 337adde

Please sign in to comment.