From 383d0f1a664acc4e4163916c83109d3a6d984f1f Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Thu, 25 Nov 2021 16:56:44 -0800 Subject: [PATCH] ensure the tech enabling chemical plant gets marked as advancement if required. --- worlds/factorio/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worlds/factorio/__init__.py b/worlds/factorio/__init__.py index 49c2e19d..ff73048c 100644 --- a/worlds/factorio/__init__.py +++ b/worlds/factorio/__init__.py @@ -343,6 +343,9 @@ class Factorio(World): if self.world.max_science_pack[self.player].value == MaxSciencePack.option_space_science_pack: needed_recipes |= {"satellite"} + if any([recipe.category == "chemistry" for _, recipe in self.custom_recipes.items()]): + needed_recipes |= {"chemical-plant"} + for recipe in needed_recipes: recipe = self.custom_recipes.get(recipe, recipes[recipe]) self.advancement_technologies |= {tech.name for tech in recipe.unlocking_technologies}