Skip to content

Commit

Permalink
Properly change temp locked one-way doors to be two-way (#130)
Browse files Browse the repository at this point in the history
* Properly change temp locked one-way doors to be two-way

* Fix Wave Door below Wave Beam not being changed to two-way

* Actually fix the doors
  • Loading branch information
dyceron authored Oct 5, 2023
1 parent b4c2755 commit 0181f18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion open_samus_returns_rando/specific_patches/door_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def _patch_one_way_doors(editor: PatcherEditor):
ONE_WAY_DOORS = {
# Bombs, Right Exterior Door -> Interior, Exterior Alpha
"s010_area1": ["Door004", "Door012", "Door016"],
# Below Wave Beam
"s025_area2b": ["Door008"],
# Below Chozo Seal
"s030_area3": ["Door003", "Door006"],
# Chozo Seal Spazer Door
Expand All @@ -185,7 +187,9 @@ def _patch_one_way_doors(editor: PatcherEditor):
for area_name, doors in ONE_WAY_DOORS.items():
scenario = editor.get_scenario(area_name)
for door in doors:
scenario.raw.actors[15][door].type = "doorpowerpower"
properties = scenario.raw.actors[15][door]
properties.type = "doorpowerpower"
properties.components[0]["arguments"][2]["value"] = False


def patch_doors(editor: PatcherEditor):
Expand Down

0 comments on commit 0181f18

Please sign in to comment.