mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +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
|
|
@ -72,12 +72,7 @@ function processFeatureRegeneration(event, button) {
|
|||
}
|
||||
|
||||
function regenerateRivers() {
|
||||
elevateLakes();
|
||||
Rivers.generate();
|
||||
for (const i of pack.cells.i) {
|
||||
const f = pack.features[pack.cells.f[i]]; // feature
|
||||
if (f.group === "freshwater") pack.cells.h[i] = 19; // de-elevate lakes
|
||||
}
|
||||
Rivers.specify();
|
||||
if (!layerIsOn("toggleRivers")) toggleRivers();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue