From 41856e5e17242f5415ef37119c785dd553c4562c Mon Sep 17 00:00:00 2001 From: pla Date: Sat, 1 Nov 2025 12:50:23 +0100 Subject: [PATCH] Fix K2 matter recipe generation and tech icon (#1) ![image](/attachments/f900592e-41ad-4956-a382-ce622274a4bb) Co-authored-by: pla Reviewed-on: https://git.cacklingfiend.info/cacklingfiend/Cobalt2/pulls/1 Co-authored-by: pla Co-committed-by: pla --- Cobalt2/locale/en/Cobalt.cfg | 1 + Cobalt2/prototypes/cobalt-matter.lua | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Cobalt2/locale/en/Cobalt.cfg b/Cobalt2/locale/en/Cobalt.cfg index 35d2ce3..4149de3 100644 --- a/Cobalt2/locale/en/Cobalt.cfg +++ b/Cobalt2/locale/en/Cobalt.cfg @@ -3,6 +3,7 @@ cobalt-refining=Cobalt refining cobalt-carbide=Cobalt carbide cobalt-electromagnet=Cobalt electromagnet cobalt-substrates=Cobalt substrates +cobalt-matter-processing=Cobalt conversion [technology-description] diff --git a/Cobalt2/prototypes/cobalt-matter.lua b/Cobalt2/prototypes/cobalt-matter.lua index 3919dc0..13367bf 100644 --- a/Cobalt2/prototypes/cobalt-matter.lua +++ b/Cobalt2/prototypes/cobalt-matter.lua @@ -10,15 +10,16 @@ data:extend( icons = { { - icon = "__Krastorio2Assets__/technologies/matter-coal.png", + icon = "__Krastorio2Assets__/technologies/backgrounds/matter.png", icon_size = 256, }, { icon = "__Cobalt2__/graphics/icons/cobaltite-ore.png", icon_size = 64, - scale = 1.4, + scale = 1, } }, + effects = {}, prerequisites = {"kr-matter-processing"}, unit = { @@ -38,16 +39,16 @@ matter.make_recipes({ material = { type = "item", name = "cobaltite-ore", amount = 10 }, matter_count = 5, energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "cobalt-matter-processing" + needs_stabilizer = false, + unlocked_by = "cobalt-matter-processing" }) -matter.make_recipes({ +matter.make_deconversion_recipe({ material = { type = "item", name = "cobalt-plate", amount = 10 }, matter_count = 10, energy_required = 3, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "cobalt-matter-processing" + -- only_deconversion = true, + needs_stabilizer = true, + unlocked_by = "cobalt-matter-processing" }) end \ No newline at end of file