mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
addLakesInDeepDepressions
This commit is contained in:
parent
6cca0b7f38
commit
c8c1c24909
5 changed files with 113 additions and 39 deletions
|
|
@ -3,7 +3,7 @@
|
|||
})(this, function () {
|
||||
"use strict";
|
||||
|
||||
const generate = function (changeHeights = true) {
|
||||
const generate = function (allowErosion = true) {
|
||||
TIME && console.time("generateRivers");
|
||||
Math.random = aleaPRNG(seed);
|
||||
const cells = pack.cells,
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
defineRivers();
|
||||
Lakes.cleanupLakeData();
|
||||
|
||||
if (changeHeights) cells.h = Uint8Array.from(h); // apply changed heights as basic one
|
||||
if (allowErosion) cells.h = Uint8Array.from(h); // apply changed heights as basic one
|
||||
|
||||
TIME && console.timeEnd("generateRivers");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue