mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
feat: render states - use global fn
This commit is contained in:
parent
23e2484526
commit
093014088c
2 changed files with 30 additions and 137 deletions
|
|
@ -65,7 +65,7 @@ function getVertexPaths({getType, options}) {
|
|||
|
||||
function isLandVertex(vertex) {
|
||||
const adjacentCells = vertices.c[vertex];
|
||||
return adjacentCells.every(i => cells.h[i] >= MIN_LAND_HEIGHT);
|
||||
return adjacentCells.every(i => cells.h[i] >= 20);
|
||||
}
|
||||
|
||||
function addPath(index, vertexChain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue