def doSignBhall(argsList):
kTriggeredData = argsList[0]
iDesert = gc.getInfoTypeForString('TERRAIN_DESERT')
iGrass = gc.getInfoTypeForString('TERRAIN_GRASS')
iPlains = gc.getInfoTypeForString('TERRAIN_PLAINS')
iSnow = gc.getInfoTypeForString('TERRAIN_SNOW')
iTundra = gc.getInfoTypeForString('TERRAIN_TUNDRA')
for i in range (CyMap().numPlots()):
if CyGame().getSorenRandNum(100, "SignBhall") < 10:
pPlot = CyMap().plotByIndex(i)
if pPlot.getFeatureType() == -1:
if pPlot.getImprovementType() == -1:
if pPlot.isWater() == False:
iTerrain = pPlot.getTerrainType()
if iTerrain == iSnow:
pPlot.setTempTerrainType(iTundra, CyGame().getSorenRandNum(10, "Bob") + 10)
if iTerrain == iTundra:
pPlot.setTempTerrainType(iGrass, CyGame().getSorenRandNum(10, "Bob") + 10)
if iTerrain == iGrass:
pPlot.setTempTerrainType(iPlains, CyGame().getSorenRandNum(10, "Bob") + 10)
if iTerrain == iPlains:
pPlot.setTempTerrainType(iDesert, CyGame().getSorenRandNum(10, "Bob") + 10)
....
def doSignMulcarn(argsList):
kTriggeredData = argsList[0]
iDesert = gc.getInfoTypeForString('TERRAIN_DESERT')
iGrass = gc.getInfoTypeForString('TERRAIN_GRASS')
iPlains = gc.getInfoTypeForString('TERRAIN_PLAINS')
iSnow = gc.getInfoTypeForString('TERRAIN_SNOW')
iTundra = gc.getInfoTypeForString('TERRAIN_TUNDRA')
for i in range (CyMap().numPlots()):
if CyGame().getSorenRandNum(100, "SignMulcarn") < 10:
pPlot = CyMap().plotByIndex(i)
if pPlot.getFeatureType() == -1:
if pPlot.getImprovementType() == -1:
if pPlot.isWater() == False:
iTerrain = pPlot.getTerrainType()
if iTerrain == iTundra:
pPlot.setTempTerrainType(iSnow, CyGame().getSorenRandNum(10, "Bob") + 10)
if iTerrain == iGrass:
pPlot.setTempTerrainType(iTundra, CyGame().getSorenRandNum(10, "Bob") + 10)
if iTerrain == iPlains:
pPlot.setTempTerrainType(iTundra, CyGame().getSorenRandNum(10, "Bob") + 10)
if iTerrain == iDesert:
pPlot.setTempTerrainType(iPlains, CyGame().getSorenRandNum(10, "Bob") + 10)