mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor: roads generation - reduce curves on routes rendering
This commit is contained in:
parent
fc3e3b844d
commit
e427050369
5 changed files with 68 additions and 37 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {TIME} from "config/logging";
|
||||
import {INFO, TIME} from "config/logging";
|
||||
import {getInputNumber} from "utils/nodeUtils";
|
||||
import {MAX_HEIGHT, MIN_LAND_HEIGHT} from "config/generation";
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ export function addLakesInDeepDepressions(heights: Uint8Array, neighbours: numbe
|
|||
|
||||
if (inDeepDepression) {
|
||||
currentHeights[cellId] = MIN_LAND_HEIGHT - 1;
|
||||
console.log(`ⓘ Added lake at deep depression. Cell: ${cellId}`);
|
||||
INFO && console.info(`ⓘ Added lake at deep depression. Cell: ${cellId}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue