diff --git a/lignumis/prototypes/content/steam-assembling-machine.lua b/lignumis/prototypes/content/steam-assembling-machine.lua index 5425ee6..4e05845 100644 --- a/lignumis/prototypes/content/steam-assembling-machine.lua +++ b/lignumis/prototypes/content/steam-assembling-machine.lua @@ -1,6 +1,7 @@ local item_sounds = require("__base__.prototypes.item_sounds") local pipecovers = require("prototypes/content/gold/pipecovers") local machinepipes = require("prototypes/content/gold/machinepipes") +local Technology = require("__cf-lib__/data/Technology") local gfx = Lignumis.graphics .. "entity/steam-assembling-machine/" @@ -90,6 +91,23 @@ data:extend({ results = { { type = "item", name = "steam-assembling-machine", amount = 1 } }, energy_required = 8 }, + { + type = "recipe", + name = "steam-assembling-machine-iron", + localised_name = { "entity-name.steam-assembling-machine" }, + enabled = false, + icons = { + { icon = Lignumis.graphics .. "icons/steam-assembling-machine.png" }, + { icon = "__base__/graphics/icons/iron-plate.png", scale = 0.25, shift = { 8, 8 } } + }, + ingredients = { + { type = "item", name = "burner-assembling-machine", amount = 1 }, + { type = "item", name = "pipe", amount = 5 } + }, + results = { { type = "item", name = "steam-assembling-machine", amount = 1 } }, + energy_required = 8, + auto_recycle = false + }, { type = "technology", name = "steam-automation", @@ -110,3 +128,5 @@ data:extend({ ignore_tech_cost_multiplier = false } }) + +Technology:new("iron-processing"):addRecipe("steam-assembling-machine-iron") \ No newline at end of file diff --git a/lignumis/prototypes/content/steam-inserters.lua b/lignumis/prototypes/content/steam-inserters.lua index b88552b..b2f5d52 100644 --- a/lignumis/prototypes/content/steam-inserters.lua +++ b/lignumis/prototypes/content/steam-inserters.lua @@ -55,6 +55,11 @@ long_handed_inserter.icon_draw_specification = { render_layer = "entity-info-icon-above", } +inserter_iron_icons = table.deepcopy(inserter.icons) +table.insert(inserter_iron_icons, { icon = "__base__/graphics/icons/iron-plate.png", scale = 0.25, shift = { 8, 8 } }) +long_handed_inserter_iron_icons = table.deepcopy(long_handed_inserter.icons) +table.insert(long_handed_inserter_iron_icons, { icon = "__base__/graphics/icons/iron-plate.png", scale = 0.25, shift = { 8, 8 } }) + data:extend({ inserter, long_handed_inserter, @@ -83,6 +88,20 @@ data:extend({ }, results = { { type = "item", name = "steam-inserter", amount = 1 } } }, + { + type = "recipe", + name = "steam-inserter-iron", + localised_name = { "entity-name.steam-inserter" }, + category = "crafting", + enabled = false, + icons = inserter_iron_icons, + ingredients = { + { type = "item", name = "pipe", amount = 2 }, + { type = "item", name = "burner-inserter", amount = 1 } + }, + results = { { type = "item", name = "steam-inserter", amount = 1 } }, + auto_recycle = false + }, { type = "item", name = "steam-long-handed-inserter", @@ -107,9 +126,27 @@ data:extend({ { type = "item", name = "burner-long-handed-inserter", amount = 1 } }, results = { { type = "item", name = "steam-long-handed-inserter", amount = 1 } } + }, + { + type = "recipe", + name = "steam-long-handed-inserter-iron", + localised_name = { "entity-name.steam-long-handed-inserter" }, + category = "crafting", + enabled = false, + icons = long_handed_inserter_iron_icons, + ingredients = { + { type = "item", name = "pipe", amount = 2 }, + { type = "item", name = "burner-long-handed-inserter", amount = 1 } + }, + results = { { type = "item", name = "steam-long-handed-inserter", amount = 1 } }, + auto_recycle = false } }) Technology:new("steam-automation") :addRecipe("steam-inserter") - :addRecipe("steam-long-handed-inserter") \ No newline at end of file + :addRecipe("steam-long-handed-inserter") + +Technology:new("iron-processing") + :addRecipe("steam-inserter-iron") + :addRecipe("steam-long-handed-inserter-iron") \ No newline at end of file