subgroup fix

This commit is contained in:
Brevven 2022-07-01 21:02:02 -07:00
parent 68a3fe1391
commit 215756294b
4 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.2.4
Date: 2022-07-02
Changes:
- SE/K2 subgroup fixes
---------------------------------------------------------------------------------------------------
Version: 1.2.3 Version: 1.2.3
Date: 2022-07-02 Date: 2022-07-02
Features: Features:

View file

@ -1,6 +1,6 @@
{ {
"name": "bzlead", "name": "bzlead",
"version": "1.2.3", "version": "1.2.4",
"factorio_version": "1.1", "factorio_version": "1.1",
"title": "Lead", "title": "Lead",
"author": "Brevven", "author": "Brevven",

View file

@ -23,6 +23,7 @@ data:extend(
{ {
type = "recipe", type = "recipe",
name = "enriched-lead", name = "enriched-lead",
main_product = "enriched-lead",
icon = "__bzlead__/graphics/icons/enriched-lead.png", icon = "__bzlead__/graphics/icons/enriched-lead.png",
icon_size = 64, icon_size = 64,
icon_mipmaps = 3, icon_mipmaps = 3,
@ -51,7 +52,6 @@ data:extend(
tertiary = {r = 0.690, g = 0.768, b = 0.870, a = 0.000}, 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} quaternary = {r = 0.0, g = 0.980, b = 0.603, a = 0.900}
}, },
subgroup = "raw-material",
order = "e03[enriched-lead]" order = "e03[enriched-lead]"
}, },
{ {

View file

@ -30,7 +30,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
order = "a-h-z-a", order = "a-h-z-a",
} }
}) })
data.raw.item["lead-plate"].subgroup = "lead" util.set_item_subgroup("lead-plate", "lead")
data:extend({ data:extend({
{ {
type = "item", type = "item",
@ -115,6 +115,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "lead-ingot"}) 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"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "lead-ingot-to-plate"})
if mods["Krastorio2"] then if mods["Krastorio2"] then
util.set_item_subgroup("enriched-lead", "lead")
data.raw.recipe["enriched-lead-plate"].order= "d[lead-plate]" data.raw.recipe["enriched-lead-plate"].order= "d[lead-plate]"
se_delivery_cannon_recipes["enriched-lead"] = {name= "enriched-lead"} se_delivery_cannon_recipes["enriched-lead"] = {name= "enriched-lead"}
else else