Alrik2002
Warlord
Hi,
I got another error, this time the function onUnitSpreadReligionAttempt. iPlayer is not defined although it´s used for the message for the Famen Temple:
I think I fixed it for myself, but I´m sure you want to now things like that.
I got another error, this time the function onUnitSpreadReligionAttempt. iPlayer is not defined although it´s used for the message for the Famen Temple:
Code:
def onUnitSpreadReligionAttempt(self, argsList):
'Unit tries to spread religion to a city'
pUnit, iReligion, bSuccess = argsList
iX = pUnit.getX()
iY = pUnit.getY()
pPlot = CyMap().plot(iX, iY)
pCity = pPlot.getPlotCity()
pPlayer = gc.getPlayer(pUnit.getOwner())
## Famen Temple Start ##
if not bSuccess:
if pPlayer.getBuildingClassCount(gc.getInfoTypeForString("BUILDINGCLASS_FA_MEN_SI")) == 1:
pCity.setHasReligion(gc.getUnitInfo(pUnit.getUnitType()).getPrereqReligion(), true, true, true)
CyInterface().addMessage([COLOR="Red"]iPlayer[/COLOR],true,15,CyTranslator().getText("TXT_FAMEN_SUCCESS",(pCity.getName(),)),'',0,'',-1,-1,-1, true, true)
## Platyping Wonders End ##
I think I fixed it for myself, but I´m sure you want to now things like that.
