mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
check lakes before depressiong fill
This commit is contained in:
parent
e7cf6e4f5a
commit
234814ee56
3 changed files with 39 additions and 3 deletions
|
|
@ -45,7 +45,7 @@
|
|||
delete feature.shoreline;
|
||||
delete feature.outCell;
|
||||
delete feature.closed;
|
||||
feature.height = rn(feature.height);
|
||||
feature.height = rn(feature.height, 3);
|
||||
|
||||
const inlets = feature.inlets?.filter(r => pack.rivers.find(river => river.i === r));
|
||||
if (!inlets || !inlets.length) delete feature.inlets;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue