Added Nullius support

This commit is contained in:
Modo
2022-12-11 02:19:23 +02:00
parent 7a31034fa7
commit 09960de024
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
if mods["nullius"] then
-- Place combinator in the same subgroup as the regular train stop
data.raw["recipe"][COMBINATOR_NAME].subgroup = data.raw["train-stop"]["train-stop"].subgroup
data.raw["item"][COMBINATOR_NAME].subgroup = data.raw["item"]["train-stop"].subgroup
-- Nullius makes modded technologies part of its research tree
-- Place combinator in the same place on the research tree as LTN
table.insert(data.raw.technology["nullius-broadcasting-1"].prerequisites, "cybersyn-train-network")
end

View File

@@ -5,3 +5,7 @@ combinator_item.icon_size = 64
combinator_item.icon_mipmaps = 4 combinator_item.icon_mipmaps = 4
combinator_item.order = data.raw["item"]["decider-combinator"].order.."-b" combinator_item.order = data.raw["item"]["decider-combinator"].order.."-b"
combinator_item.place_result = COMBINATOR_NAME combinator_item.place_result = COMBINATOR_NAME
if (mods["nullius"]) then
-- Enable item in Nullius and place next to the regular train stop
combinator_item.order = "nullius-eca"
end

View File

@@ -5,6 +5,18 @@ combinator_recipe.ingredients = {
{"advanced-circuit", 5}, {"advanced-circuit", 5},
} }
combinator_recipe.enabled = false combinator_recipe.enabled = false
if (mods["nullius"]) then
-- Enable recipe and place it just after regular station
combinator_recipe.order = "nullius-eca"
-- Use the same costs (minus the train stop) and metadata as for LTN
combinator_recipe.category = "medium-crafting"
combinator_recipe.always_show_made_in = true
combinator_recipe.energy_required = 3
combinator_recipe.ingredients = {
{"arithmetic-combinator", 2},
{"green-wire", 4}
}
end
cybersyn_tech = { cybersyn_tech = {
type = "technology", type = "technology",
@@ -33,3 +45,19 @@ cybersyn_tech = {
}, },
order = "c-g-c" order = "c-g-c"
} }
if (mods["nullius"]) then
-- Enable technology
cybersyn_tech.order = "nullius-" .. (cybersyn_tech.order or "")
-- Use the same costs and requirements as for LTN
cybersyn_tech.unit = {
count = 100,
ingredients = {
{ "nullius-geology-pack", 1 }, { "nullius-climatology-pack", 1 },
{ "nullius-mechanical-pack", 1 }, { "nullius-electrical-pack", 1 }
},
time = 25
}
cybersyn_tech.prerequisites = { "nullius-checkpoint-optimization", "nullius-traffic-control" }
cybersyn_tech.ignore_cybersyn_tech_cost_multiplier = true
end