62 lines
1.3 KiB
Lua
62 lines
1.3 KiB
Lua
-- Optical Fiber
|
|
local util = require("__bzsilicon__.util");
|
|
data:extend(
|
|
{
|
|
{
|
|
type = "item",
|
|
name = "optical-fiber",
|
|
icon = "__bzsilicon__/graphics/icons/optical-fiber.png",
|
|
icon_size = 32,
|
|
subgroup = "intermediate-product",
|
|
order = "a[optical-fiber]",
|
|
stack_size = util.get_stack_size(200)
|
|
},
|
|
{
|
|
type = "recipe",
|
|
name = "optical-fiber",
|
|
normal =
|
|
{
|
|
enabled = false,
|
|
ingredients = {{"silica", 1}},
|
|
result = "optical-fiber",
|
|
result_count = 1
|
|
},
|
|
expensive =
|
|
{
|
|
enabled = false,
|
|
ingredients = {{"silica", 2}},
|
|
result = "optical-fiber",
|
|
result_count = 1
|
|
},
|
|
},
|
|
|
|
{
|
|
type = "technology",
|
|
name = "fiber-optics",
|
|
icons =
|
|
{
|
|
{ icon = "__base__/graphics/technology/optics.png", icon_size = 256 },
|
|
{ icon = "__bzsilicon__/graphics/icons/optical-fiber.png", icon_size = 32, scale=3, shift={32,-48} },
|
|
},
|
|
effects =
|
|
{
|
|
{
|
|
type = "unlock-recipe",
|
|
recipe = "optical-fiber"
|
|
}
|
|
},
|
|
unit =
|
|
{
|
|
count = 100,
|
|
ingredients =
|
|
{
|
|
{"automation-science-pack", 1},
|
|
{"logistic-science-pack", 1},
|
|
},
|
|
time = 10
|
|
},
|
|
prerequisites = {"optics", "silica-processing"},
|
|
order = "b-b"
|
|
},
|
|
}
|
|
)
|