forked from cacklingfiend/bzsilicon2
Restructure repository
This commit is contained in:
parent
27e33afa95
commit
66e1d9362e
118 changed files with 0 additions and 38 deletions
17
bzsilicon2/recipes/silica-matter.lua
Normal file
17
bzsilicon2/recipes/silica-matter.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
local util = require("data-util");
|
||||
if util.k2() then
|
||||
util.k2matter({
|
||||
k2matter = {
|
||||
material = {
|
||||
name = "silica",
|
||||
type = "item",
|
||||
amount = 20
|
||||
},
|
||||
matter_count = .65,
|
||||
energy_required = 2,
|
||||
needs_stabilizer = false,
|
||||
allow_productivity = true,
|
||||
unlocked_by = "kr-matter-stone-processing"
|
||||
},
|
||||
}, false)
|
||||
end
|
||||
54
bzsilicon2/recipes/silicon-vulcanite.lua
Normal file
54
bzsilicon2/recipes/silicon-vulcanite.lua
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["space-exploration"] then
|
||||
if data.raw["item-subgroup"]["stone"] then
|
||||
util.set_item_subgroup("silica", "stone")
|
||||
util.set_item_subgroup("silicon", "stone")
|
||||
util.set_subgroup("silicon", "stone")
|
||||
end
|
||||
se_delivery_cannon_recipes["silica"] = {name= "silica"}
|
||||
if mods["Krastorio2"] then
|
||||
local recipe = data.raw.recipe["se-kr-silicon-with-vulcanite"]
|
||||
recipe.ingredients = {
|
||||
{type="item", name="silica", amount=18},
|
||||
{type="fluid", name="se-pyroflux", amount=10},
|
||||
}
|
||||
recipe.category = "smelting" -- now uses pyroflux so can't be kiln in se 0.6
|
||||
recipe.energy_required=21.6
|
||||
recipe.results = {
|
||||
{type="item", name = "kr-silicon", amount = 6},
|
||||
}
|
||||
table.insert(recipe.ingredients, { type = "item", name = "kr-coke", amount = 1 })
|
||||
recipe.icons = {
|
||||
{ icon = "__Krastorio2Assets__/icons/items/silicon.png", icon_size = 64},
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
||||
}
|
||||
else
|
||||
se_delivery_cannon_recipes["silicon"] = {name= "silicon"}
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "silicon-smelting-vulcanite",
|
||||
category = "smelting",
|
||||
order = "d[silicon]",
|
||||
energy_required = 6,
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
allow_as_intermediate = false,
|
||||
ingredients = {
|
||||
{type="item", name = "silica", amount = 20},
|
||||
{type="fluid", name="se-pyroflux", amount=10},
|
||||
},
|
||||
results = {
|
||||
{type="item", name = "silicon", amount = 3},
|
||||
},
|
||||
icons = {
|
||||
{ icon = "__bzsilicon__/graphics/icons/silicon.png", icon_size = 64, icon_mipmaps = 3 },
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}}
|
||||
},
|
||||
},
|
||||
})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "silicon-smelting-vulcanite"})
|
||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "silicon-smelting-vulcanite"})
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue