forked from cacklingfiend/bzaluminum2
 Co-authored-by: pla Reviewed-on: cacklingfiend/bzaluminum2#1 Co-authored-by: pla <pla@noreply.example.org> Co-committed-by: pla <pla@noreply.example.org>
62 lines
1.7 KiB
Lua
62 lines
1.7 KiB
Lua
-- Matter recipes for Krastorio2
|
|
if mods["Krastorio2"] then
|
|
local util = require("data-util")
|
|
local matter = require("__Krastorio2__/prototypes/libraries/matter")
|
|
|
|
data:extend({
|
|
{
|
|
type = "technology",
|
|
name = "aluminum-matter-processing",
|
|
icons = {
|
|
{
|
|
icon = util.k2assets() .. "/technologies/backgrounds/matter.png",
|
|
icon_size = 256,
|
|
},
|
|
{
|
|
icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png",
|
|
icon_size = 64,
|
|
scale = 1,
|
|
},
|
|
},
|
|
effects = {},
|
|
prerequisites = { "kr-matter-processing" },
|
|
unit = {
|
|
count = 350,
|
|
ingredients = {
|
|
{ "production-science-pack", 1 },
|
|
{ "utility-science-pack", 1 },
|
|
{ "kr-matter-tech-card", 1 },
|
|
},
|
|
time = 45,
|
|
},
|
|
},
|
|
})
|
|
|
|
local aluminum_ore_matter = {
|
|
material = { type = "item", name = "aluminum-ore", amount = 10 },
|
|
matter_count = 5,
|
|
energy_required = 1,
|
|
needs_stabilizer = false,
|
|
unlocked_by = "aluminum-matter-processing",
|
|
}
|
|
matter.make_recipes(aluminum_ore_matter)
|
|
|
|
local alumina_matter = {
|
|
material = { type = "item", name = "alumina", amount = 10 },
|
|
matter_count = 7.5,
|
|
energy_required = 2,
|
|
-- only_deconversion = true,
|
|
needs_stabilizer = true,
|
|
unlocked_by = "aluminum-matter-processing",
|
|
}
|
|
matter.make_deconversion_recipe(alumina_matter)
|
|
local aluminum_plate_matter = {
|
|
material = { type = "item", name = "aluminum-plate", amount = 10 },
|
|
matter_count = 10,
|
|
energy_required = 3,
|
|
-- only_deconversion = true,
|
|
needs_stabilizer = true,
|
|
unlocked_by = "aluminum-matter-processing",
|
|
}
|
|
matter.make_deconversion_recipe(aluminum_plate_matter)
|
|
end
|