017-science-transition-mod/017_science/migrations/2019-01-06_017_science_0.0.6.lua

16 lines
430 B
Lua

for i, force in pairs(game.forces) do
if force.technologies["advanced-electronics-2"].researched then
force.recipes["rocket-control-unit"].enabled = true
end
if force.technologies["advanced-material-processing-2"].researched then
force.recipes["rocket-fuel"].enabled = true
end
end
for i, force in pairs(game.forces) do
force.reset_recipes()
end
for i, force in pairs(game.forces) do
force.reset_technologies()
end