Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron authored Sep 29, 2024
1 parent 0bb68a0 commit f35eaca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/open_samus_returns_rando/pickups/custom_pickups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f35eaca

Please sign in to comment.