Perfect Avongard !!! Great Job! I think it's a good idea to make them buidable, maybe for a setting to enable or not to build new "big" factories. Maybe copying some codes of the two other mods (recipes and technologies), and setting to enable only if the settings is checked.
something like:
settings.lua
data:extend(
{
{
type = "bool-setting",
name = "enable-big",
setting_type = "startup",
default_value = "false",
allowed_values = {"true", "false"},
localised_name = "Enable Construction of Big Factories",
order = "a"
},
})
data.lua
if settings.startup["enable-big"].value then
data:extend({
{
type = "technology",
name = "big-furnace",
icon_size = 128,
icon = "base/graphics/technology/advanced-material-processing.png",
effects =
{
{
type = "unlock-recipe",
recipe = "big-furnace"
},
},
prerequisites = {"advanced-material-processing-2"},
unit =
{
count = 250,
ingredients =
{
{"science-pack-1", 1},
{"science-pack-2", 1},
{"science-pack-3", 1}
},
time = 30
},
order = "c-c-b"
},
-- BIG FURNACE
{
type = "recipe",
name = "big-furnace",
ingredients = {{"steel-plate", 10}, {"advanced-circuit", 50}, {"electric-furnace", 20}},
result = "big-furnace",
energy_required = 50,
enabled = false
},
{
type = "technology",
name = "circuit-factory",
icon_size = 128,
icon = "base/graphics/technology/automation.png",
effects =
{
{
type = "unlock-recipe",
recipe = "circuit-factory"
},
{
type = "unlock-recipe",
recipe = "electronic-circuit-factory"
},
{
type = "unlock-recipe",
recipe = "advanced-circuit-factory"
},
{
type = "unlock-recipe",
recipe = "processing-unit-factory"
},
},
prerequisites = {"automation-3"},
unit =
{
count = 150,
ingredients =
{
{"science-pack-1", 1},
{"science-pack-2", 1},
{"science-pack-3", 1},
{"production-science-pack", 1}
},
time = 60
},
order = "a-b-c"
},
-- CIRCUIT FACTORY
{
type = "recipe",
name = "circuit-factory",
enabled = false,
ingredients =
{
{"speed-module-3", 5},
{"assembling-machine-3", 5},
{"stack-inserter", 20}
},
result = "circuit-factory"
},
})
end