MDbobelectronics/MDbobelectronics2/data-updates.lua
2025-10-05 15:49:28 +02:00

32 lines
No EOL
1.3 KiB
Lua

require("prototypes.recipe-updates")
require("prototypes.technology-updates")
require("prototypes.productivity-limitations")
data.raw.recipe["copper-cable"].category = "electronics"
if data.raw.technology["rocket-control-unit"] then
data.raw.recipe["rocket-control-unit"].category = "electronics"
end
if data.raw["recipe-category"]["chemical-furnace"] then
if data.raw.recipe["carbon"] then
data.raw.recipe["carbon"].category = "chemical-furnace"
end
end
if data.raw["recipe-category"]["mixing-furnace"] then
if data.raw.recipe["solder-alloy"] then
data.raw.recipe["solder-alloy"].category = "mixing-furnace"
end
if data.raw.recipe["solder-alloy-lead"] then
data.raw.recipe["solder-alloy-lead"].category = "mixing-furnace"
end
end
-- add Assembling Machine catagory.
bobmods.lib.machine.type_if_add_category("assembling-machine", "crafting", "crafting-machine")
-- add new electronics crafting categories
bobmods.lib.machine.type_if_add_category("character", "crafting", "electronics")
bobmods.lib.machine.type_if_add_category("god-controller", "crafting", "electronics")
bobmods.lib.machine.type_if_add_category("assembling-machine", "crafting", "electronics")
bobmods.lib.machine.type_if_add_category("assembling-machine", "crafting", "electronics-machine")