JediClemente
Prince
Hi.
I've looked for this desperately and still no luck.
I want to change CvTeam::getResearchCost for a Rhye's and Fall of Civilization modmod. But nevermind this.
The point is to increase the research cost, if having more than 10 cities, by the base research from the 11th and so on lesser-science cities.
I don't know how to access the city list for the player. I need to sort all base researches from them in a list, sum up from the 11th to the end, and add that number to the final research cost the function returns.
I think I got that idea right. But I searched the SDK and still don't know how to access the cities from CvTeam.
Of course the goal here is to research mainly from each player's 10 better scientific cities, so that empires with a lot of cities don't get an advantage. Rhye achieves this by increasing a 10% of the research cost for each city the player has above 10. But this solution (which isn't mine, BTW) would not overpenalize.
Also, as it only takes into account base research, it would still make sense to build libraries or universities out of the 10 best cities (even though the extra research would be little).
So, can anyone give me any good pointers?
I've looked for this desperately and still no luck.
I want to change CvTeam::getResearchCost for a Rhye's and Fall of Civilization modmod. But nevermind this.
The point is to increase the research cost, if having more than 10 cities, by the base research from the 11th and so on lesser-science cities.
I don't know how to access the city list for the player. I need to sort all base researches from them in a list, sum up from the 11th to the end, and add that number to the final research cost the function returns.
I think I got that idea right. But I searched the SDK and still don't know how to access the cities from CvTeam.
Of course the goal here is to research mainly from each player's 10 better scientific cities, so that empires with a lot of cities don't get an advantage. Rhye achieves this by increasing a 10% of the research cost for each city the player has above 10. But this solution (which isn't mine, BTW) would not overpenalize.
Also, as it only takes into account base research, it would still make sense to build libraries or universities out of the 10 best cities (even though the extra research would be little).
So, can anyone give me any good pointers?