Hello peeps, I was wondering how to either disable or reduce(Prefered) the amount of storms that spawn in and around the sea. To about half of what it is now.
Last game, Standard map using the perfectworld2 option, and I counted over a 100 storms.
Edit:
Ah Perfectstorm option has no storms
I'd still liek to know how to just reduce the storms though
Found this in the py, guessing I need to change something here? (Python is a bit over ma head atm)
Last game, Standard map using the perfectworld2 option, and I counted over a 100 storms.
Edit:
Ah Perfectstorm option has no storms
I'd still liek to know how to just reduce the storms though
def createStorm():
gc = CyGlobalContext()
mmap = gc.getMap()
featureStorm = gc.getInfoTypeForString("FEATURE_STORM")
stormChance = 0.08
for y in range(mc.height - 1):
if ( y >= 5 and y <= (mc.height - 5)):
for x in range(mc.width):
plot = mmap.plot(x,y)
if plot != 0 and plot.isWater() == True and PRand.random() < stormChance:
plot.setFeatureType(featureStorm,0)
Found this in the py, guessing I need to change something here? (Python is a bit over ma head atm)