From 9b28cefa63df98722c659a40e5479daa372260e2 Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 1 Jul 2022 18:31:46 -0700 Subject: [PATCH] pyro tech --- changelog.txt | 5 +++++ data-util.lua | 8 ++++++++ info.json | 2 +- zirconium-recipe-se.lua | 7 +++++-- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 5f4e689..319fb63 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.6.1 +Date: 2021-07-02 + Changes: + - SE Update smelting unlock +--------------------------------------------------------------------------------------------------- Version: 0.6.0 Date: 2021-07-01 Changes: 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 5ff8371..61aa180 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzzirconium", - "version": "0.6.0", + "version": "0.6.1", "factorio_version": "1.1", "title": "Zirconium", "author": "Brevven", diff --git a/zirconium-recipe-se.lua b/zirconium-recipe-se.lua index 8f998a9..1b85fa5 100644 --- a/zirconium-recipe-se.lua +++ b/zirconium-recipe-se.lua @@ -44,8 +44,8 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then { type = "fluid", name = "molten-zirconium", - default_temperature = 600, - max_temperature = 600, + default_temperature = 1852, + max_temperature = 1852, base_color = {r=121, g=80, b=80}, flow_color = {r=121, g=80, b=80}, icons = {{icon = "__bzzirconium__/graphics/icons/molten-zirconium.png", icon_size = 128}}, @@ -109,6 +109,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-zirconium"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "zirconium-ingot"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "zirconium-ingot-to-plate"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-zirconium"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "zirconium-ingot"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "zirconium-ingot-to-plate"})