From c992ded011d821d19d50f471d27634d21223e662 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Mon, 6 Jan 2025 15:48:03 +0100 Subject: [PATCH] Add furnace recipe for moist stromatolite remnant --- README.md | 1 - lignumis/changelog.txt | 1 + lignumis/locale/en/strings.cfg | 1 + .../prototypes/content/gold/stromatolite.lua | 40 ++++++++++++++++++- lignumis/prototypes/content/peat.lua | 20 +--------- lignumis/prototypes/content/technology.lua | 4 ++ 6 files changed, 46 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index de16a31..229ea87 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ The following mods can be a great addition for this mod: Sorted by priority -- Add recipe for moist stromatolite remnants for regular furnace - Make mod "Wooden logistics" optional - Improve start on Nauvis - Balance pollution (noise) diff --git a/lignumis/changelog.txt b/lignumis/changelog.txt index 9fec8dd..2e5c1af 100644 --- a/lignumis/changelog.txt +++ b/lignumis/changelog.txt @@ -4,6 +4,7 @@ Date: 06.01.2025 Changes: - The mod "Burner Leech Fork" is removed as a dependency and listed as optional addition in the description - Add "wood fuel" category so burner entities don't use trees, lumber and seeds as fuel + - Add recipe to process moist stromatolite remnant in a normal furnace to balance steam production --------------------------------------------------------------------------------------------------- Version: 0.0.3 Date: 06.01.2025 diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index adc2fbd..8ea2abb 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -57,6 +57,7 @@ wood-pulp=Wood pulp [recipe-name] moist-stromatolite-remnant-desiccation=Desiccate moist stromatolite remnant +moist-stromatolite-remnant-desiccation-without-steam=Desiccate moist stromatolite remnant wood-liquefaction=Wood liquefaction provisional-rocket-part=Provisional rocket part diff --git a/lignumis/prototypes/content/gold/stromatolite.lua b/lignumis/prototypes/content/gold/stromatolite.lua index 753f5f3..71a4908 100644 --- a/lignumis/prototypes/content/gold/stromatolite.lua +++ b/lignumis/prototypes/content/gold/stromatolite.lua @@ -231,10 +231,48 @@ local remnant = { weight = 1 * kg } +local desiccation_recipe = { + type = "recipe", + name = "moist-stromatolite-remnant-desiccation", + icons = { + { icon = "__lignumis__/graphics/icons/peat.png" }, + { icon = "__base__/graphics/icons/fluid/steam.png", scale = 0.25, shift = { 8, 8 } }, + { icon = "__lignumis__/graphics/icons/moist-stromatolite-remnant-1.png", scale = 0.25, shift = { -8, 8 } } + }, + category = "desiccation", + subgroup = "raw-material", + order = "b0[desiccation]", + energy_required = 9.6, + ingredients = { { type = "item", name = "moist-stromatolite-remnant", amount = 2 } }, + results = { + { type = "item", name = "peat", amount = 1 }, + { type = "fluid", name = "steam", amount = 20, temperature = 165 } + }, + enabled = false +} + +local desiccation_recipe_no_steam = { + type = "recipe", + name = "moist-stromatolite-remnant-desiccation-without-steam", + icons = { + { icon = "__lignumis__/graphics/icons/peat.png" }, + { icon = "__lignumis__/graphics/icons/moist-stromatolite-remnant-1.png", scale = 0.25, shift = { -8, 8 } } + }, + category = "smelting", + subgroup = "raw-material", + order = "b1[desiccation]", + energy_required = 9.6, + ingredients = { { type = "item", name = "moist-stromatolite-remnant", amount = 2 } }, + results = { { type = "item", name = "peat", amount = 1 } }, + enabled = false +} + data:extend({ stromatolite, plant, seed, bacteria, - remnant + remnant, + desiccation_recipe, + desiccation_recipe_no_steam }) diff --git a/lignumis/prototypes/content/peat.lua b/lignumis/prototypes/content/peat.lua index be52862..2128793 100644 --- a/lignumis/prototypes/content/peat.lua +++ b/lignumis/prototypes/content/peat.lua @@ -1,6 +1,7 @@ local sounds = require("__base__.prototypes.entity.sounds") local resource_autoplace = require("resource-autoplace") local item_sounds = require("__base__.prototypes.item_sounds") +local item_tints = require("__base__.prototypes.item-tints") local grass_driving_sound = { sound = { @@ -84,24 +85,5 @@ data:extend({ random_tint_color = item_tints.iron_rust, fuel_category = "chemical", fuel_value = "8MJ", - }, - { - type = "recipe", - name = "moist-stromatolite-remnant-desiccation", - icons = { - { icon = "__lignumis__/graphics/icons/peat.png" }, - { icon = "__base__/graphics/icons/fluid/steam.png", scale = 0.25, shift = { 8, 8 } }, - { icon = "__lignumis__/graphics/icons/moist-stromatolite-remnant-1.png", scale = 0.25, shift = { -8, 8 } } - }, - category = "desiccation", - subgroup = "raw-material", - order = "b[desiccation]", - energy_required = 9.6, - ingredients = { { type = "item", name = "moist-stromatolite-remnant", amount = 2 } }, - results = { - { type = "item", name = "peat", amount = 1 }, - { type = "fluid", name = "steam", amount = 20, temperature = 165 } - }, - enabled = false } }) \ No newline at end of file diff --git a/lignumis/prototypes/content/technology.lua b/lignumis/prototypes/content/technology.lua index 4c71b83..a4b573b 100644 --- a/lignumis/prototypes/content/technology.lua +++ b/lignumis/prototypes/content/technology.lua @@ -113,6 +113,10 @@ data:extend({ { type = "unlock-recipe", recipe = "moist-stromatolite-remnant-desiccation" + }, + { + type = "unlock-recipe", + recipe = "moist-stromatolite-remnant-desiccation-without-steam" } }, unit = {