diff --git a/lignumis/prototypes/content/steam-assembling-machine.lua b/lignumis/prototypes/content/steam-assembling-machine.lua index 24b79b2..21d1742 100644 --- a/lignumis/prototypes/content/steam-assembling-machine.lua +++ b/lignumis/prototypes/content/steam-assembling-machine.lua @@ -20,7 +20,7 @@ assembling_machine.crafting_categories = { "basic-crafting", "organic-or-assembling", "wood-processing-or-assembling", - "crafting-with-fluid" + "crafting-with-steam" } assembling_machine.crafting_speed = 0.5 assembling_machine.energy_usage = "25kW" @@ -56,6 +56,10 @@ remnants.animation[3].filename = gfx .. "steam-assembling-machine-remnants.png" remnants.order = "1[steam-assembling-machine]" data:extend({ + { + type = "recipe-category", + name = "crafting-with-steam" + }, assembling_machine, remnants, { diff --git a/lignumis/prototypes/content/steam-science.lua b/lignumis/prototypes/content/steam-science.lua index 83779a4..7409ca8 100644 --- a/lignumis/prototypes/content/steam-science.lua +++ b/lignumis/prototypes/content/steam-science.lua @@ -1,5 +1,6 @@ local item_tints = require("__base__.prototypes.item-tints") local item_sounds = require("__base__.prototypes.item_sounds") +local Technology = require("__cf-lib__/data/Technology") data:extend({ { @@ -25,12 +26,29 @@ data:extend({ { type = "recipe", name = "steam-science-pack", + category = "crafting-with-steam", + enabled = false, + energy_required = 20, + ingredients = { + { type = "item", name = "gold-plate", amount = 2 } + }, + results = { { type = "item", name = "steam-science-pack", amount = 2 } }, + crafting_machine_tint = { + primary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, + secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, + }, + allow_productivity = true + }, + { + type = "recipe", + name = "steam-science-pack-steam", + localised_name = { "item-name.steam-science-pack" }, category = "crafting-with-fluid", enabled = false, energy_required = 20, ingredients = { { type = "item", name = "gold-plate", amount = 2 }, - { type = "fluid", name = "steam", amount = 10 } + { type = "fluid", name = "steam", amount = 20 } }, results = { { type = "item", name = "steam-science-pack", amount = 2 } }, crafting_machine_tint = { @@ -59,3 +77,5 @@ data:extend({ } } }) + +Technology:new("automation-2"):addRecipe("steam-science-pack-steam") \ No newline at end of file