Infinite Researches
Infinite Researches
Is there a mod that makes all infinite researches require production science packs? If not, can somebody make one?
Re: Infinite Researches
Only production spacks?
Re: Infinite Researches
Those and the ones they already require.
Re: Infinite Researches
The code that you need, place it into the data.lua (not tested):
Code: Select all
local all_science_packs = {
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1},
{"military-science-pack", 1},
{"production-science-pack", 1},
{"utility-science-pack", 1},
{"space-science-pack", 1}
}
for tech_name, tech in pairs (data.raw.technology) do
if tech.max_level and tech.max_level == "infinite" then
tech.unit.ingredients = table.deepcopy(all_science_packs)
end
end