mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user