mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor: addLakesInDeepDepressions
This commit is contained in:
parent
b2f16c4b8f
commit
3c6da6585e
16 changed files with 250 additions and 266 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import * as d3 from "d3";
|
||||
|
||||
import {markupPackFeatures} from "modules/markup";
|
||||
import {markupPackFeatures} from "scripts/generation/markup";
|
||||
// @ts-expect-error js module
|
||||
import {drawScaleBar} from "modules/measurers";
|
||||
// @ts-expect-error js module
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import {getInputNumber} from "utils/nodeUtils";
|
|||
import {pick} from "utils/functionUtils";
|
||||
import {byId} from "utils/shorthands";
|
||||
import {mergeLakeData, getClimateData, ILakeClimateData} from "./lakes";
|
||||
import {drawArrow} from "utils/debugUtils";
|
||||
|
||||
const {Rivers} = window;
|
||||
const {LAND_COAST} = DISTANCE_FIELD;
|
||||
|
|
@ -376,8 +375,7 @@ const resolveDepressions = function (
|
|||
return [initialCellHeights, {}];
|
||||
}
|
||||
|
||||
INFO &&
|
||||
console.info(`ⓘ Resolved all depressions. Depressions: ${depressions[0]}. Interations: ${depressions.length}`);
|
||||
INFO && console.info(`ⓘ Resolved all depressions. Depressions: ${depressions[0]}. Iterations: ${depressions.length}`);
|
||||
return [currentCellHeights, currentDrainableLakes];
|
||||
|
||||
// define lakes that potentially can be open (drained into another water body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue