Factorio: fix singles layout not generating correctly.

This commit is contained in:
Fabian Dill 2021-12-18 13:05:43 +01:00
parent c42f53d64f
commit 3a2a584ad3
1 changed files with 3 additions and 1 deletions

View File

@ -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]