From cd771d5e0cb090d21a3fa4aed4c003d6aba03e4c Mon Sep 17 00:00:00 2001 From: pla Date: Sat, 1 Nov 2025 12:56:40 +0100 Subject: [PATCH] Fix K2 matter recipes and tech (#2) ![image](/attachments/3ad3274d-1933-469b-9eb9-caeca53e5a4a) Co-authored-by: pla Reviewed-on: https://git.cacklingfiend.info/cacklingfiend/Indium2/pulls/2 Co-authored-by: pla Co-committed-by: pla --- Indium2/locale/en/Indium.cfg | 1 + Indium2/prototypes/indium-matter.lua | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Indium2/locale/en/Indium.cfg b/Indium2/locale/en/Indium.cfg index d35c2ba..6093623 100644 --- a/Indium2/locale/en/Indium.cfg +++ b/Indium2/locale/en/Indium.cfg @@ -1,5 +1,6 @@ [technology-name] indium-processing=Indium processing +indium-matter-processing=Indium conversion indium-pcb-solder=Indium pcb solder [technology-description] diff --git a/Indium2/prototypes/indium-matter.lua b/Indium2/prototypes/indium-matter.lua index bad09f1..5873bd6 100644 --- a/Indium2/prototypes/indium-matter.lua +++ b/Indium2/prototypes/indium-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 = "__Indium2__/graphics/icons/indite-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 = "indite-ore", amount = 10 }, matter_count = 5, energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "indium-matter-processing" + needs_stabilizer = false, + unlocked_by = "indium-matter-processing" }) -matter.make_recipes({ +matter.make_deconversion_recipe({ material = { type = "item", name = "indium-plate", amount = 10 }, matter_count = 10, energy_required = 3, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "indium-matter-processing" + -- only_deconversion = true, + needs_stabilizer = true, + unlocked_by = "indium-matter-processing" }) end \ No newline at end of file