platyping
Sleeping Dragon
Didn't bother. Mouse spoilt, lazy to mod without it.
def onCityBuilt(self, argsList):
'City Built'
city = argsList[0]
###believer trait start part 1
pPlayer = gc.getPlayer(city.getOwner())
if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_SPIRITUAL")):
iReligion = pPlayer.getStateReligion()
if iReligion>-1:
city.setHasReligion(iReligion,True,True,True)
NumBuildings = gc.getNumBuildingInfos ()
for i in xrange(NumBuildings):
MyBuilding = gc.getBuildingInfo(i)
if MyBuilding.getPrereqReligion ()==iReligion:
if MyBuilding.getSpecialBuildingType ()==gc.getInfoTypeForString("SPECIALBUILDING_TEMPLE"):
city.setNumRealBuilding(i,1)
break
###believer trait end part 1
if (city.getOwner() == gc.getGame().getActivePlayer()):
self.__eventEditCityNameBegin(city, False)
CvUtil.pyPrint('City Built Event: %s' %(city.getName()))
NumBuildings = gc.getNumBuildingInfos ()
for i in xrange(NumBuildings):
MyBuilding = gc.getBuildingInfo(i)
if MyBuilding.getPrereqReligion ()==iReligion:
if MyBuilding.getSpecialBuildingType ()==gc.getInfoTypeForString("SPECIALBUILDING_TEMPLE"):
city.setNumRealBuilding(i,1)
Hi, Platy. I have some problems with developing trait merge. Is possible are here some script data? In last case I have problems too when two parts with script data.
Yeah, it uses player script