message: Judaism spreads to North America
diff: @@ -93,6 +93,7 @@ class Religions:
  self.spreadJudaismEurope(iGameTurn)
  self.spreadJudaismMiddleEast(iGameTurn)
  + self.spreadJudaismAmerica(iGameTurn)
  self.spreadIslamIndonesia(iGameTurn)
  @@ -247,32 +248,27 @@ class Religions:
  self.foundReligion(self.selectHolyCity(tJewishTL, tJewishBR, tJerusalem), iJudaism)
  def spreadJudaismEurope(self, iGameTurn):
  - if not gc.getGame().isReligionFounded(iJudaism): return
  - if iGameTurn < getTurnForYear(1000): return
  -
  - if iGameTurn % utils.getTurns(10) != 0: return
  + self.spreadReligionToRegion(iJudaism, [rIberia, rEurope, rItaly, rBritain, rRussia, rBalkans], iGameTurn, 1000, 10, 0)
  - lEuropeanCities = utils.getRegionCities([rIberia, rEurope, rItaly, rBritain, rRussia, rBalkans])
  - lJewishCities = [city for city in lEuropeanCities if city.isHasReligion(iJudaism)]
  + def spreadJudaismMiddleEast(self, iGameTurn):
  + self.spreadReligionToRegion(iJudaism, [rMesopotamia, rAnatolia, rEgypt], iGameTurn, 600, 20, 5)
  - if 2 * len(lJewishCities) < len(lEuropeanCities):
  - pSpreadCity = utils.getRandomEntry(self.getTargetCities(lEuropeanCities, iJudaism))
  - if pSpreadCity:
  - pSpreadCity.spreadReligion(iJudaism)
  + def spreadJudaismAmerica(self, iGameTurn):
  + self.spreadReligionToRegion(iJudaism, [rCanada, rAlaska, rUnitedStates], iGameTurn, 1850, 10, 4)
  - def spreadJudaismMiddleEast(self, iGameTurn):
  - if not gc.getGame().isReligionFounded(iJudaism): return
  - if iGameTurn < getTurnForYear(600): return
  + def spreadReligionToRegion(self, iReligion, lRegions, iGameTurn, iStartDate, iInterval, iOffset):
  + if not gc.getGame().isReligionFounded(iReligion): return
  + if iGameTurn < getTurnForYear(iStartDate): return
  - if iGameTurn % utils.getTurns(20) != utils.getTurns(5): return
  + if iGameTurn % utils.getTurns(iInterval) != iOffset: return
  - lMiddleEastCities = utils.getRegionCities([rMesopotamia, rAnatolia, rEgypt])
  - lJewishCities = [city for city in lMiddleEastCities if city.isHasReligion(iJudaism)]
  + lRegionCities = utils.getRegionCities(lRegions)
  + lReligionCities = [city for city in lRegionCities if city.isHasReligion(iReligion)]
  - if 2 * len(lJewishCities) < len(lMiddleEastCities):
  - pSpreadCity = utils.getRandomEntry(self.getTargetCities(lMiddleEastCities, iJudaism))
  + if 2 * len(lReligionCities) < len(lRegionCities):
  + pSpreadCity = utils.getRandomEntry(self.getTargetCities(lRegionCities, iReligion))
  if pSpreadCity:
  - pSpreadCity.spreadReligion(iJudaism)
  + pSpreadCity.spreadReligion(iReligion)
  ## ISLAM
  