From fa663a1d6e178b88223e67e06af1ed5e1edeaf9e Mon Sep 17 00:00:00 2001 From: pla Date: Mon, 27 Oct 2025 11:10:04 +0100 Subject: [PATCH] Fix K2 matter recipe generation and tech icon --- Cobalt2/locale/en/Cobalt.cfg | 1 + Cobalt2/prototypes/cobalt-matter.lua | 13 +++++++------ 2 files changed, 8 insertions(+), 6 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..80b30fa 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,8 +39,8 @@ 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({ @@ -47,7 +48,7 @@ matter.make_recipes({ matter_count = 10, energy_required = 3, only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "cobalt-matter-processing" + needs_stabilizer = true, + unlocked_by = "cobalt-matter-processing" }) end \ No newline at end of file