Page 1 of 1

How does specifying pollution work?

Posted: Sun Jan 29, 2017 6:23 pm
by Bizobinator
Working on a mod of mine, & I want to set the pollution generated by an entity. I've got the snippet of code that sets the amount of pollution, but I'm unsure how the number gets applied:

Code: Select all

energy_source = 
		{
			type = "electric",
			useage_priority = "secondary-input",
			emissions = 0.1 / 6.5,
		},

Is the emissions value just multiplied by the power required to give the amount of pollution it generates?

Re: How does specifying pollution work?

Posted: Fri Feb 03, 2017 5:18 pm
by Bizobinator
Well, I actually figured it out for anyone who's interested.

The pollution emitted by an object is dependent upon the "emissions" parameter & "energy consumption".

Pollution = emissions * energy_consumption (in kW). So, an entity with an emissions of 0.1 & a power consumption of 50kW will produce 5 pollution units.

The more you know.gif :ugeek: