se proc unit

This commit is contained in:
Brevven 2023-03-11 01:11:59 -08:00
parent bcfe13e25a
commit 1d186d09a4
3 changed files with 75 additions and 5 deletions

View file

@ -2,6 +2,7 @@ local util = require("data-util");
if not mods.bobelectronics then
data:extend({
{
type = "item",
@ -23,12 +24,50 @@ if not mods.bobelectronics then
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
util.add_ingredient("mainboard", "temperature-sensor", 10, {"force", true})
end
if util.me.palladium() then
util.add_ingredient("mainboard", "mlcc", 10, {"force", true})
end
else
util.remove_ingredient("superior-circuit-board", "copper-plate")
util.remove_ingredient("superior-circuit-board", "tin-plate")