This commit is contained in:
Simon Brodtmann 2025-10-10 18:12:33 +02:00
parent 931a0afc7b
commit d456184b93

View file

@ -1,10 +1,9 @@
-- Matter recipes for Krastorio2 -- Matter recipes for Krastorio2
if mods["Krastorio2"] then if mods["Krastorio2"] then
local util = require("data-util") local matter = require("__Krastorio2__/prototypes/libraries/matter")
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
data:extend( data:extend(
{ {
{ {
type = "technology", type = "technology",
name = "chromium-matter-processing", name = "chromium-matter-processing",
@ -20,41 +19,35 @@ data:extend(
scale = 1.4, scale = 1.4,
} }
}, },
prerequisites = {"kr-matter-processing"}, prerequisites = { "kr-matter-processing" },
unit = unit =
{ {
count = 350, count = 350,
ingredients = ingredients =
{ {
{"production-science-pack", 1}, { "production-science-pack", 1 },
{"utility-science-pack", 1}, { "utility-science-pack", 1 },
{"matter-tech-card", 1} { "matter-tech-card", 1 }
}, },
time = 45 time = 45
} }
}, },
}) })
local chromium_ore_matter = matter.createMatterRecipe({
{ material = { type = "item", name = "chromite-ore", amount = 10 },
item_name = "chromite-ore", matter_count = 5,
minimum_conversion_quantity = 10,
matter_value = 5,
energy_required = 1, energy_required = 1,
need_stabilizer = false, need_stabilizer = false,
unlocked_by_technology = "chromium-matter-processing" unlocked_by_technology = "chromium-matter-processing"
} })
matter.createMatterRecipe(chromium_ore_matter)
local chromium_plate_matter = matter.createMatterRecipe({
{ material = { type = "item", name = "chromium-plate", amount = 10 },
item_name = "chromium-plate", matter_count = 10,
minimum_conversion_quantity = 10,
matter_value = 10,
energy_required = 3, energy_required = 3,
only_deconversion = true, only_deconversion = true,
need_stabilizer = true, need_stabilizer = true,
unlocked_by_technology = "chromium-matter-processing" unlocked_by_technology = "chromium-matter-processing"
} })
matter.createMatterRecipe(chromium_plate_matter)
end end