From b0b3a2deb00674a1f1c66701dd5990a6f8228c9f Mon Sep 17 00:00:00 2001 From: LeonarthCG Date: Sun, 1 Dec 2024 20:35:45 +0100 Subject: [PATCH] Saving Princess: extend([item]) -> append(item) --- worlds/saving_princess/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worlds/saving_princess/__init__.py b/worlds/saving_princess/__init__.py index 3202d29c2853..4109f356fd2e 100644 --- a/worlds/saving_princess/__init__.py +++ b/worlds/saving_princess/__init__.py @@ -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 @@ -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)