se proc unit
This commit is contained in:
parent
bcfe13e25a
commit
1d186d09a4
3 changed files with 75 additions and 5 deletions
|
|
@ -21,14 +21,39 @@ data:extend({
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 50,
|
energy_required = 50,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
silicon,
|
silicon, spreader, {"gold-ingot", 1}, {"electronic-circuit", 10},
|
||||||
spreader,
|
|
||||||
{"gold-ingot", 1},
|
|
||||||
{"electronic-circuit", 10},
|
|
||||||
{type="fluid", name="sulfuric-acid", amount=50},
|
{type="fluid", name="sulfuric-acid", amount=50},
|
||||||
},
|
},
|
||||||
results = {{"cpu", 10}},
|
results = {{"cpu", 10}},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
util.replace_ingredient("cpu", "electronic-circuit", "pcb", 10, false, {"force", true})
|
if mods["space-exploration"] then
|
||||||
|
local cpui = {}
|
||||||
|
if mods.Krastorio2 then
|
||||||
|
cpui = {{"se-holmium-cable", 2}, silicon, spreader, {"electronic-circuit", 20}, {"gold-ingot", 1},
|
||||||
|
{type="fluid", name="sulfuric-acid", amount=50}}
|
||||||
|
else
|
||||||
|
cpui = {{"se-holmium-cable", 1}, silicon, spreader, {"electronic-circuit", 20}, {"gold-ingot", 1},
|
||||||
|
{type="fluid", name="sulfuric-acid", amount=50}}
|
||||||
|
end
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "cpu-holmium",
|
||||||
|
icons = {
|
||||||
|
{ icon = "__base__/graphics/technology/advanced-electronics-2.png", icon_size = 256, },
|
||||||
|
{ icon = "__space-exploration-graphics__/graphics/icons/holmium-solenoid.png", icon_size = 64, scale=.25, shift={-8, -8} },
|
||||||
|
},
|
||||||
|
category = "crafting-with-fluid",
|
||||||
|
order = "d[cpu]",
|
||||||
|
enabled = false,
|
||||||
|
energy_required = 50,
|
||||||
|
ingredients = cpui,
|
||||||
|
results = {{"cpu", 20}},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
util.replace_ingredient("cpu", "electronic-circuit", "pcb", 10, false, {"force", true})
|
||||||
|
util.replace_ingredient("cpu-holmium", "electronic-circuit", "pcb", 20, false, {"force", true})
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ local util = require("data-util");
|
||||||
|
|
||||||
|
|
||||||
if not mods.bobelectronics then
|
if not mods.bobelectronics then
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "item",
|
type = "item",
|
||||||
|
|
@ -23,12 +24,50 @@ if not mods.bobelectronics then
|
||||||
results = {{"mainboard", 10}},
|
results = {{"mainboard", 10}},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if mods["space-exploration"] then
|
||||||
|
if mods.Krastorio2 then
|
||||||
|
mbi = {{"se-holmium-cable", 4}, {"advanced-circuit", 10}, {"gold-ingot", 1}}
|
||||||
|
mbo = {{"mainboard", 20}}
|
||||||
|
else
|
||||||
|
mbi = {{"se-holmium-cable", 2}, {"advanced-circuit", 10}, {"gold-ingot", 1}}
|
||||||
|
mbo = {{"mainboard", 20}}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if mods["space-exploration"] then
|
||||||
|
local mbo = {}
|
||||||
|
if mods.Krastorio2 then
|
||||||
|
mbo = {{"se-holmium-cable", 2}, {"advanced-circuit", 20}, {"gold-ingot", 1}}
|
||||||
|
else
|
||||||
|
mbo = {{"se-holmium-cable", 1}, {"advanced-circuit", 20}, {"gold-ingot", 1}}
|
||||||
|
end
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "mainboard-holmium",
|
||||||
|
icons = {
|
||||||
|
{ icon = "__bzgold__/graphics/icons/mainboard.png", icon_size = 128 },
|
||||||
|
{ icon = "__space-exploration-graphics__/graphics/icons/holmium-solenoid.png", icon_size = 64, scale=.25, shift={-8, -8} },
|
||||||
|
},
|
||||||
|
category = "crafting-with-fluid",
|
||||||
|
order = "d[mainboard]",
|
||||||
|
enabled = false,
|
||||||
|
energy_required = 5,
|
||||||
|
ingredients = mbo,
|
||||||
|
results = {{"mainboard", 20}},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
if util.me.platinum() then
|
if util.me.platinum() then
|
||||||
util.add_ingredient("mainboard", "temperature-sensor", 10, {"force", true})
|
util.add_ingredient("mainboard", "temperature-sensor", 10, {"force", true})
|
||||||
end
|
end
|
||||||
if util.me.palladium() then
|
if util.me.palladium() then
|
||||||
util.add_ingredient("mainboard", "mlcc", 10, {"force", true})
|
util.add_ingredient("mainboard", "mlcc", 10, {"force", true})
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
util.remove_ingredient("superior-circuit-board", "copper-plate")
|
util.remove_ingredient("superior-circuit-board", "copper-plate")
|
||||||
util.remove_ingredient("superior-circuit-board", "tin-plate")
|
util.remove_ingredient("superior-circuit-board", "tin-plate")
|
||||||
|
|
|
||||||
|
|
@ -8,3 +8,9 @@ util.remove_ingredient("processing-unit", "advanced-circuit")
|
||||||
util.add_ingredient("processing-unit", "cpu", 1)
|
util.add_ingredient("processing-unit", "cpu", 1)
|
||||||
util.set_recipe_time("processing-unit", 4)
|
util.set_recipe_time("processing-unit", 4)
|
||||||
util.add_ingredient("processing-unit", "mainboard", 1)
|
util.add_ingredient("processing-unit", "mainboard", 1)
|
||||||
|
|
||||||
|
|
||||||
|
util.add_unlock("se-processing-unit-holmium", "cpu-holmium")
|
||||||
|
util.add_unlock("se-processing-unit-holmium", "mainboard-holmium")
|
||||||
|
util.remove_recipe_effect("se-processing-unit-holmium", "se-processing-unit-holmium")
|
||||||
|
util.remove_raw("recipe", "se-processing-unit-holmium")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue