Skip to content

emission_metadata

Source: base/tealdef/game_mechanics/emission/emission_metadata.d.tl

Notes

Noise and pollution emitted by constructions (metadata.emission), and the emission config.

EmissionDb

record global base/tealdef/game_mechanics/emission/emission_metadata.d.tl:3

global record EmissionDb

Notes

Emission of a construction (metadata.emission); industries list one entry per production level.

Fields

Name Type Description
noise number in db (decibel)
pollution number Pollution; negative values reduce pollution (pollution cleanup facility).
radius number Noise radius in metres.
pollutionRadius number Pollution radius in metres; defaults to radius.

EmissionMetadata

record global base/tealdef/game_mechanics/emission/emission_metadata.d.tl:10

global record EmissionMetadata

Load: local emission_metadata = ug_require "::/game_mechanics/emission/emission_metadata.tl"

Notes

Accessors for emission metadata.

Fields

Name Type Description
constructionDesc MetadataAccessor<ConstructionDescMetadata, EmissionDb> Accessor for the emission metadata of construction resources. used 5× in the base game
subconstructionInstance MetadataAccessor<SubconstructionInstanceMetadata, {EmissionDb}> Accessor for the emissions metadata of subconstruction instances.

EmissionConfig

record global base/tealdef/game_mechanics/emission/emission_metadata.d.tl:15

global record EmissionConfig

Load: local emission_config = ug_require "/game_mechanics/emission/emission_config.tl"

Notes

Emission config (emission/emission_config.tl), used for the layers and the noise and pollution town ratings.

Fields

Name Type Description
noiseLowerBoundDB number Lowest noise level of the noise layer, in dB (63). used 3× in the base game
noiseUpperBoundDB number Highest noise level of the noise layer, in dB (85). used 5× in the base game
noiseNumSteps integer Number of steps of the noise layer (12). used 1× in the base game
pollutionLowerBoundDB number Lowest value of the pollution layer (57). used 3× in the base game
pollutionUpperBoundDB number Highest value of the pollution layer (80). used 5× in the base game
pollutionNumSteps integer Number of steps of the pollution layer (12). used 8× in the base game
noiseRatingLowerBoundDB number Average noise at town buildings that maps to the best noise rating (65 dB). used 4× in the base game
noiseRatingUpperBoundDB number Average noise that maps to the worst noise rating (80 dB). used 4× in the base game
noiseRatingRandomOffsetMinMax {number, number} Range of a random offset added to the noise rating ({0, 0} in the base game). used 2× in the base game
pollutionRatingLowerBoundDB number Average pollution in the town area that maps to the best rating (60). used 1× in the base game
pollutionRatingUpperBoundDB number Average pollution that maps to the worst rating (74). used 1× in the base game
pollutionRatingRandomOffsetMinMax {number, number} Range of a random offset added to the pollution rating ({0, 0} in the base game). used 2× in the base game
pollutionRatingAreaMinSquareKm number Minimum sampled area of a town for the pollution rating, in km² (5). used 1× in the base game
pollutionRatingAreaMaxSquareKm number Maximum sampled area, in km² (10). used 1× in the base game
emissionReductionPerEcoLevel number Emission reduction per eco level of an industry (0.8, so eco level 1 cuts emissions by 80 %). used 2× in the base game