fix subgroup stuff for multiple outputs

This commit is contained in:
Brevven 2022-07-02 03:04:49 -07:00
parent 86717df675
commit d66d2c3f5d
3 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.2.5
Date: 2022-07-02
Fixes:
- Fix for subgroup fix
---------------------------------------------------------------------------------------------------
Version: 1.2.4 Version: 1.2.4
Date: 2022-07-02 Date: 2022-07-02
Fixes: Fixes:

View file

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

View file

@ -7,7 +7,6 @@ data:extend({
{ {
type = "recipe", type = "recipe",
name = util.me.lead_plate, name = util.me.lead_plate,
main_product = util.me.lead_plate,
category = "smelting", category = "smelting",
order = "d[lead-plate]", order = "d[lead-plate]",
icons = (mods["Krastorio2"] and icons = (mods["Krastorio2"] and
@ -20,6 +19,7 @@ data:extend({
), ),
normal = (mods["Krastorio2"] and normal = (mods["Krastorio2"] and
{ {
main_product = util.me.lead_plate,
enabled = true, enabled = true,
energy_required = 16, energy_required = 16,
ingredients = {{"lead-ore", 10}}, ingredients = {{"lead-ore", 10}},
@ -31,6 +31,7 @@ data:extend({
}, },
} or } or
{ {
main_product = util.me.lead_plate,
enabled = true, enabled = true,
energy_required = 6.4, energy_required = 6.4,
ingredients = {{"lead-ore", 2}}, ingredients = {{"lead-ore", 2}},
@ -43,6 +44,7 @@ data:extend({
}), }),
expensive = expensive =
{ {
main_product = util.me.lead_plate,
enabled = true, enabled = true,
energy_required = 12.8, energy_required = 12.8,
ingredients = {{"lead-ore", 4}}, ingredients = {{"lead-ore", 4}},
@ -93,6 +95,8 @@ data:extend({
} or nil, } or nil,
}) })
end end
log("BZZZZZZ")
log(serpent.dump(data.raw.recipe["lead-plate"]))
if mods["IndustrialRevolution"] then if mods["IndustrialRevolution"] then
data:extend({ data:extend({