I'm trying to adapt an old modcomp "RandomCityNames" by Buckets to my own use. Ultimately I want it to apply only to Barbarian cities. I put this in CvEventInfos, which imports RandomCityNameUtils from the modcomp, which I also placed in the Python folder.
It works, but only for the human player.
What about this would single out the human player?
Code:
def onCityBuilt(self, argsList):
'City Built'
city = argsList[0]
city.setName(RandomCityNameUtils.getRandomCityName(),1)
It works, but only for the human player.
What about this would single out the human player?