mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-12-03 04:20:20 +08:00
23 lines
752 B
Lua
23 lines
752 B
Lua
|
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
|
||
|
end
|
||
|
if force.technologies["advanced-electronics-2"].researched then
|
||
|
force.recipes["low-density-structure"].enabled = true
|
||
|
force.recipes["17-utility-science-pack"].enabled = true
|
||
|
end
|
||
|
end
|