From 6f21745bafaa89723253b925cd46bb74c8141480 Mon Sep 17 00:00:00 2001 From: dyceron Date: Tue, 6 Aug 2024 01:44:09 -0400 Subject: [PATCH] Fix ridley pickup config --- src/open_samus_returns_rando/pickups/custom_pickups.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/open_samus_returns_rando/pickups/custom_pickups.py b/src/open_samus_returns_rando/pickups/custom_pickups.py index 6bf71fa..bdc9e5d 100644 --- a/src/open_samus_returns_rando/pickups/custom_pickups.py +++ b/src/open_samus_returns_rando/pickups/custom_pickups.py @@ -48,6 +48,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: - if configuration["objective"]["final_boss"] == "Ridley" and new_pickup.name == "LE_Item_Ridley": + if ( + "objective" in configuration + and configuration["objective"]["final_boss"] == "Ridley" + and new_pickup.name == "LE_Item_Ridley" + ): continue add_pickups(editor, new_pickup)