From 93e67153f852e6401c4a2f82f81aa68e35fdd660 Mon Sep 17 00:00:00 2001 From: spinerak Date: Fri, 7 Jun 2024 18:44:59 +0200 Subject: [PATCH] Improved create_items code --- worlds/yachtdice/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/worlds/yachtdice/__init__.py b/worlds/yachtdice/__init__.py index d0e5379141..83cf411362 100644 --- a/worlds/yachtdice/__init__.py +++ b/worlds/yachtdice/__init__.py @@ -322,12 +322,7 @@ class YachtDiceWorld(World): self.multiworld.push_precollected(self.create_item(item)) def create_items(self): - #convert strings to actual items - itempool_created = [item for item in map(lambda name: self.create_item(name), self.itempool)] - - #and add them to the itempool - for item in itempool_created: - self.multiworld.itempool += [item] + self.multiworld.itempool += [self.create_item(name) for name in self.itempool] def create_regions(self): #call the ini_locations function, that generates locations based on the inputs.