Fix K2 matter recipe generation and tech icon (#1)

![image](/attachments/dc93bd8c-31a7-4358-b29f-1301323b2b1d)

Co-authored-by: pla
Reviewed-on: #1
Co-authored-by: pla <pla@noreply.example.org>
Co-committed-by: pla <pla@noreply.example.org>
This commit is contained in:
pla 2025-11-01 12:57:41 +01:00 committed by cacklingfiend
parent e8d596dd36
commit 0bd3919618
2 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,6 @@
[technology-name] [technology-name]
chromium-processing=Chromium processing chromium-processing=Chromium processing
chromium-matter-processing=Chromium conversion
polyethylene-plastic=Polyethylene plastic polyethylene-plastic=Polyethylene plastic
stainless-steel-processing=Stainless steel processing stainless-steel-processing=Stainless steel processing
basic-vehicle-frame-production=Basic vehicle frame production basic-vehicle-frame-production=Basic vehicle frame production

View file

@ -10,15 +10,16 @@ if mods["Krastorio2"] then
icons = icons =
{ {
{ {
icon = "__Krastorio2Assets__/technologies/matter-coal.png", icon = "__Krastorio2Assets__/technologies/backgrounds/matter.png",
icon_size = 256, icon_size = 256,
}, },
{ {
icon = "__Chromium2__/graphics/icons/chromite-ore.png", icon = "__Chromium2__/graphics/icons/chromite-ore.png",
icon_size = 64, icon_size = 64,
scale = 1.4, scale = 1,
} }
}, },
effects = {},
prerequisites = { "kr-matter-processing" }, prerequisites = { "kr-matter-processing" },
unit = unit =
{ {
@ -38,16 +39,16 @@ if mods["Krastorio2"] then
material = { type = "item", name = "chromite-ore", amount = 10 }, material = { type = "item", name = "chromite-ore", amount = 10 },
matter_count = 5, matter_count = 5,
energy_required = 1, energy_required = 1,
need_stabilizer = false, needs_stabilizer = false,
unlocked_by_technology = "chromium-matter-processing" unlocked_by = "chromium-matter-processing"
}) })
matter.make_recipes({ matter.make_deconversion_recipe({
material = { type = "item", name = "chromium-plate", amount = 10 }, material = { type = "item", name = "chromium-plate", amount = 10 },
matter_count = 10, matter_count = 10,
energy_required = 3, energy_required = 3,
only_deconversion = true, -- only_deconversion = true,
need_stabilizer = true, needs_stabilizer = true,
unlocked_by_technology = "chromium-matter-processing" unlocked_by = "chromium-matter-processing"
}) })
end end