Flokey82 / genworldvoronoi

Generates a planet with basic climate simulation, city placement, Wavefront OBJ/SVG/PNG export, leaflet server, etc. WIP!
Apache License 2.0
4 stars 1 forks source link

Disasters: Use geoDisasters for disasters affecting cities #10

Open Flokey82 opened 1 year ago

Flokey82 commented 1 year ago

Currently we use a different set of disaster probabilities even tough we have already the basic disaster threat calculations in geoDisasters, which takes in account proximity to fault lines, volcanoes, big rivers etc.

Flokey82 commented 1 year ago

Also, getDisasterFunc() should be refactored to use the fitness functions in the same file, and return their respective propabilities so we can use them when we tick cities (or regions)