diff --git a/open_samus_returns_rando/specific_patches/door_patches.py b/open_samus_returns_rando/specific_patches/door_patches.py index c9d07ea..d13c443 100644 --- a/open_samus_returns_rando/specific_patches/door_patches.py +++ b/open_samus_returns_rando/specific_patches/door_patches.py @@ -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 = {