def onProjectBuilt(self, argsList):
...
if iProjectType == gc.getInfoTypeForString('PROJECT_THE_WHITE_HAND'):
newUnit1 = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PRIEST_OF_WINTER'), pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
newUnit1.setName("Dumannios")
newUnit1.setHasPromotion(gc.getInfoTypeForString('PROMOTION_EXTENSION1'), True)
newUnit1.setHasPromotion(gc.getInfoTypeForString('PROMOTION_STRONG'), True)
newUnit1.setHasPromotion(gc.getInfoTypeForString('PROMOTION_INQUISITOR'), True)
newUnit2 = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PRIEST_OF_WINTER'), pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
newUnit2.setName("Riuros")
newUnit2.setHasPromotion(gc.getInfoTypeForString('PROMOTION_EXTENSION1'), True)
newUnit2.setHasPromotion(gc.getInfoTypeForString('PROMOTION_STRONG'), True)
newUnit2.setHasPromotion(gc.getInfoTypeForString('PROMOTION_INQUISITOR'), True)
newUnit3 = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PRIEST_OF_WINTER'), pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
newUnit3.setName("Anagantios")
newUnit3.setHasPromotion(gc.getInfoTypeForString('PROMOTION_EXTENSION1'), True)
newUnit3.setHasPromotion(gc.getInfoTypeForString('PROMOTION_STRONG'), True)
newUnit3.setHasPromotion(gc.getInfoTypeForString('PROMOTION_INQUISITOR'), True)
...
if iProjectType == gc.getInfoTypeForString('PROJECT_ASCENSION'):
py = PyPlayer(iPlayer)
iAuric = gc.getInfoTypeForString('UNITCLASS_AURIC')
for pUnit in py.getUnitList():
if pUnit.getUnitClassType() == iAuric:
pAuric = pUnit
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_AURIC_ASCENDED'), pAuric.getX(), pAuric.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
newUnit.convert(pAuric)
newUnit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_ICE3'), False)
if pPlayer.isHuman():
t = "TROPHY_FEAT_ASCENSION"
if not CyGame().isHasTrophy(t):
CyGame().changeTrophyValue(t, 1)
if not CyGame().getWBMapScript():
iBestPlayer = -1
iBestValue = 0
for iLoopPlayer in range(gc.getMAX_PLAYERS()):
pLoopPlayer = gc.getPlayer(iLoopPlayer)
if pLoopPlayer.isAlive():
if not pLoopPlayer.isBarbarian():
if pLoopPlayer.getTeam() != pPlayer.getTeam():
iValue = CyGame().getSorenRandNum(500, "Ascension")
if pLoopPlayer.isHuman():
iValue += 2000
iValue += (20 - CyGame().getPlayerRank(iLoopPlayer)) * 50
if iValue > iBestValue:
iBestValue = iValue
iBestPlayer = iLoopPlayer
if iBestPlayer != -1:
pBestPlayer = gc.getPlayer(iBestPlayer)
pBestCity = pBestPlayer.getCapitalCity()
if pBestPlayer.isHuman():
iEvent = CvUtil.findInfoTypeNum(gc.getEventTriggerInfo, gc.getNumEventTriggerInfos(),'EVENTTRIGGER_GODSLAYER')
triggerData = gc.getPlayer(iBestPlayer).initTriggeredData(iEvent, true, -1, pBestCity.getX(), pBestCity.getY(), iBestPlayer, -1, -1, -1, -1, -1)
else:
pBestPlayer.initUnit(gc.getInfoTypeForString('EQUIPMENT_GODSLAYER'), pBestCity.getX(), pBestCity.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)