Ginnungagap
Chieftain
- Joined
- Feb 29, 2008
- Messages
- 3
Mainly for the 3000 BC start with lots of religions spreading in the middle east. With this mini-modcomp the arabic UP removes all religions (if the city isn't the Holy City) from a conquered city. All normal effects (temples and co.) stay.
Simply replace the "UniquePowers.py" with the attached file (it's a .py-file, because of the forum i had to change the ending) or add these lines:
below these:
in the same file.
Have Fun
Simply replace the "UniquePowers.py" with the attached file (it's a .py-file, because of the forum i had to change the ending) or add these lines:
Code:
for iReligionLoop in range(iNumReligions):
if (iReligionLoop != iStateReligion):
if (not city.isHolyCityByType(iReligionLoop)):
city.setHasReligion(iReligionLoop, False, False, False)
Code:
def arabianUP(self, city):
pArabia = gc.getPlayer(iArabia)
iStateReligion = pArabia.getStateReligion()
if (iStateReligion >= 0):
if (not city.isHasReligion(iStateReligion)):
city.setHasReligion(iStateReligion, True, True, False)
if (not city.hasBuilding(iTemple + iStateReligion*4)):
city.setHasRealBuilding((iTemple + iStateReligion*4), True)
if (not city.hasBuilding(iCathedral + iStateReligion*4)):
city.setHasRealBuilding((iCathedral + iStateReligion*4), True)
Have Fun
