86 lines
2.7 KiB
Lua
86 lines
2.7 KiB
Lua
-- Additional recipes if Space Exploration mod is enabled
|
|
local util = require("__bzlead__.data-util");
|
|
|
|
if mods["space-exploration"] then
|
|
se_delivery_cannon_recipes[util.me.lead_ore] = {name= util.me.lead_ore}
|
|
se_delivery_cannon_recipes[util.me.lead_plate] = {name= util.me.lead_plate}
|
|
|
|
data:extend({
|
|
{
|
|
type = "recipe",
|
|
icons = {
|
|
{ icon = "__base__/graphics/icons/landfill.png", icon_size = 64, icon_mipmaps = 3 },
|
|
{ icon = "__bzlead__/graphics/icons/lead-ore.png", icon_size = 64, scale = 0.25},
|
|
},
|
|
name = "landfill-lead-ore",
|
|
category = "hard-recycling",
|
|
order = "z-b-lead",
|
|
subgroup = "terrain",
|
|
result = "landfill",
|
|
ingredients = {{"lead-ore", 50}},
|
|
}
|
|
})
|
|
|
|
if mods["Krastorio2"] then
|
|
data:extend({
|
|
{
|
|
type = "recipe",
|
|
name = "enriched-lead-smelting-vulcanite",
|
|
category = "smelting",
|
|
order = "d[lead-plate]",
|
|
energy_required = 24,
|
|
enabled = false,
|
|
always_show_made_in = true,
|
|
allow_as_intermediate = false,
|
|
ingredients = {
|
|
{name = "enriched-lead", amount = 8},
|
|
{name = "se-vulcanite-block", amount = 1},
|
|
},
|
|
results = {
|
|
{name = util.me.lead_plate, amount = 12},
|
|
},
|
|
icons =
|
|
{
|
|
{ icon = "__bzlead__/graphics/icons/lead-plate.png", icon_size = 64 },
|
|
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
|
},
|
|
|
|
},
|
|
})
|
|
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
|
{type = "unlock-recipe", recipe= "enriched-lead-smelting-vulcanite"})
|
|
data.raw.recipe["enriched-lead-plate"].order= "d[lead-plate]"
|
|
se_delivery_cannon_recipes["enriched-lead"] = {name= "enriched-lead"}
|
|
else
|
|
data:extend({
|
|
{
|
|
type = "recipe",
|
|
name = "lead-smelting-vulcanite",
|
|
category = "smelting",
|
|
subgroup = "plates",
|
|
order = "d[lead-plate]",
|
|
energy_required = 24,
|
|
enabled = false,
|
|
always_show_made_in = true,
|
|
allow_as_intermediate = false,
|
|
ingredients = {
|
|
{name = "lead-ore", amount = 8},
|
|
{name = "se-vulcanite-block", amount = 1},
|
|
},
|
|
results = {
|
|
{name = util.me.lead_plate, amount = 10},
|
|
{name = "copper-ore", amount=2},
|
|
},
|
|
icons =
|
|
{
|
|
{ icon = "__bzlead__/graphics/icons/lead-plate.png", icon_size = 64, icon_mipmaps = 3 },
|
|
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-10, -10}},
|
|
},
|
|
|
|
|
|
},
|
|
})
|
|
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
|
{type = "unlock-recipe", recipe= "lead-smelting-vulcanite"})
|
|
end
|
|
end
|