feat: render states - use global fn

This commit is contained in:
Azgaar 2024-09-02 02:35:50 +02:00
parent 23e2484526
commit 093014088c
2 changed files with 30 additions and 137 deletions

View file

@ -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) {