Factorio: fix progressive science pack order

This commit is contained in:
Fabian Dill
2021-07-08 05:09:34 +02:00
parent f44f015cb9
commit ffc00b7800
3 changed files with 14 additions and 10 deletions

View File

@@ -1495,8 +1495,9 @@ class Spoiler(object):
if self.world.factorio_player_ids:
outfile.write('\n\nRecipes:\n')
for player in self.world.factorio_player_ids:
name = self.world.get_player_names(player)
for recipe in self.world.worlds[player].custom_recipes.values():
outfile.write(f"{recipe.name}: {recipe.ingredients} -> {recipe.products}\n")
outfile.write(f"\n{recipe.name} ({name}): {recipe.ingredients} -> {recipe.products}")
if self.startinventory:
outfile.write('\n\nStarting Inventory:\n\n')