Add missing ingredient types + compatibility fixes

This commit is contained in:
Simon Brodtmann 2025-10-13 16:03:05 +02:00
parent 486c3e6879
commit d2e31668a7
4 changed files with 8 additions and 8 deletions

View file

@ -73,5 +73,5 @@ data:extend({
}) })
if mods["Krastorio2"] then if mods["Krastorio2"] then
util.add_product("kr-enriched-copper", { name = "indite-ore", amount = 1, probability = 0.09 }) util.add_product("kr-enriched-copper", { type = "item", name = "indite-ore", amount = 1, probability = 0.09 })
end end

View file

@ -176,9 +176,9 @@ if mods["BrassTacks-Updated"] and data.raw.item["airtight-seal"]then
util.add_productivity("indium-airtight-seal") util.add_productivity("indium-airtight-seal")
end end
local blank_advanced_tech_card_ingredients = {(data.raw.item["blank-tech-card"] and {type="item", name="blank-tech-card", amount=2}) or {type="item", name="steel-plate", amount=2},(data.raw.item["glass"] and {type="item", name="glass", amount=5}) or {type="item", name="copper-cable", amount=5}, {type="item", name="indium-solder", amount=2}, (data.raw.item["el_energy_crystal_item"] and {type="item", name="el_energy_crystal_item", amount=1}) or {type="item", name="battery", amount=1}} local blank_advanced_tech_card_ingredients = {(data.raw.item["kr-blank-tech-card"] and {type="item", name="kr-blank-tech-card", amount=2}) or {type="item", name="steel-plate", amount=2},(data.raw.item[mods["Krastorio2"] and "kr-glass" or "glass"] and {type="item", name=mods["Krastorio2"] and "kr-glass" or "glass", amount=5}) or {type="item", name="copper-cable", amount=5}, {type="item", name="indium-solder", amount=2}, (data.raw.item["el_energy_crystal_item"] and {type="item", name="el_energy_crystal_item", amount=1}) or {type="item", name="battery", amount=1}}
if mods["bismuth"] then if mods["bismuth"] then
blank_advanced_tech_card_ingredients = {(data.raw.item["blank-tech-card"] and {type="item", name="blank-tech-card", amount=2}) or {type="item", name="steel-plate", amount=2}, {type="item", name="bismuth-glass", amount=4}, {type="item", name="indium-solder", amount=2}, (data.raw.item["el_energy_crystal_item"] and {type="item", name="el_energy_crystal_item", amount=1}) or {type="item", name="battery", amount=1}} blank_advanced_tech_card_ingredients = {(data.raw.item["kr-blank-tech-card"] and {type="item", name="kr-blank-tech-card", amount=2}) or {type="item", name="steel-plate", amount=2}, {type="item", name="bismuth-glass", amount=4}, {type="item", name="indium-solder", amount=2}, (data.raw.item["el_energy_crystal_item"] and {type="item", name="el_energy_crystal_item", amount=1}) or {type="item", name="battery", amount=1}}
end end
data:extend({ data:extend({

View file

@ -1,19 +1,19 @@
local util = require("data-util") local util = require("data-util")
util.remove_ingredient("chemical-science-pack", "blank-tech-card") util.remove_ingredient("chemical-science-pack", "kr-blank-tech-card")
util.remove_ingredient("chemical-science-pack", "bismuth-glass") util.remove_ingredient("chemical-science-pack", "bismuth-glass")
util.remove_ingredient("chemical-science-pack", "el_energy_crystal_item") util.remove_ingredient("chemical-science-pack", "el_energy_crystal_item")
util.add_ingredient("chemical-science-pack", "blank-advanced-tech-card", 5) util.add_ingredient("chemical-science-pack", "blank-advanced-tech-card", 5)
if mods["space-exploration"] then if mods["space-exploration"] then
util.remove_ingredient("se-rocket-science-pack", "blank-tech-card") util.remove_ingredient("se-rocket-science-pack", "kr-blank-tech-card")
util.add_ingredient("se-rocket-science-pack", "blank-advanced-tech-card", 8) util.add_ingredient("se-rocket-science-pack", "blank-advanced-tech-card", 8)
util.add_product("se-core-fragment-omni",{ type = "item", name = "indite-ore", amount = 3 }) util.add_product("se-core-fragment-omni",{ type = "item", name = "indite-ore", amount = 3 })
end end
if mods["BrassTacks-Updated"] and mods["Krastorio2"] then if mods["BrassTacks-Updated"] and mods["Krastorio2"] then
util.set_main_product("enriched-zinc", "enriched-zinc") util.set_main_product("enriched-zinc", "enriched-zinc")
util.add_product("enriched-zinc", {name="indite-ore", amount=1}) util.add_product("enriched-zinc", { type = "item", name = "indite-ore", amount=1})
util.set_main_product("zinc-plate", "zinc-plate") util.set_main_product("zinc-plate", "zinc-plate")
util.add_product("zinc-plate", {name="indium-plate", amount=1, probability=0.1}) util.add_product("zinc-plate", {type = "item", name="indium-plate", amount=1, probability=0.1})
end end

View file

@ -11,7 +11,7 @@ if mods["IfNickel-Updated"] then
end end
if mods["space-exploration"] then if mods["space-exploration"] then
util.add_product(mods["space-exploration"] and "se-scrap-recycling", {name="indite-ore", amount=1, probability=0.05}) util.add_product(mods["space-exploration"] and "se-scrap-recycling", { type = "item", name = "indite-ore", amount=1, probability=0.05})
util.remove_ingredient("se-space-pipe-to-ground", "lead-plate") util.remove_ingredient("se-space-pipe-to-ground", "lead-plate")
util.remove_ingredient("se-space-pipe-to-ground", "tin-plate") util.remove_ingredient("se-space-pipe-to-ground", "tin-plate")