From f35eaca7feabff541427f3026ec437377850ef35 Mon Sep 17 00:00:00 2001 From: dyceron <38679103+dyceron@users.noreply.github.com> Date: Sat, 28 Sep 2024 21:02:24 -0400 Subject: [PATCH] Add TODO --- src/open_samus_returns_rando/pickups/custom_pickups.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/open_samus_returns_rando/pickups/custom_pickups.py b/src/open_samus_returns_rando/pickups/custom_pickups.py index 803329b..e996026 100644 --- a/src/open_samus_returns_rando/pickups/custom_pickups.py +++ b/src/open_samus_returns_rando/pickups/custom_pickups.py @@ -50,8 +50,10 @@ def add_pickups(editor: PatcherEditor, new_pickup: NewPickups) -> None: def patch_custom_pickups(editor: PatcherEditor, configuration: dict) -> None: for new_pickup in new_pickups: # Memory errors occur if the custom boss pickup is added and the pickup is not in the config + # TODO: Generalize this so it's not duplicated statements if configuration["objective"]["final_boss"] == "Ridley" and new_pickup.name == "LE_Item_Ridley": continue if configuration["objective"]["final_boss"] == "Queen" and new_pickup.name == "LE_Baby_Hatchling": continue add_pickups(editor, new_pickup) + \ No newline at end of file