advanced-electronic-components is only added if either MDbobelectronics2 or ThemTharHills-Updated is active

This commit is contained in:
Simon Brodtmann 2026-01-28 23:23:29 +01:00
parent 8f09f25c61
commit 3f2c03d598
2 changed files with 25 additions and 23 deletions

View file

@ -17,6 +17,7 @@ if mods["Krastorio2"] then
elseif mods["MDbobelectronics2"] then
electronic_ingredients = {{type="item", name="kr-electronic-components", amount=1}, {type="item", name="intergrated-electronics", amount=2}, {type="item", name="processing-electronics", amount=1}}
end
if mods["MDbobelectronics2"] or mods["ThemTharHills-Updated"] then
data:extend({
{
type = "item",
@ -39,6 +40,7 @@ if mods["Krastorio2"] then
results = {{type="item", name="advanced-electronic-components", amount=2}},
}
})
end
if mods["248k-Redux"] then
data:extend({
{

View file

@ -143,7 +143,7 @@ if mods["bobassembly"] then
end
--electronics
if (mods["MDbobelectronics2"] and mods["Krastorio2"]) or false then
if mods["MDbobelectronics2"] and mods["Krastorio2"] then
util.replace_ingredient("kr-electronic-components", "plastic-bar", "basic-electronic-components")
util.replace_ingredient("kr-electronic-components", mods["Krastorio2"] and "kr-glass" or "glass", "BOBMD-electronic-components")
util.remove_ingredient("kr-electronic-components", "silicon-wafer")