Ethck / azgaar-foundry

Unofficial Azgaar's Fantasy Map Generator Import
MIT License
43 stars 15 forks source link

City Map link in Burgs Journals cause incorrect sized map generated by period in the number. #8

Closed CatbotTsumi closed 2 years ago

CatbotTsumi commented 3 years ago

Within the burgs journal entry, you'll find the city map link can have problematic values for population when a city has more population than 999. for example, my city has 21.869 population, which causes the map generator to just take 21

http://fantasycities.watabou.ru/?random=0&continuous=0&name=Kodo&population=21.869&size=NaN&seed=8160734200001&coast=NaN&citadel=1&plaza=0&temple=0&walls=1&shantytown=1

This should easily be fixed by removing the period in population before inserting it into the url.