mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-18 21:38:13 -07:00
Compare commits
1 Commits
fix-links-
...
Factorio_b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e0d1d3dd9 |
@@ -246,7 +246,8 @@ class Factorio(World):
|
|||||||
location.access_rule = lambda state, ingredient=ingredient, custom_recipe=custom_recipe: \
|
location.access_rule = lambda state, ingredient=ingredient, custom_recipe=custom_recipe: \
|
||||||
(ingredient not in technology_table or state.has(ingredient, player)) and \
|
(ingredient not in technology_table or state.has(ingredient, player)) and \
|
||||||
all(state.has(technology.name, player) for sub_ingredient in custom_recipe.ingredients
|
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:
|
else:
|
||||||
location.access_rule = lambda state, ingredient=ingredient: \
|
location.access_rule = lambda state, ingredient=ingredient: \
|
||||||
all(state.has(technology.name, player) for technology in required_technologies[ingredient])
|
all(state.has(technology.name, player) for technology in required_technologies[ingredient])
|
||||||
|
|||||||
Reference in New Issue
Block a user