Update bz mods to version 2

This commit is contained in:
Simon Brodtmann 2025-10-20 23:39:19 +02:00
parent 05b698f24b
commit 9ccae84270
5 changed files with 17 additions and 17 deletions

View file

@ -65,7 +65,7 @@ data:extend({
local solder_ingredients = {util.item("tin-plate", 4), util.item("copper-plate", 1)}
local solder_casting = {util.fluid("molten-tin", 40), util.fluid("molten-copper", 10)}
if mods.bzlead then
if mods["bzlead2"] then
solder_ingredients = {util.item("tin-plate", 3), util.item("lead-plate", 2)}
solder_casting = {util.fluid("molten-tin", 30), util.fluid("molten-lead", 20)}
end
@ -126,7 +126,7 @@ data:extend({
icons = {
{icon = "__bztin__/graphics/icons/solder.png", icon_size = 128, scale = 0.33, shift = {0,-6}},
{icon = "__bztin__/graphics/icons/tin-plate.png", icon_size = 128, scale = 0.25, shift = {-6,4}},
mods.bzlead and {icon = "__bzlead__/graphics/icons/lead-plate.png", icon_size = 64, scale = 0.5, shift = {6,4}} or
mods["bzlead2"] and {icon = "__bzlead2__/graphics/icons/lead-plate.png", icon_size = 64, scale = 0.5, shift = {6,4}} or
{icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64, scale = 0.5, shift = {6,4}},
},
effects = {},
@ -143,7 +143,7 @@ data:extend({
})
util.add_effect("foundry", { type = "unlock-recipe", recipe = "casting-solder" })
end
if mods.bzaluminum and not mods.bzlead then
if mods.bzaluminum2 and not mods["bzlead2"] then
data:extend({
{
type = "technology",
@ -306,7 +306,7 @@ data:extend({
for item, count in pairs(bronze_i) do
util.add_ingredient("bronze-plate", item, count, {force=true})
end
if mods.bzfoundry and data.raw.item["foundry"] then
if mods.bzfoundry2 and data.raw.item["foundry"] then
util.add_effect("foundry", { type = "unlock-recipe", recipe = "bronze-plate" })
util.add_prerequisite("fast-inserter", "foundry")
util.set_to_founding("bronze-plate", {force=true})