Show diagnoal count in debug print

This commit is contained in:
Manuel Vögele
2022-03-08 11:49:27 +01:00
parent b68f3bbe29
commit 6604e322bd
+1 -1
View File
@@ -245,7 +245,7 @@ function paintGriddedPathfindingDebug(lastNode, token) {
debugGraphics.removeChildren().forEach(c => c.destroy()); debugGraphics.removeChildren().forEach(c => c.destroy());
let currentNode = lastNode; let currentNode = lastNode;
while (currentNode) { while (currentNode) {
let text = new PIXI.Text(currentNode.cost.toFixed(0)); let text = new PIXI.Text(currentNode.cost.toFixed(1));
let pixels = getSnapPointForTokenObj(getPixelsFromGridPositionObj(currentNode.node), token); let pixels = getSnapPointForTokenObj(getPixelsFromGridPositionObj(currentNode.node), token);
text.anchor.set(0.5, 1.0); text.anchor.set(0.5, 1.0);
text.x = pixels.x; text.x = pixels.x;