Now possible for randomized science packs/silo/satellite recipe to use fluids.

This commit is contained in:
CaitSith2
2021-11-25 09:44:01 -08:00
parent 5a03c0edd6
commit 722af0a3ca
5 changed files with 49 additions and 12 deletions

View File

@@ -458,9 +458,8 @@ rel_cost = {
"used-up-uranium-fuel-cell": 1000
}
# forbid liquids for now, TODO: allow a single liquid per assembler
blacklist: Set[str] = all_ingredient_names | {"rocket-part", "crude-oil", "water", "sulfuric-acid", "petroleum-gas",
"light-oil", "heavy-oil", "lubricant", "steam"}
blacklist: Set[str] = all_ingredient_names | {"rocket-part"}
liquids: Set[str] = {"crude-oil", "water", "sulfuric-acid", "petroleum-gas", "light-oil", "heavy-oil", "lubricant", "steam"}
@Utils.cache_argsless
@@ -484,6 +483,8 @@ def get_science_pack_pools() -> Dict[str, Set[str]]:
current |= set(recipe.products)
if science_pack == "automation-science-pack":
current |= {"iron-ore", "copper-ore", "coal", "stone"}
elif science_pack == "logistic-science-pack":
current |= {"water", "steam", "crude-oil"}
current -= already_taken
already_taken |= current
current_difficulty *= 2