v1.5.276 - libs minification

This commit is contained in:
Azgaar 2021-02-14 16:49:35 +03:00
parent 1a2eb2291a
commit 71ca7a1166
17 changed files with 24 additions and 1226 deletions

View file

@ -6,7 +6,7 @@
const generate = function(changeHeights = true) {
TIME && console.time('generateRivers');
Math.seedrandom(seed);
Math.random = aleaPRNG(seed);
const cells = pack.cells, p = cells.p, features = pack.features;
// build distance field in cells from water (cells.t)
@ -250,7 +250,7 @@
const specify = function() {
if (!pack.rivers.length) return;
Math.seedrandom(seed);
Math.random = aleaPRNG(seed);
const smallLength = pack.rivers.map(r => r.length||0).sort((a,b) => a-b)[Math.ceil(pack.rivers.length * .15)];
const smallType = {"Creek":9, "River":3, "Brook":3, "Stream":1}; // weighted small river types