Include military science pack in all techs military or higher.

This does mean you have to get military science online to research your silo.
This commit is contained in:
CaitSith2
2021-10-14 10:20:56 -07:00
parent e4564abe41
commit 17ed957c6b
3 changed files with 25 additions and 0 deletions

View File

@@ -9,6 +9,24 @@ function filter_ingredients(ingredients, ingredient_filter)
return new_ingredient_list
end
function add_ingredients(ingredients, added_ingredients)
local new_ingredient_list = table.deepcopy(ingredients)
for new_ingredient, count in pairs(added_ingredients) do
local found = false
for _, old_ingredient in pairs(ingredients) do
if old_ingredient[1] == new_ingredient then
found = true
break
end
end
if not found then
table.insert(new_ingredient_list, {new_ingredient, count})
end
end
return new_ingredient_list
end
function get_any_stack_size(name)
local item = game.item_prototypes[name]
if item ~= nil then