Skip to content

Commit

Permalink
Merge pull request #262 from randovania/a5-super-door
Browse files Browse the repository at this point in the history
Door and Map updates
  • Loading branch information
ThanatosGit authored Jan 28, 2024
2 parents ee1617a + 3bd8ede commit 1c34d00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/open_samus_returns_rando/specific_patches/door_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _patch_beam_covers(editor: PatcherEditor):
actor = scenario.raw.actors[9][cover_name]
new_actor_name = f"{cover_name}_o"
new_actor = editor.copy_actor(
scenario_name, (actor["position"][0], actor["position"][1], actor["position"][2]),
scenario_name, (actor["position"][0], actor["position"][1], actor["position"][2]),
actor, new_actor_name, 9
)
new_actor["rotation"][0] = 0
Expand All @@ -147,7 +147,6 @@ def _patch_beam_covers(editor: PatcherEditor):
scenario.insert_into_entity_group(group, new_actor_name)



def _patch_charge_doors(editor: PatcherEditor):
CHARGE_DOORS = {
"s000_surface": ["Door004", "Door011"],
Expand Down Expand Up @@ -175,7 +174,9 @@ def _patch_one_way_doors(editor: PatcherEditor):
"s030_area3": ["Door005", "Door006"],
# Chozo Seal Spazer Door
"s040_area4": ["Door001"],
# Plasma Room Plasma and Missile doors, Gravity Room Missile Door
# Super Missile Room Super Door
"s050_area5": ["Door005"],
# Plasma Room Plasma and Missile Doors, Gravity Room Missile Door
"s067_area6c": ["Door005", "Door006", "Door009"]
}

Expand Down
10 changes: 6 additions & 4 deletions src/open_samus_returns_rando/specific_patches/map_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def patch_tiles(editor: PatcherEditor):
"s028_area2c": ["Door001", "Door007"],
"s030_area3": ["Door002", "Door005", "Door006", "Door008"],
"s040_area4": ["Door001", "Door006", "Door014"],
"s050_area5": ["Door005"],
"s060_area6": ["Door001"],
"s067_area6c": ["Door005", "Door006", "Door009"],
"s090_area9": ["Door012"],
Expand Down Expand Up @@ -42,7 +43,8 @@ def patch_tiles(editor: PatcherEditor):
for door in doors:
if door in door_tile["actor_name"]:
door_tile["clear_condition"] = ""
if "left" in door_tile["icon"]:
door_tile["icon"] = "doorpowerleft"
else:
door_tile["icon"] = "doorpowerright"
if "closed" in door_tile["icon"]:
if "left" in door_tile["icon"]:
door_tile["icon"] = "doorpowerleft"
else:
door_tile["icon"] = "doorpowerright"

0 comments on commit 1c34d00

Please sign in to comment.