Skip to content

Commit

Permalink
Fix ridley pickup config
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Aug 6, 2024
1 parent f6da1f6 commit 6f21745
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/open_samus_returns_rando/pickups/custom_pickups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6f21745

Please sign in to comment.