Data.lua:
Code: Select all
local my_setting = settings.startup["earlierlogisticsmainsetting"]
if my_setting and my_setting.value == "merge" then
local tech = data.raw.technology["logistic-robotics"]
if tech then
tech.effects = tech.effects or {}
table.insert(tech.effects, {type = "unlock-recipe", recipe = "logistic-chest-buffer"}) -- all lines like this should be changed to something that can move all effects of a technology.
end
tech = data.raw.technology["logistic-system"]
if tech then
tech.enabled = false
tech.hidden = true
end
if mods["cruxchests"] then
tech = data.raw.technology["cruxchests-tech2"]
if tech then
tech.enabled = false
tech.hidden = true
end
tech = data.raw.technology["cruxchests-tech3"]
if tech then
tech.enabled = false
tech.hidden = true
end
end
end
local my_setting = settings.startup["earlierlogisticsmainsetting"]
if my_setting and my_setting.value == "changepack" then
tech = data.raw.technology["logistic-system"]
if tech then
tech.prerequisites =
{
"logistic-robotics",
"chemical-science-pack",
}
tech.unit.count = 150
tech.unit.ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1}
}
end
if mods["cruxchests"] then
tech = data.raw.technology["cruxchests-tech3"]
if tech then
tech.unit.ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1}
}
end
end
end