From 65364def62ef7a0d83e34eade348afd53ad0db8b Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 27 Mar 2023 19:58:05 -0700 Subject: [PATCH] matter update --- changelog.txt | 5 +++ info.json | 2 +- zircon-matter.lua | 94 +++++++++++++++-------------------------------- 3 files changed, 36 insertions(+), 65 deletions(-) diff --git a/changelog.txt b/changelog.txt index e68f831..6ed2e53 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.7.3 +Date: 2023-03-28 + Fixes: + - K2SE matter stabilizer +--------------------------------------------------------------------------------------------------- Version: 0.7.2 Date: 2023-03-20 Fixes: diff --git a/info.json b/info.json index 05e6b9f..4d70425 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzzirconium", - "version": "0.7.2", + "version": "0.7.3", "factorio_version": "1.1", "title": "Zirconium", "author": "Brevven", diff --git a/zircon-matter.lua b/zircon-matter.lua index b44650c..c0c02b8 100644 --- a/zircon-matter.lua +++ b/zircon-matter.lua @@ -1,74 +1,40 @@ -- Matter recipes for Krastorio2 if mods["Krastorio2"] then local util = require("__bzzirconium__.data-util"); -local matter = require("__Krastorio2__/lib/public/data-stages/matter-util") -data:extend( -{ - { - type = "technology", - name = "zirconium-matter-processing", - icons = - { - { - icon = util.k2assets().."/technologies/matter-stone.png", - icon_size = 256, - }, - { - icon = "__bzzirconium__/graphics/icons/zircon.png", - icon_size = 64, icon_mipmaps = 3, - scale = 1.25, - } + util.k2matter({ + k2matter = { + item_name = "zircon", + matter_value = 6, + energy_required = 1, + need_stabilizer = false, + unlocked_by_technology = "zirconium-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 = "__bzzirconium__/graphics/icons/zircon.png", icon_size = 64, scale = 1.25} + }) -local zircon_matter = - { - item_name = "zircon", - minimum_conversion_quantity = 10, - matter_value = 6, - energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "zirconium-matter-processing" - } -matter.createMatterRecipe(zircon_matter) + util.k2matter({ + k2matter = { + item_name = "zirconia", + minimum_conversion_quantity = 20, + matter_value = 10, + energy_required = 2, + only_deconversion = true, + need_stabilizer = true, + unlocked_by_technology = "zirconium-matter-processing", + }, + }) - -local zirconia_matter = - { - item_name = "zirconia", - minimum_conversion_quantity = 20, - matter_value = 10, - energy_required = 2, + util.k2matter({ + k2matter = { + item_name = "zirconium-plate", + matter_value = 17, + energy_required = 2, only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "zirconium-matter-processing" - } -matter.createMatterRecipe(zirconia_matter) - -local zirconium_plate_matter = - { - item_name = "zirconium-plate", - minimum_conversion_quantity = 10, - matter_value = 17, - energy_required = 2, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "zirconium-matter-processing" - } -matter.createMatterRecipe(zirconium_plate_matter) + need_stabilizer = true, + unlocked_by_technology = "zirconium-matter-processing", + }, + }) end