If Terran Ruler is enabled, store the length of the traveled path so changes to difficult terrain aren't reflected in the tokens movement history

This commit is contained in:
Manuel Vögele
2021-04-12 16:11:29 +02:00
parent 5d93c61f0c
commit 9787a41fd1
4 changed files with 34 additions and 8 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ export class DragRulerRuler extends Ruler {
}
dragRulerAddWaypointHistory(waypoints) {
waypoints = waypoints.map(waypoint => {return {x: waypoint.x, y: waypoint.y, isPrevious: true}});
waypoints.forEach(waypoint => waypoint.isPrevious = true);
this.waypoints = this.waypoints.concat(waypoints);
for (const waypoint of waypoints) {
this.labels.addChild(new PreciseText("", CONFIG.canvasTextStyle));