Skip to content

Commit

Permalink
Factorio: Fix unbeatable seeds where a science pack needs chemical pl…
Browse files Browse the repository at this point in the history
…ant (#2613)
  • Loading branch information
CaitSith2 authored Dec 23, 2023
1 parent 0d929b8 commit bb0a0f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/factorio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def set_rules(self):
location.access_rule = lambda state, ingredient=ingredient, custom_recipe=custom_recipe: \
(ingredient not in technology_table or state.has(ingredient, player)) and \
all(state.has(technology.name, player) for sub_ingredient in custom_recipe.ingredients
for technology in required_technologies[sub_ingredient])
for technology in required_technologies[sub_ingredient]) and \
all(state.has(technology.name, player) for technology in required_technologies[custom_recipe.crafting_machine])
else:
location.access_rule = lambda state, ingredient=ingredient: \
all(state.has(technology.name, player) for technology in required_technologies[ingredient])
Expand Down

0 comments on commit bb0a0f2

Please sign in to comment.