Files
project-cybersyn/cybersyn/prototypes/tech.lua
Monica Moniot b144a06f1a 1.2.8 (#28)
Version: 1.2.8
Date: 2022-1-5
  Features:
    - Improved placeholder cybernetic combinator art
    - Added a wagon control setting to bar unfiltered slots in adjacent cargo wagons
    - Added a setting and keybind for toggling on or off the central planner
  Changes:
    - Sped up the rate at which copy-paste by blueprint will be noticed
  Bugfixes:
    - Fixed a bug with combinators sometimes failing to connect with train stops
    - Fixed wagon control combinators outputting wagon contents after inserters have already taken out items
    - Fixed a rare crash on world migration
  Scripting:
    - Added missing return values to some interface functions
    - Migrated to non-deprecated flib modules
2023-01-06 19:24:24 -05:00

60 lines
1.8 KiB
Lua

--By Mami
combinator_recipe = flib.copy_prototype(data.raw["recipe"]["arithmetic-combinator"], COMBINATOR_NAME)
combinator_recipe.ingredients = {
{"copper-cable", 20},
{"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")
cybersyn_tech.icon = "__cybersyn__/graphics/icons/tech.png"
cybersyn_tech.icon_size = 256
cybersyn_tech.prerequisites = {
"rail-signals",
"circuit-network",
}
cybersyn_tech.effects = {
{
type = "unlock-recipe",
recipe = COMBINATOR_NAME
},
}
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["pypostprocessing"] then
cybersyn_tech.unit.ingredients[2] = nil
end
--Credit to modo-lv for submitting the following code
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
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_tech_tech_cost_multiplier = true
end