From cb3d3834a66f4d2714c8cc24c3ab8fe880e43622 Mon Sep 17 00:00:00 2001 From: Brevven Date: Tue, 28 Mar 2023 18:51:44 -0700 Subject: [PATCH] matter update --- changelog.txt | 6 ++++ tin-matter.lua | 77 +++++++++++++++----------------------------------- 2 files changed, 28 insertions(+), 55 deletions(-) diff --git a/changelog.txt b/changelog.txt index effa739..3b49d29 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,9 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.1.11 +Date: 2023-03-27 + Fixes: + - K2SE: Matter stabilizers +--------------------------------------------------------------------------------------------------- Version: 0.1.10 Date: 2023-02-12 Changes: diff --git a/tin-matter.lua b/tin-matter.lua index 080d72d..00ea0ed 100644 --- a/tin-matter.lua +++ b/tin-matter.lua @@ -1,60 +1,27 @@ -- Matter recipes for Krastorio2 if mods["Krastorio2"] then -local util = require("data-util"); -local matter = require("__Krastorio2__/lib/public/data-stages/matter-util") - -data:extend( -{ - { - type = "technology", - name = "tin-matter-processing", - icons = - { - { - icon = util.k2assets().."/technologies/matter-coal.png", - icon_size = 256, - }, - { - icon = "__bztin__/graphics/icons/tin-ore.png", - icon_size = 64, - scale = 1.4, - } + local util = require("data-util"); + util.k2matter({ + k2matter = { + item_name = "tin-ore", + matter_value = 5, + energy_required = 1, + need_stabilizer = false, + unlocked_by_technology = "tin-matter-processing", }, - prerequisites = {"kr-matter-processing"}, - unit = - { - count = 350, - ingredients = - { - {"production-science-pack", 1}, - {"utility-science-pack", 1}, - {"matter-tech-card", 1} - }, - time = 45 - } - }, -}) + k2baseicon = "stone", + icon = { icon = "__bztin__/graphics/icons/tin-ore.png", icon_size = 64, scale = 1.4} + }) -local tin_ore_matter = - { - item_name = "tin-ore", - minimum_conversion_quantity = 10, - matter_value = 5, - energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "tin-matter-processing" - } -matter.createMatterRecipe(tin_ore_matter) - -local tin_plate_matter = - { - item_name = "tin-plate", - minimum_conversion_quantity = 10, - matter_value = 10, - energy_required = 3, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "tin-matter-processing" - } -matter.createMatterRecipe(tin_plate_matter) + util.k2matter({ + k2matter = { + item_name = "tin-plate", + minimum_conversion_quantity = 10, + matter_value = 10, + energy_required = 3, + only_deconversion = true, + need_stabilizer = true, + unlocked_by_technology = "tin-matter-processing", + }, + }) end