Skip to content

Commit

Permalink
Add new actors to the entity groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Sep 27, 2023
1 parent 5a4c10c commit 1a1f217
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions open_samus_returns_rando/specific_patches/door_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ def _patch_beam_covers(editor: PatcherEditor):
door_actor.components.append(copy.deepcopy(door_actor.components[0]))
door_actor.components[1]["arguments"][3]["value"] = new_actor_name

# Note: New actors should be added to the entity groups but maybe that brings back our old friend
# "removing random actors in a room". Comment it out in that case after playtests
entity_groups = [group for group_name, group in scenario.all_actor_groups()
if group_name in list(scenario.all_actor_group_names_for_actor(cover_name))]
for group in entity_groups:
group.names.append(new_actor_name)


def _patch_charge_doors(editor: PatcherEditor):
CHARGE_DOORS = {
Expand Down

0 comments on commit 1a1f217

Please sign in to comment.