mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
Elevated Lakes (#554)
Fix #465 (river/lake) by @CanisArtorus * Give lake features a height attribute * Outflow changes * Outlets afterwards * Fix river identities * Pathfind big river across small-basin lakes. * Scrap pathing, too ambitious * Delete extraneous (de-)elevateLakes * Code cleanup * Attempt drawing improvements * Make outflows a river again. * Edge Cases. Explore drawing width. * Pretty up. River initial width.
This commit is contained in:
parent
40e5930571
commit
ed33864e07
5 changed files with 120 additions and 70 deletions
|
|
@ -176,7 +176,6 @@ function editHeightmap() {
|
|||
reGraph();
|
||||
drawCoastline();
|
||||
|
||||
elevateLakes();
|
||||
Rivers.generate(change);
|
||||
|
||||
if (!change) {
|
||||
|
|
@ -289,7 +288,6 @@ function editHeightmap() {
|
|||
drawCoastline();
|
||||
|
||||
if (changeHeights.checked) {
|
||||
elevateLakes();
|
||||
Rivers.generate(changeHeights.checked);
|
||||
}
|
||||
|
||||
|
|
@ -314,7 +312,6 @@ function editHeightmap() {
|
|||
|
||||
for (const i of pack.cells.i) {
|
||||
const g = pack.cells.g[i];
|
||||
if (pack.features[pack.cells.f[i]].group === "freshwater") pack.cells.h[i] = 19; // de-elevate lakes
|
||||
const land = pack.cells.h[i] >= 20;
|
||||
|
||||
// check biome
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue