Where to find the code for population based effects ?

It is also interesting to note that many of the old population based effects are still sitting in the xml. There is actually alot of old stuff in there. I think the general idea is to leave it all in so that modders can use it.

and

I doubt they will do this, but they did leave in the code for population to affect production, research, etc.

 

I was searching for the code that allows population to affect production and research (like in the old FE builds), but was not able to find (or understand) it myself =(

 

What I did find were the functions <ResourceType InternalName="ResearchPerPopulation"> and <ResourceType InternalName="ProductionPerPopulation"> in CoreResources.xml, but I am unsure what I'd need to change to say...let each pop add 0.01/1% research to the city.

(perhaps change <Worth>0</Worth>  to 0.01 ? As said I'm unsure if thats the correct place to change any values)

So can anybody help me out please and give me some directions ? 

2,811 views 1 replies
Reply #1 Top

CorePlayerAbilities.xml around line 400 is what you need to change.