From 4d118ec869934d67557f958bc533d4e1b098c40c Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 1 Jul 2022 19:08:02 -0700 Subject: [PATCH] pyro tech --- changelog.txt | 5 +++++ data-util.lua | 8 ++++++++ info.json | 2 +- lead-recipe-se.lua | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 2654667..8217a04 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.2.2 +Date: 2022-07-02 + Chnages: + - SE: Pyroflux tech compatibility +--------------------------------------------------------------------------------------------------- Version: 1.2.1 Date: 2022-07-01 Fixes: diff --git a/data-util.lua b/data-util.lua index ffda9ed..0994028 100644 --- a/data-util.lua +++ b/data-util.lua @@ -566,6 +566,14 @@ function util.set_subgroup(recipe_name, subgroup) end end +-- Set item subgroup +function util.set_item_subgroup(item, subgroup) + if me.bypass[item] then return end + if data.raw.item[item] and data.raw["item-subgroup"][subgroup] then + data.raw.item[item].subgroup = subgroup + end +end + -- Set recipe icons function util.set_icons(recipe_name, icons) if me.bypass[recipe_name] then return end diff --git a/info.json b/info.json index 55399ed..e6b5ae3 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "1.2.1", + "version": "1.2.2", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", diff --git a/lead-recipe-se.lua b/lead-recipe-se.lua index 4438b44..ee81d1c 100644 --- a/lead-recipe-se.lua +++ b/lead-recipe-se.lua @@ -108,6 +108,9 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then order = "a-c-b" }, }) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-lead"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "lead-ingot"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "lead-ingot-to-plate"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-lead"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "lead-ingot"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "lead-ingot-to-plate"})