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

View file

@ -1,7 +1,6 @@
-- 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(
{ {
@ -35,26 +34,20 @@ data:extend(
}, },
}) })
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