diff --git a/prototypes/cpu.lua b/prototypes/cpu.lua index 5337a7d..d738553 100644 --- a/prototypes/cpu.lua +++ b/prototypes/cpu.lua @@ -21,14 +21,39 @@ data:extend({ enabled = false, energy_required = 50, ingredients = { - silicon, - spreader, - {"gold-ingot", 1}, - {"electronic-circuit", 10}, + silicon, spreader, {"gold-ingot", 1}, {"electronic-circuit", 10}, {type="fluid", name="sulfuric-acid", amount=50}, }, 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 diff --git a/prototypes/mainboard.lua b/prototypes/mainboard.lua index 1053e3c..115ba3c 100644 --- a/prototypes/mainboard.lua +++ b/prototypes/mainboard.lua @@ -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") diff --git a/prototypes/processing-unit-updates.lua b/prototypes/processing-unit-updates.lua index f0ec8a3..f0b3bdb 100644 --- a/prototypes/processing-unit-updates.lua +++ b/prototypes/processing-unit-updates.lua @@ -8,3 +8,9 @@ util.remove_ingredient("processing-unit", "advanced-circuit") util.add_ingredient("processing-unit", "cpu", 1) util.set_recipe_time("processing-unit", 4) 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")