How does specifying pollution work?

Place to get help with not working mods / modding interface.
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

How does specifying pollution work?

Post 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?
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

Re: How does specifying pollution work?

Post 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:
Post Reply

Return to “Modding help”