This commit is contained in:
Brevven 2025-05-03 04:33:17 -07:00
parent ab65faccfb
commit b6c08c7613
7 changed files with 75 additions and 48 deletions

View file

@ -1,7 +1,6 @@
-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local util = require("data-util");
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
data:extend(
{
@ -20,6 +19,7 @@ data:extend(
scale = 1.4,
}
},
effects = {},
prerequisites = {"kr-matter-processing"},
unit =
{
@ -28,45 +28,58 @@ data:extend(
{
{"production-science-pack", 1},
{"utility-science-pack", 1},
{"matter-tech-card", 1}
{"kr-matter-tech-card", 1}
},
time = 45
}
},
})
local flake_graphite_matter =
{
item_name = "flake-graphite",
minimum_conversion_quantity = 10,
matter_value = 5,
util.k2matter({
k2matter = {
material = {
name = "flake-graphite",
type = "item",
amount = 10,
},
matter_count = 5,
energy_required = 1,
need_stabilizer = false,
unlocked_by_technology = "carbon-matter-processing"
needs_stabilizer = false,
allow_productivity = true,
unlocked_by = "carbon-matter-processing"
}
matter.createMatterRecipe(flake_graphite_matter)
})
local graphite_matter =
{
item_name = "graphite",
minimum_conversion_quantity = 10,
matter_value = 7.5,
util.k2matter({
k2matter = {
material = {
name = "graphite",
type = "item",
amount = 10,
},
matter_count = 7.5,
energy_required = 2,
needs_stabilizer = true,
allow_productivity = true,
only_deconversion = true,
need_stabilizer = true,
unlocked_by_technology = "carbon-matter-processing"
unlocked_by = "carbon-matter-processing"
}
matter.createMatterRecipe(graphite_matter)
})
local diamond_matter =
{
item_name = "diamond",
minimum_conversion_quantity = 1,
matter_value = 8,
util.k2matter({
k2matter = {
material = {
name = "diamond",
type = "item",
amount = 1,
},
matter_count = 8,
energy_required = 2,
needs_stabilizer = true,
allow_productivity = true,
only_deconversion = true,
need_stabilizer = true,
unlocked_by_technology = "carbon-matter-processing"
unlocked_by = "carbon-matter-processing"
}
matter.createMatterRecipe(diamond_matter)
})
end