From 230d08585651e1e536b8a2e32612b77b950cd238 Mon Sep 17 00:00:00 2001 From: pla Date: Sat, 25 Oct 2025 18:24:56 +0200 Subject: [PATCH] Fix K2 matter tech generation --- bzgold2/data-util.lua | 9 +++++---- bzgold2/matter.lua | 14 ++++++-------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/bzgold2/data-util.lua b/bzgold2/data-util.lua index 3825ac6..33619f2 100644 --- a/bzgold2/data-util.lua +++ b/bzgold2/data-util.lua @@ -115,12 +115,12 @@ end function util.k2matter(params) local matter = require("__Krastorio2__/prototypes/libraries/matter") if mods["space-exploration"] then - params.k2matter.need_stabilizer = true + params.k2matter.needs_stabilizer = true end if not params.k2matter.minimum_conversion_quantity then params.k2matter.minimum_conversion_quantity = 10 end - if not data.raw.technology[params.k2matter.unlocked_by_technology] then + if not data.raw.technology[params.k2matter.unlocked_by] then local icon = "" if params.k2baseicon then icon = util.k2assets().."/technologies/matter-"..params.k2baseicon..".png" @@ -132,7 +132,7 @@ function util.k2matter(params) { { type = "technology", - name = params.k2matter.unlocked_by_technology, + name = params.k2matter.unlocked_by, icons = { { @@ -163,7 +163,8 @@ function util.k2matter(params) }, time = 45, }, - localised_name = {"technology-name.k2-conversion", {"item-name."..params.k2matter.item_name}}, + effects = {}, + -- localised_name = {"technology-name.k2-conversion", {"item-name."..params.k2matter.item_name}}, }, }) end diff --git a/bzgold2/matter.lua b/bzgold2/matter.lua index 10ea30c..a23bb0b 100644 --- a/bzgold2/matter.lua +++ b/bzgold2/matter.lua @@ -8,11 +8,10 @@ if mods["Krastorio2"] then item_name = "gold-ore", matter_count = 30, energy_required = 10, - need_stabilizer = false, - unlocked_by_technology = "gold-matter-processing", + needs_stabilizer = false, + unlocked_by = "gold-matter-processing", }, - k2baseicon = "stone", - icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 1} + icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5} }) util.k2matter({ @@ -21,10 +20,9 @@ if mods["Krastorio2"] then item_name = "silver-ore", matter_count = 8, energy_required = 5, - need_stabilizer = false, - unlocked_by_technology = "silver-matter-processing", + needs_stabilizer = false, + unlocked_by = "silver-matter-processing", }, - k2baseicon = "stone", - icon = {icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 1} + icon = {icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 0.5} }) end