zr compat

This commit is contained in:
Brevven 2021-06-07 00:31:38 -07:00
parent 73a585f83b
commit c38bf32590
2 changed files with 24 additions and 18 deletions

View file

@ -102,7 +102,11 @@ if mods["Krastorio2"] then
util.replace_some_ingredient("kr-advanced-furnace", "rare-metals", 40, "tungsten-plate", 40) util.replace_some_ingredient("kr-advanced-furnace", "rare-metals", 40, "tungsten-plate", 40)
-- Other -- Other
util.add_ingredient("matter-research-data", "tungsten-plate", 5) if mods.bzzirconium then
util.add_ingredient("matter-research-data", "zirconium-tungstate", 5)
else
util.add_ingredient("matter-research-data", "tungsten-plate", 5)
end
-- Ammunition -- Ammunition
util.replace_ingredient("piercing-rounds-magazine", "steel-plate", "tungsten-plate") util.replace_ingredient("piercing-rounds-magazine", "steel-plate", "tungsten-plate")
@ -136,8 +140,13 @@ if mods["space-exploration"] then
-- Data -- Data
util.add_ingredient("se-electromagnetic-field-data", "tungsten-plate", 1) util.add_ingredient("se-electromagnetic-field-data", "tungsten-plate", 1)
util.add_product("se-electromagnetic-field-data", {name="tungsten-plate", amount=1, probability=0.95}) util.add_product("se-electromagnetic-field-data", {name="tungsten-plate", amount=1, probability=0.95})
util.add_ingredient("se-hot-thermodynamics-data", "tungsten-plate", 1) if mods.bzzirconium then
util.add_product("se-hot-thermodynamics-data", {name="tungsten-plate", amount=1, probability=0.50}) util.add_ingredient("se-hot-thermodynamics-data", "zirconium-tungstate", 1)
util.add_product("se-hot-thermodynamics-data", {name="zirconium-tungstate", amount=1, probability=0.50})
else
util.add_ingredient("se-hot-thermodynamics-data", "tungsten-plate", 1)
util.add_product("se-hot-thermodynamics-data", {name="tungsten-plate", amount=1, probability=0.50})
end
util.add_ingredient("se-particle-beam-shielding-data", "tungsten-plate", 1) util.add_ingredient("se-particle-beam-shielding-data", "tungsten-plate", 1)
util.add_product("se-particle-beam-shielding-data", {name="tungsten-plate", amount=1, probability=0.20}) util.add_product("se-particle-beam-shielding-data", {name="tungsten-plate", amount=1, probability=0.20})

View file

@ -1,4 +1,4 @@
-- Lead smelting -- Tungsten smelting
local util = require("__bztungsten__.tungsten-util"); local util = require("__bztungsten__.tungsten-util");
@ -155,6 +155,12 @@ data:extend({
}, },
}) })
local nozzle_i = {{"tungsten-plate", 2}}
if mods.bzzirconium then
table.insert(nozzle_i, {"zirconium-plate", 1})
end
data:extend({ data:extend({
{ {
type = "item", type = "item",
@ -174,20 +180,11 @@ data:extend({
icons = { icons = {
{ icon = "__bztungsten__/graphics/icons/rocket-engine-nozzle.png", icon_size = 128} { icon = "__bztungsten__/graphics/icons/rocket-engine-nozzle.png", icon_size = 128}
}, },
normal = enabled = false,
{ energy_required = 5 * #nozzle_i,
enabled = false, ingredients = nozzle_i,
energy_required = 5, result = "rocket-engine-nozzle",
ingredients = {{"tungsten-plate", 2}}, result_count = #nozzle_i
result = "rocket-engine-nozzle",
},
expensive =
{
enabled = false,
energy_required = 5,
ingredients = {{"tungsten-plate", 3}},
result = "rocket-engine-nozzle",
}
} }
}) })