The target of the Growth of X/
As an example, see the attached save, where the urbanization branch has triggered for Lycaonia and asks to build a city in and make the state capital Kongoustos (population 4), when Ikonion (population 24) is the obvious choice for what the target should be.
As an aside, the conditions in lines 449-452 are somewhat strange as it is simply a convoluted way of checking if the province capital is not a city, which suggests that it might not be quite what was intended (perhaps meaning to check if there are no cities outside the province capital?).
urbanize_city mission task in the generic infrastructure mission urbanize_area_city seems to be selected in a random way, rather than going for the highest population territory as would be sensible (and as the code suggests was intended). The problem seems to be in lines 499-504, where the possibilities for the urbanize_area_city scope are ranked by adding up the population of each territory in the province - which doesn't work since we are iterating through territories, not provinces.As an example, see the attached save, where the urbanization branch has triggered for Lycaonia and asks to build a city in and make the state capital Kongoustos (population 4), when Ikonion (population 24) is the obvious choice for what the target should be.
As an aside, the conditions in lines 449-452 are somewhat strange as it is simply a convoluted way of checking if the province capital is not a city, which suggests that it might not be quite what was intended (perhaps meaning to check if there are no cities outside the province capital?).
Attachments
Upvote
0