2018-12-31 20:32:28 +08:00
|
|
|
for i, force in pairs(game.forces) do
|
|
|
|
force.reset_recipes()
|
|
|
|
end
|
|
|
|
|
|
|
|
for i, force in pairs(game.forces) do
|
|
|
|
force.reset_technologies()
|
|
|
|
end
|
|
|
|
|
|
|
|
for i, force in pairs(game.forces) do
|
|
|
|
if force.technologies["military-2"].researched then
|
|
|
|
force.recipes["17-military-science-pack"].enabled = true
|
|
|
|
end
|
|
|
|
if force.technologies["advanced-electronics"].researched then
|
|
|
|
force.recipes["17-chemical-science-pack"].enabled = true
|
|
|
|
end
|
|
|
|
if force.technologies["advanced-material-processing-2"].researched then
|
|
|
|
force.recipes["17-production-science-pack"].enabled = true
|
2019-01-06 10:36:19 +08:00
|
|
|
force.recipes["rocket-fuel"].enabled = true
|
2018-12-31 20:32:28 +08:00
|
|
|
end
|
|
|
|
if force.technologies["advanced-electronics-2"].researched then
|
|
|
|
force.recipes["low-density-structure"].enabled = true
|
2019-01-03 23:37:46 +08:00
|
|
|
force.recipes["17-low-density-structure"].enabled = true
|
2018-12-31 20:32:28 +08:00
|
|
|
force.recipes["17-utility-science-pack"].enabled = true
|
2019-01-06 10:36:19 +08:00
|
|
|
force.recipes["rocket-control-unit"].enabled = true
|
2018-12-31 20:32:28 +08:00
|
|
|
end
|
|
|
|
end
|