platyping
Sleeping Dragon
quality control
when created it provides culture (or even 10% culture boost) to all cities in the civ/team with the state religion of the builder
I was exploring that method and it is the same as changeCulture but the value is divided by 100... wierd.
The one time culture 'bomb' would be good but I also just thought that it boost culture by 10% to the next culture level ie:
Rome has 2 culture (so next level is at 10 culture) and it gets 10% added so it now has 3 culture, Paris on the other hand has 45 culture and it's next level is 100 so gets a boost of 10.
either of these effects are good for this wonder I think. and of course both are one time things so next to no lag. I am not sure how to account for speed though with regards to method 2, possibly the CvCultureLevelInfos some hold a method that could get total culture?
def onUnitSpreadReligionAttempt(self, argsList):
'Unit tries to spread religion to a city'
pUnit, iReligion, bSuccess = argsList
iX = pUnit.getX()
iY = pUnit.getY()
## Spiritual Trait Start ##
if bSuccess == false:
pPlayer = gc.getPlayer(pUnit.getOwner())
if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_SPIRITUAL")):
capital= pPlayer.getCapitalCity()
newUnit = player.initUnit(pUnit.getUnitType(), capital.getX(),capital.getY(), UnitAITypes.UNITAI_MISSIONARY, DirectionTypes.NO_DIRECTION )
newUnit.finishMoves()
## Spiritual Trait End ##
pPlot = CyMap().plot(iX, iY)
pCity = pPlot.getPlotCity()