added nullius compat

This commit is contained in:
mamoniot
2022-12-16 09:51:59 -05:00
parent f76c01614e
commit 71b21c9b3c
12 changed files with 104 additions and 77 deletions

View File

@@ -5,27 +5,13 @@ combinator_recipe.ingredients = {
{"electronic-circuit", 10},
}
combinator_recipe.enabled = false
if (mods["nullius"]) then
-- Enable recipe and place it just after regular station
combinator_recipe.order = "nullius-eca"
-- In Nullius, most combinators are tiny crafts
combinator_recipe.category = "tiny-crafting"
combinator_recipe.always_show_made_in = true
-- Use the same costs (minus the train stop) as for LTN
combinator_recipe.energy_required = 3
combinator_recipe.ingredients = {
{"arithmetic-combinator", 2},
{"green-wire", 4}
}
end
cybersyn_tech = flib.copy_prototype(data.raw["technology"]["automated-rail-transportation"], "cybersyn-train-network")
cybersyn_tech.icon = "__cybersyn__/graphics/icons/tech.png"
cybersyn_tech.icon_size = 256
cybersyn_tech.prerequisites = {
"automated-rail-transportation",
"rail-signals",
"circuit-network",
}
cybersyn_tech.effects = {
@@ -37,14 +23,24 @@ cybersyn_tech.effects = {
cybersyn_tech.unit.count = 3*cybersyn_tech.unit.count
cybersyn_tech.order = "c-g-c"
if (mods["nullius"]) then
-- Enable recipe and place it just after regular station
combinator_recipe.order = "nullius-eca"
-- In Nullius, most combinators are tiny crafts
combinator_recipe.category = "tiny-crafting"
combinator_recipe.always_show_made_in = true
combinator_recipe.energy_required = 3
combinator_recipe.ingredients = {
{"arithmetic-combinator", 2},
{"copper-cable", 10}
}
-- Enable technology
cybersyn_tech.order = "nullius-" .. (cybersyn_tech.order or "")
cybersyn_tech.unit = {
count = 100,
ingredients = {
{ "nullius-geology-pack", 1 }, { "nullius-climatology-pack", 1 },
{ "nullius-mechanical-pack", 1 }, { "nullius-electrical-pack", 1 }
{"nullius-geology-pack", 1}, {"nullius-climatology-pack", 1}, {"nullius-mechanical-pack", 1}, {"nullius-electrical-pack", 1}
},
time = 25
}