Add alternative recipes for steam assembler and inserters

This commit is contained in:
Simon Brodtmann 2026-01-18 16:21:40 +01:00
parent 13014aaf46
commit 67c25877e4
2 changed files with 58 additions and 1 deletions

View file

@ -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")

View file

@ -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")
:addRecipe("steam-long-handed-inserter")
Technology:new("iron-processing")
:addRecipe("steam-inserter-iron")
:addRecipe("steam-long-handed-inserter-iron")