mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Factorio: align tech tree sections in growing ingredient requirements
This commit is contained in:
@@ -43,8 +43,11 @@ def get_shapes(world: MultiWorld, player: int) -> Dict[str, List[str]]:
|
||||
tech_names.sort()
|
||||
world.random.shuffle(tech_names)
|
||||
while len(tech_names) > 4:
|
||||
diamond_0, diamond_1, diamond_2, diamond_3 = tech_names[:4]
|
||||
slice = tech_names[:4]
|
||||
tech_names = tech_names[4:]
|
||||
slice.sort(key=lambda tech_name: len(technology_table[tech_name].ingredients))
|
||||
diamond_0, diamond_1, diamond_2, diamond_3 = slice
|
||||
|
||||
# 0 |
|
||||
# 1 2 |
|
||||
# 3 V
|
||||
|
||||
Reference in New Issue
Block a user