The event:
# Provincial Governments
def May_1776_2(self):
doesn't fire properly, in that you don't actually get the buildings added to the cities.
Now, I'm still definitely in the *fumble around and hope I get things right* stage of learning Python, but this fix will work. It's probably not the best way to get at it, but it does work.
Replace the line:
if (pCity.getName() in aiValidCities):
with two lines:
iTheID = self.getCityID(self.iColonialID, pCity.getID())
if (iTheID in aiValidCities):
Basically, pCity.getName() isn't resolving as being in the list aiValidCities.
# Provincial Governments
def May_1776_2(self):
doesn't fire properly, in that you don't actually get the buildings added to the cities.
Now, I'm still definitely in the *fumble around and hope I get things right* stage of learning Python, but this fix will work. It's probably not the best way to get at it, but it does work.
Replace the line:
if (pCity.getName() in aiValidCities):
with two lines:
iTheID = self.getCityID(self.iColonialID, pCity.getID())
if (iTheID in aiValidCities):
Basically, pCity.getName() isn't resolving as being in the list aiValidCities.