From 878a316e8d574f5d1a949bbafa9635e2fcff319b Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 18 Jul 2022 03:08:08 -0700 Subject: [PATCH] k2 matter --- data-updates.lua | 2 +- matter.lua | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 matter.lua diff --git a/data-updates.lua b/data-updates.lua index 0aa233b..9d8813b 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -1,5 +1,5 @@ require("recipe-updates") --- require("tin-matter") +require("matter") -- require("omni") require("map-gen-preset-updates") -- require("strange-matter") diff --git a/matter.lua b/matter.lua new file mode 100644 index 0000000..5e068b5 --- /dev/null +++ b/matter.lua @@ -0,0 +1,48 @@ +-- 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 = "gas-matter-processing", + icons = + { + { + icon = util.k2assets().."/technologies/matter-oil.png", + icon_size = 256, + }, + { + icon = "__bzgas__/graphics/icons/gas.png", + icon_size = 128, + scale = 1.4, + } + }, + prerequisites = {"kr-matter-processing"}, + unit = + { + count = 350, + ingredients = + { + {"production-science-pack", 1}, + {"utility-science-pack", 1}, + {"matter-tech-card", 1} + }, + time = 45 + } + }, +}) + +local gas_ore_matter = + { + item_name = "gas", + minimum_conversion_quantity = 100, + matter_value = 5, + energy_required = 1, + need_stabilizer = false, + unlocked_by_technology = "gas-matter-processing" + } +matter.createMatterRecipe(gas_ore_matter) +end