From 96b685a222de9557fc776bca965cbfcd463560e4 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 25 Jun 2025 00:39:08 +0200 Subject: [PATCH] Add Lignumis recipe for processing unit --- lignumis/locale/en/strings.cfg | 1 + .../prototypes/content/mid-game-recipes.lua | 32 +++++++++++++++++-- .../content/steam-assembling-machine.lua | 2 +- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index a2409a1..45d7b68 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -107,6 +107,7 @@ nutrients-from-wood-pulp=Nutrients from wood pulp active-noise-cancelling=Active noise cancelling casting-gold=Casting gold gold-ore-crushing=Gold ore crushing +processing-unit-gold=Processing unit (gold) [recipe-description] moist-stromatolite-remnant-desiccation-without-steam=Used for balancing the production of steam. diff --git a/lignumis/prototypes/content/mid-game-recipes.lua b/lignumis/prototypes/content/mid-game-recipes.lua index 7344436..bf57604 100644 --- a/lignumis/prototypes/content/mid-game-recipes.lua +++ b/lignumis/prototypes/content/mid-game-recipes.lua @@ -167,7 +167,7 @@ data:extend({ allow_productivity = true, icons = { { icon = "__base__/graphics/icons/low-density-structure.png" }, - { icon = Lignumis.graphics .. "icons/gold-plate.png", scale = 0.25, shift = { 8, 8 } } + { icon = Lignumis.graphics .. "icons/gold-plate.png", scale = 0.25, shift = { 8, 8 } } } }, { @@ -216,6 +216,34 @@ data:extend({ } }) +if settings.startup["lignumis-basic-circuit-board"].value then + data:extend({ + { + type = "recipe", + name = "processing-unit-gold", + category = "crafting-with-steam", + additional_categories = { "electromagnetics" }, + enabled = false, + auto_recycle = false, + energy_required = 10, + ingredients = + { + { type = "item", name = "basic-circuit-board", amount = 20 }, + { type = "item", name = "gold-cable", amount = 8 }, + { type = "item", name = "plastic-bar", amount = 3 }, + { type = "fluid", name = "wood-pulp", amount = 5 } + }, + results = { { type = "item", name = "processing-unit", amount = 1 } }, + allow_productivity = true, + icons = { + { icon = "__base__/graphics/icons/processing-unit.png" }, + { icon = Lignumis.graphics .. "icons/gold-cable.png", scale = 0.25, shift = { 8, 8 } } + } + } + }) + Technology:new("processing-unit"):addRecipe("processing-unit-gold") +end + local plastics = Technology:new("plastics") plastics:addRecipe("cupriavidus-necator-starter") plastics:addRecipe("cupriavidus-necator") @@ -255,4 +283,4 @@ rocket_fuel_productivity:addEffect({ type = "change-recipe-productivity", recipe = "rocket-fuel-from-wood-pulp-and-peat", change = 0.1 -}) \ No newline at end of file +}) diff --git a/lignumis/prototypes/content/steam-assembling-machine.lua b/lignumis/prototypes/content/steam-assembling-machine.lua index 2a6322c..2a6871e 100644 --- a/lignumis/prototypes/content/steam-assembling-machine.lua +++ b/lignumis/prototypes/content/steam-assembling-machine.lua @@ -9,7 +9,7 @@ assembling_machine.name = "steam-assembling-machine" assembling_machine.icons = { { icon = Lignumis.graphics .. "icons/steam-assembling-machine.png", icon_size = 64 } } assembling_machine.minable.result = "steam-assembling-machine" assembling_machine.next_upgrade = "assembling-machine-1" -assembling_machine.module_slots = nil +assembling_machine.module_slots = 2 assembling_machine.corpses = "steam-assembling-machine-remnants" assembling_machine.resistances = nil assembling_machine.graphics_set = table.deepcopy(data.raw["assembling-machine"]["assembling-machine-1"].graphics_set)