Skip to content

Commit

Permalink
Saving Princess: extend([item]) -> append(item)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonarthCG committed Dec 1, 2024
1 parent b9cb509 commit b0b3a2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worlds/saving_princess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ def create_items(self) -> None:
for item_name, item_data in item_dict.items():
# create count copies of the item
for i in range(item_data.count):
self.multiworld.itempool.extend([self.create_item(item_name)])
self.multiworld.itempool.append(self.create_item(item_name))
items_made += item_data.count
# and create count_extra useful copies of the item
original_item_class: ItemClass = item_data.item_class
item_data.item_class = ItemClass.useful
for i in range(item_data.count_extra):
self.multiworld.itempool.extend([self.create_item(item_name)])
self.multiworld.itempool.append(self.create_item(item_name))
item_data.item_class = original_item_class
items_made += item_data.count_extra

Expand All @@ -142,7 +142,7 @@ def create_items(self) -> None:

# and generate as many junk items as unfilled locations
for i in range(junk_count):
self.multiworld.itempool.extend([self.create_item(self.get_filler_item_name())])
self.multiworld.itempool.append(self.create_item(self.get_filler_item_name()))

def create_item(self, name: str) -> Items.SavingPrincessItem:
return Items.item_dict[name].create_item(self.player)
Expand Down

0 comments on commit b0b3a2d

Please sign in to comment.