platyping
Sleeping Dragon
Local Warming
Features:
New Controllable Global Warming System
BTS Global Warming System as we all know, is a nuisance which is uncontrollable by our own actions and is very disruptive, so let's switch it off totally by setting all global defines related to 0.
Local Warming System is based on your own actions + global nuke activity, so it is more controllable.
Chance to occur based on Total Nukes Exploded + Net Health of the City.
There is a max chance value, so that even for the most unhealthy city, it will not occur every turn.
Thus, for very healthy cities, local warming may not occur at all, while dirty cities will suffer, although nukes will increase chance for every city in the world.
When Warming occurs, Terrain does not drop to desert immediately, but goes top down.
If your mod has many terrains, and you want to group certain terrains at same rank, just add in with ", ".
If self.bCoast is set to True, Coastal Desert can turn to Coast.
Features:
New Controllable Global Warming System
BTS Global Warming System as we all know, is a nuisance which is uncontrollable by our own actions and is very disruptive, so let's switch it off totally by setting all global defines related to 0.
Local Warming System is based on your own actions + global nuke activity, so it is more controllable.

Code:
self.iNukeChance = 20 # X out of 1000 Chance Per Nuke Exploded
self.iHealthChance = 5 # X out of 1000 Chance Per Net Unhealthy
self.iMaxChance = 750 # X out of 1000 Chance
self.lTerrain1 = ["TERRAIN_SNOW"]
self.lTerrain2 = ["TERRAIN_TUNDRA", "TERRAIN_GRASS"]
self.lTerrain3 = ["TERRAIN_PLAINS"]
self.lTerrain4 = ["TERRAIN_DESERT"]
self.lTerrains = [self.lTerrain1, self.lTerrain2, self.lTerrain3, self.lTerrain4]
self.bCoast = False # Allows Coastal Plots to Sink if it is at Lowest Grade
self.iCoast = gc.getInfoTypeForString("TERRAIN_COAST")
Chance to occur based on Total Nukes Exploded + Net Health of the City.
There is a max chance value, so that even for the most unhealthy city, it will not occur every turn.
Thus, for very healthy cities, local warming may not occur at all, while dirty cities will suffer, although nukes will increase chance for every city in the world.
When Warming occurs, Terrain does not drop to desert immediately, but goes top down.
If your mod has many terrains, and you want to group certain terrains at same rank, just add in with ", ".
If self.bCoast is set to True, Coastal Desert can turn to Coast.