017-science-transition-mod/017_science/technology.lua

128 lines
2.8 KiB
Lua
Raw Normal View History

2019-01-13 23:32:46 +08:00
if settings.startup["017-techtree"].value then
data:extend(
{
{
type = "technology",
name = "logistics-science-pack",
2019-01-13 23:32:46 +08:00
icon_size = 128,
icon = "__017_science__/graphics/technology/green.png",
effects =
{
{
type = "unlock-recipe",
recipe = "science-pack-2"
}
},
unit =
{
count = settings.startup["017-green-cost"].value,
ingredients =
{
{"science-pack-1", 1},
},
time = settings.startup["017-green-energy"].value
},
order = "d-a-a-a"
},
{
type = "technology",
name = "chemical-science-pack",
2019-01-13 23:32:46 +08:00
icon_size = 128,
icon = "__017_science__/graphics/technology/blue.png",
effects =
{
{type = "unlock-recipe", recipe = "17-chemical-science-pack"}
},
prerequisites = {"oil-processing", "advanced-electronics", "engine"},
unit =
{
count = settings.startup["017-chem-cost"].value,
ingredients =
{
{"science-pack-1", 1},
{"science-pack-2", 1},
},
time = settings.startup["017-chem-energy"].value
},
order = "a-d-b-a"
},
{
type = "technology",
name = "production-science-pack",
icon_size = 128,
icon = "__017_science__/graphics/technology/purple.png",
effects =
{
{type = "unlock-recipe", recipe = "17-production-science-pack"}
},
prerequisites = {"advanced-material-processing-2", "productivity-module", "railway"},
unit =
{
count = settings.startup["017-purple-cost"].value,
ingredients =
{
{"science-pack-1", 1},
{"science-pack-2", 1},
{"science-pack-3", 1},
},
time = settings.startup["017-purple-energy"].value
},
order = "c-c-b"
},
{
type = "technology",
name = "utility-science-pack",
2019-01-13 23:32:46 +08:00
icon_size = 128,
icon = "__017_science__/graphics/technology/yellow.png",
effects =
{
{type = "unlock-recipe", recipe = "17-utility-science-pack"}
},
prerequisites = {"advanced-electronics-2", "robotics"},
unit =
{
count = settings.startup["017-gold-cost"].value,
ingredients =
{
{"science-pack-1", 1},
{"science-pack-2", 1},
{"science-pack-3", 1},
},
time = settings.startup["017-gold-energy"].value
},
order = "e-e-e"
}
})
end
if settings.startup["017-techtree"].value and settings.startup["017-rocket-victory"].value then
data:extend(
{
{
type = "technology",
name = "space-science-pack",
icon_size = 128,
icon = "__017_science__/graphics/technology/white.png",
effects =
{
{type = "unlock-recipe", recipe = "satellite"}
},
prerequisites = {"rocket-silo"},
unit =
{
count = settings.startup["017-nasa-cost"].value,
ingredients =
{
{"science-pack-1", 1},
{"science-pack-2", 1},
{"science-pack-3", 1},
{"military-science-pack", 1},
{"production-science-pack", 1},
{"high-tech-science-pack", 1}
},
time = settings.startup["017-nasa-energy"].value,
},
order = "k-b"
}
2019-01-13 23:32:46 +08:00
})
end