improved compat

This commit is contained in:
mamoniot
2022-12-16 12:33:10 -05:00
parent 71b21c9b3c
commit b5ff50fa54
4 changed files with 23 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ combinator_recipe.ingredients = {
{"electronic-circuit", 10},
}
combinator_recipe.enabled = false
combinator_recipe.subgroup = data.raw["recipe"]["train-stop"].subgroup
cybersyn_tech = flib.copy_prototype(data.raw["technology"]["automated-rail-transportation"], "cybersyn-train-network")
@@ -20,11 +21,19 @@ cybersyn_tech.effects = {
recipe = COMBINATOR_NAME
},
}
cybersyn_tech.unit.count = 3*cybersyn_tech.unit.count
cybersyn_tech.unit.ingredients = {
{ "automation-science-pack", 1, },
{ "logistic-science-pack", 1, }
}
cybersyn_tech.unit.count = 200
cybersyn_tech.order = "c-g-c"
if (mods["nullius"]) then
if mods["pypostprocessing"] then
cybersyn_tech.unit.ingredients[2] = nil
end
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
@@ -36,7 +45,7 @@ if (mods["nullius"]) then
{"copper-cable", 10}
}
-- Enable technology
cybersyn_tech.order = "nullius-" .. (cybersyn_tech.order or "")
cybersyn_tech.order = "nullius-"..cybersyn_tech.order
cybersyn_tech.unit = {
count = 100,
ingredients = {
@@ -44,6 +53,6 @@ if (mods["nullius"]) then
},
time = 25
}
cybersyn_tech.prerequisites = { "nullius-checkpoint-optimization", "nullius-traffic-control" }
cybersyn_tech.prerequisites = {"nullius-checkpoint-optimization", "nullius-traffic-control"}
cybersyn_tech.ignore_tech_tech_cost_multiplier = true
end