def onReligionSpread(self, argsList):
        iReligion, iOwner, pSpreadCity = argsList

        cnm.onReligionSpread(iReligion, iOwner, pSpreadCity)

        # Israeli UP
        if iReligion == iJudaism:
            self.up.computeAliyahBonus()
        def onReligionSpread(self, argsList):
            
                iReligion, iOwner, pSpreadCity = argsList
		
		cnm.onReligionSpread(iReligion, iOwner, pSpreadCity)

		#Leoreth: if state religion spreads, pagan temples are replaced with its temple. For other religions, they're simply removed.         
		if pSpreadCity.isHasBuilding(con.iObelisk):
			pSpreadCity.setHasRealBuilding(con.iObelisk, False)
			if gc.getPlayer(iOwner).getCivics(4) != con.iCivicPantheon and gc.getPlayer(iOwner).getStateReligion() == iReligion and gc.getTeam(iOwner).isHasTech(con.iPriesthood):
				pSpreadCity.setHasRealBuilding(con.iJewishTemple+4*iReligion, True)
                                CyInterface().addMessage(iOwner, True, con.iDuration, CyTranslator().getText("TXT_KEY_PAGAN_TEMPLE_REPLACED", (str(gc.getReligionInfo(iReligion).getText()), str(pSpreadCity.getName()), str(gc.getBuildingInfo(con.iJewishTemple+4*iReligion).getText()))), "", 0, "", ColorTypes(con.iWhite), -1, -1, True, True)
			else:
				CyInterface().addMessage(iOwner, True, con.iDuration, CyTranslator().getText("TXT_KEY_PAGAN_TEMPLE_REMOVED", (str(gc.getReligionInfo(iReligion).getText()), str(pSpreadCity.getName()))), "", 0, "", ColorTypes(con.iWhite), -1, -1, True, True)
Exemple #3
0
    def onReligionSpread(self, argsList):
        iReligion, iOwner, pSpreadCity = argsList

        cnm.onReligionSpread(iReligion, iOwner, pSpreadCity)
	def onReligionSpread(self, argsList):
		iReligion, iOwner, pSpreadCity = argsList
		
		cnm.onReligionSpread(iReligion, iOwner, pSpreadCity)