From 0bd3919618d19243774352ad898ab31e0bbe5e0c Mon Sep 17 00:00:00 2001 From: pla Date: Sat, 1 Nov 2025 12:57:41 +0100 Subject: [PATCH] Fix K2 matter recipe generation and tech icon (#1) ![image](/attachments/dc93bd8c-31a7-4358-b29f-1301323b2b1d) Co-authored-by: pla Reviewed-on: https://git.cacklingfiend.info/cacklingfiend/Chromium2/pulls/1 Co-authored-by: pla Co-committed-by: pla --- Chromium2/locale/en/Chromium.cfg | 1 + Chromium2/prototypes/chromium-matter.lua | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Chromium2/locale/en/Chromium.cfg b/Chromium2/locale/en/Chromium.cfg index 671c197..b5033e5 100644 --- a/Chromium2/locale/en/Chromium.cfg +++ b/Chromium2/locale/en/Chromium.cfg @@ -1,5 +1,6 @@ [technology-name] chromium-processing=Chromium processing +chromium-matter-processing=Chromium conversion polyethylene-plastic=Polyethylene plastic stainless-steel-processing=Stainless steel processing basic-vehicle-frame-production=Basic vehicle frame production diff --git a/Chromium2/prototypes/chromium-matter.lua b/Chromium2/prototypes/chromium-matter.lua index 24bedc5..208bbbe 100644 --- a/Chromium2/prototypes/chromium-matter.lua +++ b/Chromium2/prototypes/chromium-matter.lua @@ -10,15 +10,16 @@ if mods["Krastorio2"] then icons = { { - icon = "__Krastorio2Assets__/technologies/matter-coal.png", + icon = "__Krastorio2Assets__/technologies/backgrounds/matter.png", icon_size = 256, }, { icon = "__Chromium2__/graphics/icons/chromite-ore.png", icon_size = 64, - scale = 1.4, + scale = 1, } }, + effects = {}, prerequisites = { "kr-matter-processing" }, unit = { @@ -38,16 +39,16 @@ if mods["Krastorio2"] then material = { type = "item", name = "chromite-ore", amount = 10 }, matter_count = 5, energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "chromium-matter-processing" + needs_stabilizer = false, + unlocked_by = "chromium-matter-processing" }) - matter.make_recipes({ + matter.make_deconversion_recipe({ material = { type = "item", name = "chromium-plate", amount = 10 }, matter_count = 10, energy_required = 3, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "chromium-matter-processing" + -- only_deconversion = true, + needs_stabilizer = true, + unlocked_by = "chromium-matter-processing" }) end