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:
Alexander James 2021-02-04 06:33:08 -07:00 committed by GitHub
parent 40e5930571
commit ed33864e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 120 additions and 70 deletions

View file

@ -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();
}