compatible with K2, SE
This commit is contained in:
parent
febdfcf058
commit
2f8d74c655
6 changed files with 143 additions and 28 deletions
|
|
@ -1,4 +1,5 @@
|
|||
-- Optical Fiber
|
||||
local util = require("__bzsilicon__.util");
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
|
|
@ -8,7 +9,7 @@ data:extend(
|
|||
icon_size = 32,
|
||||
subgroup = "intermediate-product",
|
||||
order = "a[optical-fiber]",
|
||||
stack_size = 200
|
||||
stack_size = util.get_stack_size(200)
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
|
|
@ -34,8 +35,8 @@ data:extend(
|
|||
name = "fiber-optics",
|
||||
icons =
|
||||
{
|
||||
{ icon = "__base__/graphics/technology/optics.png", icon_size = 128 },
|
||||
{ icon = "__bzsilicon__/graphics/icons/optical-fiber.png", icon_size = 32, scale=1.5, shift={32,-48} },
|
||||
{ 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 =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,17 @@
|
|||
-- Silica
|
||||
local util = require("__bzsilicon__.util");
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
mods["Krastorio2"] and {
|
||||
type = "recipe",
|
||||
name = "silica",
|
||||
category = "crushing",
|
||||
enabled = false,
|
||||
energy_required = 4,
|
||||
ingredients = {{"quartz", 10}},
|
||||
result = "silica",
|
||||
result_count = 30
|
||||
} or {
|
||||
type = "recipe",
|
||||
name = "silica",
|
||||
category = "smelting",
|
||||
|
|
@ -30,9 +40,36 @@ data:extend(
|
|||
icon_size = 64,
|
||||
subgroup = "raw-material",
|
||||
order = "b[silica]",
|
||||
stack_size = 100
|
||||
stack_size = util.get_stack_size(100)
|
||||
},
|
||||
{
|
||||
mods["Krastorio2"] and {
|
||||
type = "technology",
|
||||
name = "silica-processing",
|
||||
icon_size = 128,
|
||||
icon = "__bzsilicon__/graphics/icons/silica-processing.png",
|
||||
effects =
|
||||
{
|
||||
{
|
||||
type = "unlock-recipe",
|
||||
recipe = "silica"
|
||||
},
|
||||
{
|
||||
type = "unlock-recipe",
|
||||
recipe = "quartz"
|
||||
},
|
||||
},
|
||||
prerequisites = {"kr-fluids-chemistry"},
|
||||
unit =
|
||||
{
|
||||
count = 10,
|
||||
ingredients =
|
||||
{
|
||||
{"automation-science-pack", 1},
|
||||
},
|
||||
time = 30
|
||||
},
|
||||
order = "b-b"
|
||||
} or {
|
||||
type = "technology",
|
||||
name = "silica-processing",
|
||||
icon_size = 128,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,24 @@
|
|||
-- Silicon
|
||||
local util = require("__bzsilicon__.util");
|
||||
if mods["Krastorio2"] then
|
||||
util.remove_raw("recipe", "silicon-2")
|
||||
end
|
||||
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
mods["Krastorio2"] and {
|
||||
type = "recipe",
|
||||
name = "silicon",
|
||||
category = "smelting",
|
||||
enabled = false,
|
||||
energy_required = 14.4,
|
||||
ingredients = {
|
||||
{"silica", 18},
|
||||
{"coke", 1}
|
||||
},
|
||||
result = "silicon",
|
||||
result_count = 3
|
||||
} or {
|
||||
type = "recipe",
|
||||
name = "silicon",
|
||||
category = "smelting",
|
||||
|
|
@ -30,8 +47,9 @@ data:extend(
|
|||
icon_size = 64,
|
||||
subgroup = "raw-material",
|
||||
order = "b[silicon]",
|
||||
stack_size = 100
|
||||
stack_size = util.get_stack_size(100)
|
||||
},
|
||||
(not mods["Krastorio2"]) and
|
||||
{
|
||||
type = "technology",
|
||||
name = "silicon-processing",
|
||||
|
|
@ -56,6 +74,6 @@ data:extend(
|
|||
},
|
||||
prerequisites = {"silica-processing"},
|
||||
order = "b-b"
|
||||
},
|
||||
} or nil,
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue