Aleksei-bird 7c9c708c92 Первый фикс
Пачки некоторых позиций увеличены
2024-03-01 20:54:33 +03:00

24 lines
803 B
Lua

-- check if LogisticTrainNetwork added
if mods["LogisticTrainNetwork"] and data.raw["technology"]["logistic-train-network"] then
table.insert(
data.raw["technology"]["logistic-train-network"].effects,
{type = "unlock-recipe", recipe = "ltn-combinator"}
)
else
table.insert(
data.raw["technology"]["circuit-network"].effects,
{type = "unlock-recipe", recipe = "ltn-combinator"}
)
end
local upgradable = settings.startup["ltnc-upgradable"].value
if upgradable == nil then
upgradable = true
end
if upgradable == true then
-- make vanilla combinator upgradable to ltn-combinator
data.raw["constant-combinator"]["constant-combinator"].next_upgrade = "ltn-combinator"
end
data.raw["constant-combinator"]["constant-combinator"].fast_replaceable_group = "constant-combinator"