Fix emissions

This commit is contained in:
Simon Brodtmann 2025-07-05 17:43:59 +02:00
parent dcb84c12eb
commit 0cf0b6ee96
4 changed files with 12 additions and 12 deletions

View file

@ -46,7 +46,7 @@ data:extend({
},
corpse = nil,
remains_when_mined = nil,
emissions_per_second = -0.0006,
emissions_per_second = { pollution = -0.0006 },
max_health = 5,
collision_box = {{-0.1, -0.1}, {0.1, 0.1}},
@ -88,7 +88,7 @@ data:extend({
},
corpse = nil,
remains_when_mined = nil,
emissions_per_second = -0.0006,
emissions_per_second = { pollution = -0.0006 },
max_health = 5,
collision_box = {{-0.1, -0.1}, {0.1, 0.1}},
@ -129,7 +129,7 @@ data:extend({
},
corpse = nil,
remains_when_mined = nil,
emissions_per_second = -0.0006,
emissions_per_second = { pollution = -0.0006 },
max_health = 5,
collision_box = {{-0.1, -0.1}, {0.1, 0.1}},
@ -213,7 +213,7 @@ data:extend({
type = "electric",
usage_priority = "primary-input",
drain = "50kW",
emissions_per_minute = -9, -- the "-" means it Absorbs pollution.
emissions_per_minute = { pollution = -9 }, -- the "-" means it Absorbs pollution.
},
energy_usage = "100kW",
ingredient_count = 3,
@ -438,7 +438,7 @@ data:extend({
type = "electric",
usage_priority = "primary-input",
drain = "15kW",
emissions_per_minute = -6, -- the "-" means it Absorbs pollution.
emissions_per_minute = { pollution = -6 }, -- the "-" means it Absorbs pollution.
},
energy_usage = "50kW",
ingredient_count = 3,
@ -529,7 +529,7 @@ data:extend({
type = "electric",
input_priority = "secondary",
usage_priority = "secondary-input",
emissions_per_minute = 2.5,
emissions_per_minute = { pollution = 2.5 },
},
energy_usage = "180kW",
crafting_speed = 2,
@ -585,7 +585,7 @@ data:extend({
energy_source = {
type = "electric",
usage_priority = "secondary-input",
emissions_per_minute = 0.25,
emissions_per_minute = { pollution = 0.25 },
},
energy_usage = "50kW",
module_specification = {
@ -1008,7 +1008,7 @@ data:extend({
energy_source = {
type = "electric",
usage_priority = "primary-input",
emissions_per_minute = -8, -- the "-" means it Absorbs pollution.
emissions_per_minute = { pollution = -8 }, -- the "-" means it Absorbs pollution.
},
energy_usage = "150kW",
ingredient_count = 3,
@ -1035,7 +1035,7 @@ my_seedling.remains_when_mined = nil
my_seedling.max_health = 5
my_seedling.collision_box = {{-0.1, -0.1}, {0.1, 0.1}}
my_seedling.selection_box = {{-0.5, -0.5}, {0.5, 0.5}}
my_seedling.emissions_per_second = -0.0006
my_seedling.emissions_per_second = { pollution = -0.0006 }
data:extend({my_seedling})
]]

View file

@ -171,7 +171,7 @@ if BI.Settings.BI_Bio_Fuel then
fuel_category = "chemical",
effectivity = 1,
fuel_inventory_size = 2,
emissions_per_minute = 15,
emissions_per_minute = { pollution = 15 },
smoke = {
{
name = "smoke",

View file

@ -59,7 +59,7 @@ data:extend({
energy_source = {
type = "electric",
usage_priority = "secondary-input",
emissions_per_minute = -45, -- Negative value: pollution is absorbed!
emissions_per_minute = { pollution = -45 }, -- Negative value: pollution is absorbed!
},
energy_usage = "200kW",
ingredient_count = 1,

View file

@ -103,7 +103,7 @@ BioInd.show("radar.name", c_entities["bi-arboretum"].hidden[h_key].name)
radar.energy_per_sector = "2MJ"
radar.energy_per_nearby_scan = "200kW"
radar.energy_source.emissions_per_minute = 0
radar.energy_source.emissions_per_minute = {}
radar.energy_usage = "150kW"
radar.max_distance_of_nearby_sector_revealed = 2
radar.max_distance_of_sector_revealed = 5