compatible with K2, SE
This commit is contained in:
parent
febdfcf058
commit
2f8d74c655
6 changed files with 143 additions and 28 deletions
|
|
@ -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