And which tag controls this function?
http://modiki.civfanatics.com/index.php/Civ4LeaderHeadInfos

iWonderConstructRand
And which tag controls this function?
Maybe I'm thinking of civ III, but I thought there was an xml tag in the buildinginfo file that caused a building to produce unit X once every y turns. What is the tag for this if it exists?
Is there a way to stop an a land unit being airlifted?
Set iWonderConstructRand to 0
I know that city population is calculated in CvCity.cpp. But where is calculated civs population? I want to change it from a sum of all cities population into ~ all cities population*(1+ %ofControlledLandmass*200/numofCities). How?
[EDIT]: I think I find it in CvPlayer.cpp but still don't know how to change it:
Spoiler :Code:long CvPlayer::getRealPopulation() const { CvCity* pLoopCity; __int64 iTotalPopulation = 0; int iLoop = 0; for (pLoopCity = firstCity(&iLoop); pLoopCity != NULL; pLoopCity = nextCity(&iLoop)) { iTotalPopulation += pLoopCity->getRealPopulation(); } if (iTotalPopulation > MAX_INT) { iTotalPopulation = MAX_INT; } return ((long)(iTotalPopulation)); }
Anyone? I think I need just a function to get the number of cities and another for % of controlled landmass and simple * and + will make it. Nevertheless I'm unable of finding them and checking if my idea is correct.
long CvPlayer::getRealPopulation() const
{
CvCity* pLoopCity;
__int64 iTotalPopulation = 0;
int iLoop = 0;
for (pLoopCity = firstCity(&iLoop); pLoopCity != NULL; pLoopCity = nextCity(&iLoop))
{
iTotalPopulation += pLoopCity->getRealPopulation();
}
[COLOR="Red"]
iTotalPopulation = iTotalPopulation * (1 + getTotalLand() / std::max(1, GC.getMapINLINE().getLandPlots()) * 200 / getNumCities())
[/COLOR]
if (iTotalPopulation > MAX_INT)
{
iTotalPopulation = MAX_INT;
}
return ((long)(iTotalPopulation));
}
Civilization IV/Warlords/XML/Civilizations/TraitInfos.xml
Okay, new question: how would I go about changing the prerequisites for terrain improvements? I'd like Oil Wells to be available with Engineering, rather than Combustion, but I'm not finding anything useful in CIV4BonusInfos.xml, CIV4ImprovementInfos.xml, or CIV4TechInfos.xml
CIV4BuildInfos.xml