From 5defab4c15c63edb378f3237ab7428f06ad091e5 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Thu, 9 Jan 2025 22:55:47 +0100 Subject: [PATCH] Balance start on Nauvis --- lignumis/changelog.txt | 5 ++- lignumis/locale/en/strings.cfg | 3 ++ .../content/burner-agricultural-tower.lua | 44 +++++++++++++++---- lignumis/prototypes/content/lumber-mill.lua | 26 ++++++++++- .../prototypes/content/wood-logistics.lua | 37 +++++++++++++--- .../prototypes/content/wooden-gearwheel.lua | 2 +- lignumis/prototypes/integrations/vanilla.lua | 1 + 7 files changed, 100 insertions(+), 18 deletions(-) diff --git a/lignumis/changelog.txt b/lignumis/changelog.txt index bdacb05..bfaf999 100644 --- a/lignumis/changelog.txt +++ b/lignumis/changelog.txt @@ -1,9 +1,12 @@ --------------------------------------------------------------------------------------------------- Version: 0.0.6 -Date: 08.01.2025 +Date: 09.01.2025 Changes: - Remove temporary incompatibility with wood-logistics - Add basic radar + - Balance peat resource patches + - Increase fuel value of wood pulp + - Balance start on Nauvis --------------------------------------------------------------------------------------------------- Version: 0.0.5 Date: 07.01.2025 diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index f67bc23..e181cd0 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -67,6 +67,9 @@ moist-stromatolite-remnant-desiccation-without-steam=Desiccate moist stromatolit gold-stromatolite-seed-to-peat=Process gold stromatolite seed wood-liquefaction=Wood liquefaction provisional-rocket-part=Provisional rocket part +wood-splitter-electronic-circuit=Wood splitter +lumber-mill-electronic-circuit=Lumber mill +burner-agricultural-tower-electronic-circuit=Burner agricultural tower [recipe-description] moist-stromatolite-remnant-desiccation-without-steam=Used for balancing the production of steam. diff --git a/lignumis/prototypes/content/burner-agricultural-tower.lua b/lignumis/prototypes/content/burner-agricultural-tower.lua index c97bf69..b7cbe5c 100644 --- a/lignumis/prototypes/content/burner-agricultural-tower.lua +++ b/lignumis/prototypes/content/burner-agricultural-tower.lua @@ -6,8 +6,10 @@ agricultural_tower.minable.result = "burner-agricultural-tower" agricultural_tower.next_upgrade = "agricultural-tower" agricultural_tower.corpses = "burner-agricultural-tower-remnants" agricultural_tower.icon = "__lignumis__/graphics/icons/burner-agricultural-tower.png" -agricultural_tower.graphics_set.animation.layers[1].filename = "__lignumis__/graphics/entity/burner-agricultural-tower-base.png" -agricultural_tower.graphics_set.working_visualisations[1].animation.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-base.png" +agricultural_tower.graphics_set.animation.layers[1].filename = +"__lignumis__/graphics/entity/burner-agricultural-tower-base.png" +agricultural_tower.graphics_set.working_visualisations[1].animation.filename = +"__lignumis__/graphics/entity/burner-agricultural-tower-base.png" agricultural_tower.energy_source = { type = "burner", fuel_categories = { "chemical" }, @@ -21,12 +23,15 @@ agricultural_tower.output_inventory_size = 4 agricultural_tower.radius = 2 local crane = agricultural_tower.crane -crane.parts[1].rotated_sprite.filenames = { "__lignumis__/graphics/entity/burner-agricultural-tower-crane-1-1.png", "__lignumis__/graphics/entity/burner-agricultural-tower-crane-1-2.png" } +crane.parts[1].rotated_sprite.filenames = { "__lignumis__/graphics/entity/burner-agricultural-tower-crane-1-1.png", + "__lignumis__/graphics/entity/burner-agricultural-tower-crane-1-2.png" } crane.parts[2].rotated_sprite.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-crane-3.png" crane.parts[3].rotated_sprite.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-crane-4.png" -crane.parts[4].rotated_sprite.filenames = { "__lignumis__/graphics/entity/burner-agricultural-tower-crane-5-1.png", "__lignumis__/graphics/entity/burner-agricultural-tower-crane-5-2.png" } +crane.parts[4].rotated_sprite.filenames = { "__lignumis__/graphics/entity/burner-agricultural-tower-crane-5-1.png", + "__lignumis__/graphics/entity/burner-agricultural-tower-crane-5-2.png" } crane.parts[5].rotated_sprite.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-crane-6.png" -crane.parts[6].rotated_sprite.filenames = { "__lignumis__/graphics/entity/burner-agricultural-tower-crane-7-1.png", "__lignumis__/graphics/entity/burner-agricultural-tower-crane-7-2.png" } +crane.parts[6].rotated_sprite.filenames = { "__lignumis__/graphics/entity/burner-agricultural-tower-crane-7-1.png", + "__lignumis__/graphics/entity/burner-agricultural-tower-crane-7-2.png" } crane.parts[7].rotated_sprite.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-crane-8.png" crane.parts[8].sprite.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-crane-9.png" crane.parts[9].sprite.filename = "__lignumis__/graphics/entity/burner-agricultural-tower-crane-10.png" @@ -70,9 +75,27 @@ data:extend({ name = "burner-agricultural-tower", energy_required = 10, ingredients = { - { type = "item", name = "stone-brick", amount = 5 }, + { type = "item", name = "stone-brick", amount = 5 }, { type = "item", name = "wooden-gear-wheel", amount = 20 }, - { type = "item", name = "lumber", amount = 20 } + { type = "item", name = "lumber", amount = 20 }, + { type = "item", name = "gold-plate", amount = 20 } + }, + results = { { type = "item", name = "burner-agricultural-tower", amount = 1 } }, + enabled = false + }, + { + type = "recipe", + name = "burner-agricultural-tower-electronic-circuit", + icons = { + { icon = "__lignumis__/graphics/icons/burner-agricultural-tower.png" }, + { icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } } + }, + energy_required = 10, + ingredients = { + { type = "item", name = "stone-brick", amount = 5 }, + { type = "item", name = "wooden-gear-wheel", amount = 20 }, + { type = "item", name = "lumber", amount = 20 }, + { type = "item", name = "electronic-circuit", amount = 10 } }, results = { { type = "item", name = "burner-agricultural-tower", amount = 1 } }, enabled = false @@ -90,4 +113,9 @@ tech.unit = { time = 10 } -data.raw.technology["fish-breeding"].prerequisites = { "agricultural-science-pack" } \ No newline at end of file +data.raw.technology["fish-breeding"].prerequisites = { "agricultural-science-pack" } + +table.insert(data.raw.technology["electronics"].effects, { + type = "unlock-recipe", + recipe = "burner-agricultural-tower-electronic-circuit" +}) \ No newline at end of file diff --git a/lignumis/prototypes/content/lumber-mill.lua b/lignumis/prototypes/content/lumber-mill.lua index c84e0f8..3d328b5 100644 --- a/lignumis/prototypes/content/lumber-mill.lua +++ b/lignumis/prototypes/content/lumber-mill.lua @@ -19,7 +19,7 @@ LumberMill.EntityBuilder:new() energy_usage = "1000kW", }) -LumberMill.ItemBuilder:new() +local lumber_mill_item = LumberMill.ItemBuilder:new() :apply({ default_import_location = "lignumis" }) @@ -41,4 +41,26 @@ LumberMill.TechnologyBuilder:new() :count(250) :time(15) :ingredients({ { "wood-science-pack", 1 }, { "steam-science-pack", 1 } }) - :apply() \ No newline at end of file + :apply() + +LumberMill.RecipeBuilder:new() + :ingredients({ + { type = "item", name = "stone-brick", amount = 40 }, + { type = "item", name = "lumber", amount = 50 }, + { type = "item", name = "iron-gear-wheel", amount = 50 }, + { type = "item", name = "electronic-circuit", amount = 20 }, + { type = "item", name = "assembling-machine-1", amount = 2 } + }) + :apply({ + name = "lumber-mill-electronic-circuit", + category = "wood-processing-or-assembling", + icons = { + { icon = lumber_mill_item.icon }, + { icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } } + } + }) + +table.insert(data.raw.technology["electronics"].effects, { + type = "unlock-recipe", + recipe = "lumber-mill-electronic-circuit" +}) diff --git a/lignumis/prototypes/content/wood-logistics.lua b/lignumis/prototypes/content/wood-logistics.lua index ea695b0..2fa41ae 100644 --- a/lignumis/prototypes/content/wood-logistics.lua +++ b/lignumis/prototypes/content/wood-logistics.lua @@ -18,24 +18,25 @@ Belt.EntityBuilder:new() } }) -Belt.ItemBuilder:new() +local splitter_item = Belt.ItemBuilder:new() :order("0") :apply() + .splitter Belt.RecipeBuilder:new() :beltAmount(2) :ingredients("transportBelt", { - { type = "item", name = "lumber", amount = 1 }, + { type = "item", name = "lumber", amount = 1 }, { type = "item", name = "wooden-gear-wheel", amount = 1 } }) :ingredients("undergroundBelt", { - { type = "item", name = "lumber", amount = 1 }, + { type = "item", name = "lumber", amount = 1 }, { type = "item", name = "wood-transport-belt", amount = 4 }, }) :ingredients("splitter", { - { type = "item", name = "lumber", amount = 2 }, - { type = "item", name = "wooden-gear-wheel", amount = 5 }, { type = "item", name = "wood-transport-belt", amount = 2 }, + { type = "item", name = "lumber", amount = 2 }, + { type = "item", name = "gold-cable", amount = 10 } }) :apply() @@ -44,4 +45,28 @@ Belt.TechnologyBuilder:new() :ingredients({ { "wood-science-pack", 1 } }) :count(10) :time(10) - :apply() \ No newline at end of file + :apply() + +data:extend({ + Belt.RecipeBuilder:new() + :ingredients("splitter", { + { type = "item", name = "wood-transport-belt", amount = 2 }, + { type = "item", name = "lumber", amount = 2 }, + { type = "item", name = "electronic-circuit", amount = 2 } + }) + :build({ + splitter = { + name = "wood-splitter-electronic-circuit", + icons = { + { icon = splitter_item.icon }, + { icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } } + } + } + }) + .splitter +}) + +table.insert(data.raw.technology["electronics"].effects, { + type = "unlock-recipe", + recipe = "wood-splitter-electronic-circuit" +}) diff --git a/lignumis/prototypes/content/wooden-gearwheel.lua b/lignumis/prototypes/content/wooden-gearwheel.lua index 96d89cc..1216a01 100644 --- a/lignumis/prototypes/content/wooden-gearwheel.lua +++ b/lignumis/prototypes/content/wooden-gearwheel.lua @@ -18,7 +18,7 @@ data:extend({ type = "recipe", name = "wooden-gear-wheel", ingredients = { { type = "item", name = "lumber", amount = 1 } }, - results = { { type = "item", name = "wooden-gear-wheel", amount = 1 } }, + results = { { type = "item", name = "wooden-gear-wheel", amount = 2 } }, allow_productivity = true } }) \ No newline at end of file diff --git a/lignumis/prototypes/integrations/vanilla.lua b/lignumis/prototypes/integrations/vanilla.lua index aaeedd8..d0b6990 100644 --- a/lignumis/prototypes/integrations/vanilla.lua +++ b/lignumis/prototypes/integrations/vanilla.lua @@ -74,6 +74,7 @@ tree_plant.minable.results = { { type = "item", name = "wood", amount_min = 4, a tree_plant.minable.count = nil table.insert(data.raw["assembling-machine"]["assembling-machine-1"].crafting_categories, "wood-processing-or-assembling") +table.insert(data.raw["assembling-machine"]["assembling-machine-1"].crafting_categories, "organic-or-assembling") table.insert(data.raw["assembling-machine"]["assembling-machine-2"].crafting_categories, "wood-processing-or-assembling") table.insert(data.raw["assembling-machine"]["assembling-machine-3"].crafting_categories, "wood-processing-or-assembling")