From 3a2a584ad382866f47e2b97a09f68796ef882797 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 18 Dec 2021 13:05:43 +0100 Subject: [PATCH] Factorio: fix singles layout not generating correctly. --- worlds/factorio/Shapes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worlds/factorio/Shapes.py b/worlds/factorio/Shapes.py index 4a622de9..eaf44ac1 100644 --- a/worlds/factorio/Shapes.py +++ b/worlds/factorio/Shapes.py @@ -22,7 +22,9 @@ def get_shapes(factorio_world) -> Dict[str, List[str]]: tech_names.sort() world.random.shuffle(tech_names) - if layout == TechTreeLayout.option_small_diamonds: + if layout == TechTreeLayout.option_single: + pass + elif layout == TechTreeLayout.option_small_diamonds: slice_size = 4 while len(tech_names) > slice_size: slice = tech_names[:slice_size]