advanced-electronic-components is only added if either MDbobelectronics2 or ThemTharHills-Updated is active
This commit is contained in:
parent
8f09f25c61
commit
3f2c03d598
2 changed files with 25 additions and 23 deletions
|
|
@ -17,28 +17,30 @@ if mods["Krastorio2"] then
|
||||||
elseif mods["MDbobelectronics2"] 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}}
|
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
|
end
|
||||||
data:extend({
|
if mods["MDbobelectronics2"] or mods["ThemTharHills-Updated"] then
|
||||||
{
|
data:extend({
|
||||||
type = "item",
|
{
|
||||||
name = "advanced-electronic-components",
|
type = "item",
|
||||||
icon = "__IntermediatesForYou2__/graphics/icons/advanced-electronic-components.png",
|
name = "advanced-electronic-components",
|
||||||
icon_size = 64,
|
icon = "__IntermediatesForYou2__/graphics/icons/advanced-electronic-components.png",
|
||||||
group = "kr-electronic-components",
|
icon_size = 64,
|
||||||
subgroup = "intermediate-product",
|
group = "kr-electronic-components",
|
||||||
order = "e03",
|
subgroup = "intermediate-product",
|
||||||
stack_size = 100,
|
order = "e03",
|
||||||
},
|
stack_size = 100,
|
||||||
{
|
},
|
||||||
type = "recipe",
|
{
|
||||||
name = "advanced-electronic-components",
|
type = "recipe",
|
||||||
category = "crafting",
|
name = "advanced-electronic-components",
|
||||||
order = "e03",
|
category = "crafting",
|
||||||
enabled = false,
|
order = "e03",
|
||||||
energy_required = 4,
|
enabled = false,
|
||||||
ingredients = electronic_ingredients,
|
energy_required = 4,
|
||||||
results = {{type="item", name="advanced-electronic-components", amount=2}},
|
ingredients = electronic_ingredients,
|
||||||
}
|
results = {{type="item", name="advanced-electronic-components", amount=2}},
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
if mods["248k-Redux"] then
|
if mods["248k-Redux"] then
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ if mods["bobassembly"] then
|
||||||
end
|
end
|
||||||
|
|
||||||
--electronics
|
--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", "plastic-bar", "basic-electronic-components")
|
||||||
util.replace_ingredient("kr-electronic-components", mods["Krastorio2"] and "kr-glass" or "glass", "BOBMD-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")
|
util.remove_ingredient("kr-electronic-components", "silicon-wafer")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue