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

@ -3,7 +3,7 @@ local util = require("data-util");
-- Space Age
if mods.bzlead and data.raw.item["lead-expansion-bolt"] then
if mods["bzlead2"] and data.raw.item["lead-expansion-bolt"] then
util.replace_product("scrap-recycling", "lead-expansion-bolt", "solder")
else
util.add_product("scrap-recycling", util.item("solder", 1, .01))
@ -36,7 +36,7 @@ util.add_ingredient("slowdown-capsule", "organotins", 5)
util.set_category("poison-capsule", "crafting-with-fluid")
util.set_category("slowdown-capsule", "crafting-with-fluid")
util.replace_ingredient("pipe-to-ground", mods.bzlead and "lead-plate" or "iron-plate", "solder", 4)
util.replace_ingredient("pipe-to-ground", mods["bzlead2"] and "lead-plate" or "iron-plate", "solder", 4)
util.remove_ingredient("chemical-plant", "tungsten-plate") -- keep ingredients managable
util.replace_some_ingredient("advanced-circuit", "copper-cable", 1, "solder", 1)
@ -61,8 +61,8 @@ if mods.Krastorio2 then
util.add_product("kr-glass", {type="item", name="tin-plate", amount=1, catalyst_amount=1, probability=0.8})
util.set_main_product("kr-glass", "kr-glass")
else
if mods.bzfoundry then
if not mods.bzaluminum then
if mods.bzfoundry2 then
if not mods.bzaluminum2 then
util.multiply_recipe("glass-from-sand", 4) -- aai
util.multiply_recipe("sng-glass-plate", 4) -- sand and glass
end
@ -165,7 +165,7 @@ if util.me.use_bronze() then
util.add_ingredient("maraxsis-nuclear-submarine", "bronze-plate", 10)
util.add_ingredient("maraxsis-salt-reactor", "bronze-plate", 10)
util.add_ingredient("maraxsis-hydro-plant", "bronze-plate", 10)
local fast_i = mods.bzaluminum and "aluminum-plate" or "iron-plate"
local fast_i = mods.bzaluminum2 and "aluminum-plate" or "iron-plate"
util.replace_some_ingredient("fast-inserter", fast_i, 1, "bronze-plate", 1)
if mods.Krastorio2 then
util.replace_ingredient("kr-steel-pump", "steel-beam", "bronze-plate", 4)
@ -181,7 +181,7 @@ if util.me.use_bronze() then
end
if mods.bztungsten and not mods.bzaluminum then
if mods.bztungsten2 and not mods.bzaluminum2 then
util.replace_ingredient("small-lamp", "copper-cable", "tinned-cable")
util.add_prerequisite("optics", "tinned-cable")
end