Watabou cities integration change, new Urban Density setting

New setting does not yet save/load - I don't want to change the .map file format.
This commit is contained in:
Dranorter 2021-10-06 17:27:27 -04:00
parent d1c0f25bb8
commit a96a42098f

View file

@ -403,9 +403,15 @@ function editBurg(id) {
document.getElementById("mfcgLink").setAttribute("href", mfcgURL);
}
function getBurgSeed(burg) {
return burg.MFCG || Number(`${seed}${String(burg.i).padStart(4, 0)}`);
}
function openMFCG(seed) {
if (!seed && burg.MFCGlink) {
openURL(burg.MFCGlink);
return;
}
const cells = pack.cells;
const name = elSelected.text();
const size = Math.ceil(2.13*Math.pow(burg.population * populationRate / urbanDensity,0.385));//Math.max(Math.min(rn(burg.population), 100), 6); // to be removed once change on MFDC is done
const population = rn(burg.population * populationRate * urbanization);
function getMFCGlink(burg) {
const {cells} = pack;