From 2fdb0b00cc3d227e8d6d83aef92216202d497a1f Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 2 Jul 2022 00:35:43 -0700 Subject: [PATCH] subgroup --- changelog.txt | 7 ++++++- info.json | 2 +- titanium-enriched.lua | 2 +- titanium-recipe-se.lua | 3 ++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index e115cd8..f2f35eb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,11 @@ --------------------------------------------------------------------------------------------------- +Version: 1.2.2 +Date: 2022-07-02 + Changes: + - SE/K2 subgroup cleanup +--------------------------------------------------------------------------------------------------- Version: 1.2.1 -Date: 2022-07-01 +Date: 2022-07-02 Changes: - SE: Pyroflux tech name --------------------------------------------------------------------------------------------------- diff --git a/info.json b/info.json index fd0a86e..3749217 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "1.2.1", + "version": "1.2.2", "factorio_version": "1.1", "title": "Titanium", "author": "Brevven", diff --git a/titanium-enriched.lua b/titanium-enriched.lua index 586c861..fd20ca7 100644 --- a/titanium-enriched.lua +++ b/titanium-enriched.lua @@ -22,6 +22,7 @@ data:extend( { type = "recipe", name = "enriched-titanium", + main_product = "enriched-titanium", icon = "__bztitanium__/graphics/icons/enriched-titanium.png", icon_size = 64, icon_mipmaps = 3, category = "chemistry", @@ -48,7 +49,6 @@ data:extend( tertiary = {r = 0.690, g = 0.768, b = 0.870, a = 0.000}, quaternary = {r = 0.0, g = 0.980, b = 0.603, a = 0.900} }, - subgroup = "raw-material", order = "e03[enriched-titanium]" }, { diff --git a/titanium-recipe-se.lua b/titanium-recipe-se.lua index e309e3f..11a4f3f 100644 --- a/titanium-recipe-se.lua +++ b/titanium-recipe-se.lua @@ -29,7 +29,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then order = "a-h-z-a", } }) - data.raw.item[util.titanium_plate].subgroup = "titanium" + util.set_item_subgroup(util.titanium_plate, "titanium") data:extend({ { type = "item", @@ -114,6 +114,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "titanium-ingot-to-plate"}) util.add_prerequisite(data.raw.technology["se-processing-vulcanite"], util.me.titanium_processing) if mods["Krastorio2"] then + util.set_item_subgroup("enriched-titanium", "titanium") data.raw.recipe["enriched-titanium-plate"].order= "d[titanium-plate]" se_delivery_cannon_recipes["enriched-titanium"] = {name= "enriched-titanium"} end