From 1a1f21745464edf6ad696e3ca430273802fb548f Mon Sep 17 00:00:00 2001 From: Thanatos Date: Wed, 27 Sep 2023 16:13:18 +0200 Subject: [PATCH] Add new actors to the entity groups --- open_samus_returns_rando/specific_patches/door_patches.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 = {