Update to bz mods version 2

This commit is contained in:
Simon Brodtmann 2025-10-21 15:00:21 +02:00
parent 6fead72d97
commit 95bb0d90cb
4 changed files with 18 additions and 18 deletions

View file

@ -9,11 +9,11 @@
"base >= 2.0.0", "base >= 2.0.0",
"? bismuth", "? bismuth",
"? BrassTacks-Updated", "? BrassTacks-Updated",
"? bzcarbon", "? bzcarbon2",
"? bzfoundry", "? bzfoundry2",
"? bzlead", "? bzlead2",
"? bzsilicon", "? bzsilicon2",
"? bztin", "? bztin2",
"? IfNickel-Updated", "? IfNickel-Updated",
"? Krastorio2", "? Krastorio2",
"? space-exploration" "? space-exploration"

View file

@ -40,12 +40,12 @@ data:extend({
}) })
local solder_ingredients = {{type="item", name="indium-plate", amount=6}} local solder_ingredients = {{type="item", name="indium-plate", amount=6}}
if mods["bzlead"] then if mods["bzlead2"] then
solder_ingredients = {{type="item", name="indium-plate", amount=3}, {type="item", name="lead-plate", amount=3}} solder_ingredients = {{type="item", name="indium-plate", amount=3}, {type="item", name="lead-plate", amount=3}}
end end
local solder_category = "crafting" local solder_category = "crafting"
local solder_subgroup = "intermediate-product" local solder_subgroup = "intermediate-product"
if mods["bzfoundry"] then if mods["bzfoundry2"] then
solder_category = "founding" solder_category = "founding"
solder_subgroup = "foundry-intermediate" solder_subgroup = "foundry-intermediate"
end end
@ -94,7 +94,7 @@ data:extend({
} }
}) })
if mods["bzsilicon"] and data.raw.item["solar-cell"] then if mods["bzsilicon2"] and data.raw.item["solar-cell"] then
local solar_cell_ingredients = {{type="item", name="copper-plate", amount=1}, {type="item", name="indium-plate", amount=1}, {type="item", name="electronic-circuit", amount=2}} local solar_cell_ingredients = {{type="item", name="copper-plate", amount=1}, {type="item", name="indium-plate", amount=1}, {type="item", name="electronic-circuit", amount=2}}
if mods["Krastorio2"] then if mods["Krastorio2"] then
table.insert(solar_cell_ingredients, {type="item", name="kr-rare-metals", amount=1}) table.insert(solar_cell_ingredients, {type="item", name="kr-rare-metals", amount=1})
@ -105,7 +105,7 @@ if mods["bzsilicon"] and data.raw.item["solar-cell"] then
name = "indium-solar-cell", name = "indium-solar-cell",
icons = icons =
{ {
{ icon = "__bzsilicon__/graphics/icons/solar-cell.png", icon_size = 64 }, { icon = "__bzsilicon2__/graphics/icons/solar-cell.png", icon_size = 64 },
{ icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, scale=0.2, shift= {-8, -8}}, { icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, scale=0.2, shift= {-8, -8}},
}, },
category = "advanced-crafting", category = "advanced-crafting",
@ -121,22 +121,22 @@ if mods["bzsilicon"] and data.raw.item["solar-cell"] then
end end
local solder_pcb_ingredients = {{type="item", name="indium-plate", amount=10}} local solder_pcb_ingredients = {{type="item", name="indium-plate", amount=10}}
if mods["bztin"] then if mods["bztin2"] then
solder_pcb_ingredients = {{type="item", name="indium-plate", amount=6}, {type="item", name="tin-plate", amount=5}} solder_pcb_ingredients = {{type="item", name="indium-plate", amount=6}, {type="item", name="tin-plate", amount=5}}
end end
local solder_pcb_category = "crafting" local solder_pcb_category = "crafting"
local solder_pcb_subgroup = "intermediate-product" local solder_pcb_subgroup = "intermediate-product"
if mods["bzfoundry"] then if mods["bzfoundry2"] then
solder_pcb_category = "founding" solder_pcb_category = "founding"
solder_pcb_subgroup = "foundry-intermediate" solder_pcb_subgroup = "foundry-intermediate"
end end
if mods["bismuth"] and mods["bztin"] then if mods["bismuth"] and mods["bztin2"] then
data:extend({ data:extend({
{ {
type = "recipe", type = "recipe",
name = "indium-pcb-solder", name = "indium-pcb-solder",
icons = { icons = {
{ icon = "__bztin__/graphics/icons/solder.png", icon_size = 128, tint = {r = 0.7, g = 0.5, b = 0.9, a = 1} }, { icon = "__bztin2__/graphics/icons/solder.png", icon_size = 128, tint = {r = 0.7, g = 0.5, b = 0.9, a = 1} },
{ icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, scale=0.2, shift= {-8, -8}}, { icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, scale=0.2, shift= {-8, -8}},
}, },
group = "intermediate-products", group = "intermediate-products",
@ -166,7 +166,7 @@ if mods["BrassTacks-Updated"] and data.raw.item["airtight-seal"]then
order = "c", order = "c",
enabled = false, enabled = false,
energy_required = 5, energy_required = 5,
ingredients = {{type="item", name="bolted-flange", amount=1},mods["bzcarbon"] and {type="item", name="graphite", amount=4}, {type="item", name="indium-solder", amount=2}}, ingredients = {{type="item", name="bolted-flange", amount=1}, mods["bzcarbon2"] and {type="item", name="graphite", amount=4}, {type="item", name="indium-solder", amount=2}},
results = {{type="item", name="airtight-seal", amount=2}}, results = {{type="item", name="airtight-seal", amount=2}},
} }
}) })

View file

@ -57,7 +57,7 @@ data:extend(
} }
}, },
}) })
if (mods["bztin"] and mods["bismuth"]) or false then if (mods["bztin2"] and mods["bismuth"]) or false then
data:extend( data:extend(
{ {
{ {
@ -65,7 +65,7 @@ data:extend(
name = "indium-pcb-solder", name = "indium-pcb-solder",
icons = icons =
{ {
{ icon = "__bztin__/graphics/icons/solder.png", icon_size = 128, tint = {r = 0.7, g = 0.5, b = 0.9, a = 1} }, { icon = "__bztin2__/graphics/icons/solder.png", icon_size = 128, tint = {r = 0.7, g = 0.5, b = 0.9, a = 1} },
{ icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, shift= {-8, -8}}, { icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, shift= {-8, -8}},
}, },
prerequisites = {"indium-processing"}, prerequisites = {"indium-processing"},

View file

@ -4,8 +4,8 @@ local util = require("data-util")
-- Mod changes -- Mod changes
if mods["IfNickel-Updated"] then if mods["IfNickel-Updated"] then
if mods["IfNickel-Updated"] and mods["bztungsten"] then if mods["IfNickel-Updated"] and mods["bztungsten2"] then
util.replace_some_ingredient(mods["IfNickel-Updated"] and "gimbaled-thruster", mods["bztungsten"] and "rocket-engine-nozzle", 1, "cryogenic-seal", 1) util.replace_some_ingredient(mods["IfNickel-Updated"] and "gimbaled-thruster", mods["bztungsten2"] and "rocket-engine-nozzle", 1, "cryogenic-seal", 1)
end end
util.remove_ingredient("satellite", "gimbaled-thruster") util.remove_ingredient("satellite", "gimbaled-thruster")
end end