mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Factorio: fix singles layout not generating correctly.
This commit is contained in:
@@ -22,7 +22,9 @@ def get_shapes(factorio_world) -> Dict[str, List[str]]:
|
|||||||
tech_names.sort()
|
tech_names.sort()
|
||||||
world.random.shuffle(tech_names)
|
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
|
slice_size = 4
|
||||||
while len(tech_names) > slice_size:
|
while len(tech_names) > slice_size:
|
||||||
slice = tech_names[:slice_size]
|
slice = tech_names[:slice_size]
|
||||||
|
Reference in New Issue
Block a user