Admiral Armada
The Admiral of Armadas
So im trying to incorporate Navy Seals Settler mod into my current mod setup, and i could not get it to function properly, so i tried to play it alone and it still does not work. I think I've figured out where things are going wrong, i just cant figure out why.
So the function of interest is here (i think)
And its being used like this:
I just cant figure out where in the function it is doing anything.
Any insights would be appreciated .
And once i conquer this problem, then i have to try merging the custom event managers, which hasn't worked yet, fun times.
So the function of interest is here (i think)
Code:
def _addBuilding(pCity, szBuilding):
iBuilding = gc.getInfoTypeForString(szBuilding)
iUniqueBuilding = gc.getCivilizationInfo(gc.getPlayer(pCity.getOwner()).getCivilizationType()).getCivilizationBuildings(iBuilding)
if iUniqueBuilding > -1:
if pCity.canConstruct(iUniqueBuilding, False, True, False):
pCity.setHasRealBuilding(iUniqueBuilding, True)
And its being used like this:
Code:
_addBuilding(city, "BUILDINGCLASS_COURTHOUSE")
I just cant figure out where in the function it is doing anything.
Any insights would be appreciated .
And once i conquer this problem, then i have to try merging the custom event managers, which hasn't worked yet, fun times.