Page 1 of 1

Global Pollution - Does an interface to this exist?

Posted: Thu Jun 01, 2017 4:08 pm
by kleril
Is the behaviour for 1000 Pollution Units -> 1 'tick' of evolution via pollution factor hardcoded, or is there an API hook that handles it? I can't find anything explicitly about the total global pollution in the docs or base mod, but thought I'd at least double check here first before dropping a request on the interface board.

Anyone more familiar with how pollution works able to walk through how the process of how pollution impacts the evolution factor, step-by-step?

Re: Global Pollution - Does an interface to this exist?

Posted: Thu Jun 01, 2017 4:28 pm
by Shokubai
?
Image

Re: Global Pollution - Does an interface to this exist?

Posted: Fri Jun 02, 2017 2:07 pm
by kleril
Sorry if it wasn't clear what I was asking. How I understand the pollution->evolution flow works is like this:

1. Every tick pollution is generated by polluters.
2. Pollution is accumulated by [something].
3. Every 1000 accumulated units, the evolution factor is increased by the pollution factor.

My question is - for step 2 and 3 in the process, what scripting hooks exist for this, and how much of it is hardcoded? Based on my investigating, the '1000 pollution units -> 1 pollution factor' looks to be hardcoded, so changing the pollution->evolution flow in a mod is limited as a result.

Re: Global Pollution - Does an interface to this exist?

Posted: Sat Jun 03, 2017 12:15 am
by Rseding91
All of the pollution logic is based off the map_settings which is defined in the prototypes and in the generate-map GUI.