From da4f5270c07118263da98dbbb34ab40e22b56770 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 7 Jan 2025 19:47:25 +0100 Subject: [PATCH] Balance "noise" pollution --- README.md | 3 +-- lignumis/changelog.txt | 1 + .../content/basic-construction-robots.lua | 2 +- .../content/burner-agricultural-tower.lua | 2 +- .../content/burner-assembling-machine.lua | 2 +- lignumis/prototypes/content/deep-miner.lua | 2 +- lignumis/prototypes/content/lumber-mill.lua | 2 +- lignumis/prototypes/content/noise.lua | 14 +++++++++++--- .../content/steam-assembling-machine.lua | 2 +- lignumis/prototypes/content/wood-lab.lua | 2 +- lignumis/prototypes/content/wood-logistics.lua | 4 ++-- lignumis/prototypes/content/wooden-rocket-silo.lua | 2 +- lignumis/prototypes/integrations/Wood-Walls.lua | 2 +- 13 files changed, 24 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 5ec8588..e3e501b 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 -- Balance pollution (noise) - Tweak enemies + warfare (add damage research) - Adjust vanilla technologies - Add end-game stuff @@ -37,11 +36,11 @@ Sorted by priority Unsorted - Integrate [PlanetsLib](https://mods.factorio.com/mod/PlanetsLib) -- Compatibility with hot metals - Compatibility with all wood mods from SafTheLamb - Compatibility with [Amator Phasma's Coal & Steam (forked)](https://mods.factorio.com/mod/apm_power_ldinc) - Compatibility with [Noble Metals](https://mods.factorio.com/mod/bzgold) once it's updated - Optimize images +- Add noise to non-Lignumis entities brought in later ## Credits diff --git a/lignumis/changelog.txt b/lignumis/changelog.txt index 3422d65..e4fbf14 100644 --- a/lignumis/changelog.txt +++ b/lignumis/changelog.txt @@ -6,6 +6,7 @@ Date: 07.01.2025 - Remove gold from burner agricultural tower - Vanilla labs can use Lignumis science packs - Balance technology "Basic construction robotics (copper)" + - Balance "noise" pollution --------------------------------------------------------------------------------------------------- Version: 0.0.4 Date: 06.01.2025 diff --git a/lignumis/prototypes/content/basic-construction-robots.lua b/lignumis/prototypes/content/basic-construction-robots.lua index 0d8ff8c..9cd765a 100644 --- a/lignumis/prototypes/content/basic-construction-robots.lua +++ b/lignumis/prototypes/content/basic-construction-robots.lua @@ -65,7 +65,7 @@ local function generator(color) burner = { type = "burner", fuel_categories = { "chemical" }, - emissions_per_minute = { noise = 1, pollution = 1 }, + emissions_per_minute = { noise = 5, pollution = 1 }, fuel_inventory_size = 2, smoke = { { diff --git a/lignumis/prototypes/content/burner-agricultural-tower.lua b/lignumis/prototypes/content/burner-agricultural-tower.lua index 5744b7d..c97bf69 100644 --- a/lignumis/prototypes/content/burner-agricultural-tower.lua +++ b/lignumis/prototypes/content/burner-agricultural-tower.lua @@ -13,7 +13,7 @@ agricultural_tower.energy_source = { fuel_categories = { "chemical" }, effectivity = 1, fuel_inventory_size = 1, - emissions_per_minute = { noise = 4 } + emissions_per_minute = { noise = 100 } } agricultural_tower.resistances = nil agricultural_tower.input_inventory_size = 1 diff --git a/lignumis/prototypes/content/burner-assembling-machine.lua b/lignumis/prototypes/content/burner-assembling-machine.lua index d5447fc..1e25026 100644 --- a/lignumis/prototypes/content/burner-assembling-machine.lua +++ b/lignumis/prototypes/content/burner-assembling-machine.lua @@ -21,7 +21,7 @@ assembling_machine.energy_source = { fuel_categories = { "chemical" }, effectivity = 1, fuel_inventory_size = 1, - emissions_per_minute = { noise = 20 }, + emissions_per_minute = { noise = 50 }, smoke = { { name = "smoke", diff --git a/lignumis/prototypes/content/deep-miner.lua b/lignumis/prototypes/content/deep-miner.lua index c2382b5..cf42147 100644 --- a/lignumis/prototypes/content/deep-miner.lua +++ b/lignumis/prototypes/content/deep-miner.lua @@ -6,7 +6,7 @@ local entity = DeepMiner.EntityBuilder:new():build({ energy_usage = "25MW", mining_speed = 30, energySource = { - emissions_per_minute = { noise = 100 } + emissions_per_minute = { noise = 500 } } }) entity.resource_categories = { "deep-mining" } diff --git a/lignumis/prototypes/content/lumber-mill.lua b/lignumis/prototypes/content/lumber-mill.lua index 2ed3b04..c84e0f8 100644 --- a/lignumis/prototypes/content/lumber-mill.lua +++ b/lignumis/prototypes/content/lumber-mill.lua @@ -11,7 +11,7 @@ data:extend({ table.insert(data.raw["character"]["character"].crafting_categories, "wood-processing-or-assembling") LumberMill.EntityBuilder:new() - :burnerEnergySource({ emissions_per_minute = { noise = 50 } }) + :burnerEnergySource({ emissions_per_minute = { noise = 100 } }) :baseProductivity(0.5) :apply({ crafting_categories = { "wood-processing-or-assembling" }, diff --git a/lignumis/prototypes/content/noise.lua b/lignumis/prototypes/content/noise.lua index bb4b2ad..f5b458c 100644 --- a/lignumis/prototypes/content/noise.lua +++ b/lignumis/prototypes/content/noise.lua @@ -29,9 +29,17 @@ data.raw["unit"]["behemoth-spitter"].absorptions_to_join_attack.noise = 200 for _, tree in pairs(data.raw.tree) do if tree.emissions_per_second then - tree.emissions_per_second.noise = -0.01 + tree.emissions_per_second.noise = -0.1 end end -data.raw.furnace["stone-furnace"].energy_source.emissions_per_minute.noise = 4 -data.raw["mining-drill"]["burner-mining-drill"].energy_source.emissions_per_minute.noise = 12 \ No newline at end of file +data.raw.furnace["stone-furnace"].energy_source.emissions_per_minute.noise = 10 +data.raw["mining-drill"]["burner-mining-drill"].energy_source.emissions_per_minute.noise = 50 + +local tiles = {"grass-1", "grass-2", "grass-3", "grass-4", "water", "deepwater", "natural-gold-soil"} +for _, tile in pairs(tiles) do + if not data.raw.tile[tile].absorptions_per_second then + data.raw.tile[tile].absorptions_per_second = {} + end + data.raw.tile[tile].absorptions_per_second.noise = 0.001 +end \ 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 f3f207f..1e8409d 100644 --- a/lignumis/prototypes/content/steam-assembling-machine.lua +++ b/lignumis/prototypes/content/steam-assembling-machine.lua @@ -24,7 +24,7 @@ assembling_machine.energy_source = { type = "fluid", fuel_categories = { "steam" }, effectivity = 1, - emissions_per_minute = { noise = 20 }, + emissions_per_minute = { noise = 50 }, scale_fluid_usage = true, fluid_box = { production_type = "input", diff --git a/lignumis/prototypes/content/wood-lab.lua b/lignumis/prototypes/content/wood-lab.lua index a489e41..f410ec6 100644 --- a/lignumis/prototypes/content/wood-lab.lua +++ b/lignumis/prototypes/content/wood-lab.lua @@ -101,7 +101,7 @@ data:extend({ fuel_categories = { "chemical" }, effectivity = 1, fuel_inventory_size = 1, - emissions_per_minute = { pollution = 12, noise = 1 }, + emissions_per_minute = { pollution = 12, noise = 10 }, light_flicker = { color = { 0, 0, 0 } }, smoke = { { diff --git a/lignumis/prototypes/content/wood-logistics.lua b/lignumis/prototypes/content/wood-logistics.lua index 47e33f4..ea695b0 100644 --- a/lignumis/prototypes/content/wood-logistics.lua +++ b/lignumis/prototypes/content/wood-logistics.lua @@ -8,10 +8,10 @@ Belt.EntityBuilder:new() :animationSpeedMultiplier(1.01) :apply({ transportBelt = { - emissions_per_second = { noise = 0.01 } + emissions_per_second = { noise = 0.05 } }, undergroundBelt = { - emissions_per_second = { noise = 0.1 } + emissions_per_second = { noise = 0.5 } }, splitter = { emissions_per_second = { noise = 1 } diff --git a/lignumis/prototypes/content/wooden-rocket-silo.lua b/lignumis/prototypes/content/wooden-rocket-silo.lua index 0897e4e..827dd8d 100644 --- a/lignumis/prototypes/content/wooden-rocket-silo.lua +++ b/lignumis/prototypes/content/wooden-rocket-silo.lua @@ -11,7 +11,7 @@ silo.energy_source = { fuel_categories = { "chemical" }, effectivity = 1, fuel_inventory_size = 1, - emissions_per_minute = { noise = 100 }, + emissions_per_minute = { noise = 1000 }, smoke = { { name = "smoke", diff --git a/lignumis/prototypes/integrations/Wood-Walls.lua b/lignumis/prototypes/integrations/Wood-Walls.lua index 697f62f..908b981 100644 --- a/lignumis/prototypes/integrations/Wood-Walls.lua +++ b/lignumis/prototypes/integrations/Wood-Walls.lua @@ -3,4 +3,4 @@ recipe.ingredients = { { type = "item", name = "lumber", amount = 4 } } recipe.results = { { type = "item", name = "wooden-wall", amount = 1 } } local entity = data.raw.wall["wooden-wall"] -entity.emissions_per_second = { noise = -0.1 } \ No newline at end of file +entity.emissions_per_second = { noise = -1 } \ No newline at end of file