def doFFTurn(self):
iLizCiv1 = gc.getInfoTypeForString('CIVILIZATION_MAZATL')
iLizCiv2 = gc.getInfoTypeForString('CIVILIZATION_CUALLI')
iAreThereLizardsHere = CyGame().getNumCivActive(iLizCiv1) + CyGame().getNumCivActive(iLizCiv2)
[I]iWetlandChance = 75
iPlainsChance = 50
iJungleChance = 50
iSwampChance = 75[/i]
for i in range (CyMap().numPlots()):
pPlot = CyMap().plotByIndex(i)
iBonus = pPlot.getBonusType(-1)
iFeature = pPlot.getFeatureType()
iImprovement = pPlot.getImprovementType()
iTerrain = pPlot.getTerrainType()
#### Lizard Terrain Section
if iAreThereLizardsHere [i]> 0[/i] :
if pPlot.isOwned():
pPlayer = gc.getPlayer(pPlot.getOwner())
if pPlayer.getCivilizationType() == iLizCiv1 or pPlayer.getCivilizationType() == iLizCiv2:
if pPlot.getRouteType() == gc.getInfoTypeForString('ROUTE_ROAD'):
if CyGame().getSorenRandNum(100, "Trail") < 20 :
pPlot.setRouteType(gc.getInfoTypeForString('ROUTE_TRAIL'))
iFeature = pPlot.getFeatureType()
if iTerrain == iGrassland and pPlot.isHills() == False and pPlot.isPeak() == False:
iChance = iWetlandChance
if pPlot.isRiverSide() == True:
iChance = iWetlandChance * 5
if CyGame().getSorenRandNum(1000, "Wetlands") < iChance :
pPlot.setTerrainType(iWetland, False, False)
[i]if iTerrain == iPlains:
iChance = iPlainsChance
if CyGame().getSorenRandNum(1000, "Plains") < iChance :
pPlot.setTerrainType(iGrassland, False, False)[/i]
if iTerrain == iWetland :
if iImprovement == -1 and iBonus == -1 and pPlot.isCity () == False:
iChance = iSwampChance
if pPlayer.isHuman() == False:
iChance = iChance * 2
if CyGame().getSorenRandNum(1000, "Swamp") < iChance :
pPlot.setImprovementType(iSwamp)
[i]if iTerrain == iGrassland or iTerrain == iWetland:
if iFeature == -1 or iFeature == iForest or iFeature == iAncientForest:
iChance = iJungleChance
if iFeature == iForest or iFeature == iAncientForest:
iChance = iJungleChance * 5
if CyGame().getSorenRandNum(1000, "Jungle") < iChance :
pPlot.setFeatureType(iJungle, 0)[/i]
if (iImprovement == iSwamp) and (pPlot.getTerrainType() != iWetland) :
pPlot.setImprovementType(-1)