davidlallen
Deity
Over in Dune Wars, we are discussing how to implement Mentat units. A Mentat is a human computer, who can be a super-genius in one field. We would like these to be mobile units that are sort of like settled great people, and give a big economic bonus of some kind to the city they are in. Only one mentat per city, and only 3 mentats per civ. There will be like 6-8 different specialties, such as: "Military genius: gives +5 XP to units built in this city", or "Industrial genius: gives +50 hammers to city, recharges after 20 turns".
I want to write some python/sdk code which will select the best city for a particular mentat type to move to. We want to pick the best city and have the mentat move there, without jittering too much from one city to another.
My question is, is there already some AI routine which ranks the cities by "most need of military production"? For example, the National Epic wonder could be placed according to which city has a decent hammer rate already *and* is geographically near a war front. There is no point in putting it in a city which is near the front but has a tiny hammer rate, and no point in putting it in a city with a good hammer rate which is on the other side of the world from any military action.
If there is some routine that rates cities like this, please point me in the direction.
I want to write some python/sdk code which will select the best city for a particular mentat type to move to. We want to pick the best city and have the mentat move there, without jittering too much from one city to another.
My question is, is there already some AI routine which ranks the cities by "most need of military production"? For example, the National Epic wonder could be placed according to which city has a decent hammer rate already *and* is geographically near a war front. There is no point in putting it in a city which is near the front but has a tiny hammer rate, and no point in putting it in a city with a good hammer rate which is on the other side of the world from any military action.
If there is some routine that rates cities like this, please point me in the direction.