diff --git a/main.js b/main.js index bd157459..e34b48e6 100644 --- a/main.js +++ b/main.js @@ -1397,7 +1397,7 @@ function defineBiomes() { // assign biome id to a cell function getBiomeId(moisture, temperature, height) { - if (height < 20) return 0; // marine biome: liquid water cells + if (height < 20) return 0; // marine biome: all water cells if (temperature < -5) return 11; // permafrost biome if (moisture > 40 && temperature > -2 && (height < 25 || (moisture > 24 && height > 24))) return 12; // wetland biome diff --git a/modules/names-generator.js b/modules/names-generator.js index 45455526..3bd647a3 100644 --- a/modules/names-generator.js +++ b/modules/names-generator.js @@ -99,7 +99,6 @@ window.Names = (function () { // parse word to get a final name const l = last(w); // last letter if (l === "'" || l === " " || l === "-") w = w.slice(0, -1); // not allow some characters at the end - const basic = !/[^\u0000-\u007f]/.test(w); // true if word has only basic characters let name = [...w].reduce(function (r, c, i, d) { if (c === d[i + 1] && !dupl.includes(c)) return r; // duplication is not allowed @@ -108,7 +107,6 @@ window.Names = (function () { if (r.slice(-1) === " ") return r + c.toUpperCase(); // capitalize letter after space if (r.slice(-1) === "-") return r + c.toUpperCase(); // capitalize letter after hyphen if (c === "a" && d[i + 1] === "e") return r; // "ae" => "e" - if (basic && i + 1 < d.length && !vowel(c) && !vowel(d[i - 1]) && !vowel(d[i + 1])) return r; // remove consonant between 2 consonants if (i + 2 < d.length && c === d[i + 1] && c === d[i + 2]) return r; // remove three same letters in a row return r + c; }, "");