Skip to content

Commit

Permalink
Merge branch 'release/0.8.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Jan 21, 2024
2 parents e092010 + dbdc696 commit 8c758fe
Show file tree
Hide file tree
Showing 30 changed files with 5,416 additions and 204 deletions.
11 changes: 11 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 0.8.0
Added pathfinding toggle. Pathfinding works on gridded (both hex and square) and gridless maps. Works when dragging tokens, if Token Ruler is enabled, or when using the Ruler control and you start at a token.

To benchmark pathfinding in a scene:
```js
api = game.modules.get("elevationruler").api;
api.pathfinding.benchPathfinding()
```

Refactored movement highlighting to work better with pathfinding.

# 0.7.8
More tweaks to how token origin and destination are set when dragging so that the token movement follows the position of the cloned dragged token. Revisits issue #30.
Fix issue where token dragging cannot move to the adjacent space. Closes issue #32.
Expand Down
4 changes: 3 additions & 1 deletion languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@
"elevationruler.settings.token-terrain-multiplier.name": "Token As Terrain Multiplier",
"elevationruler.settings.token-terrain-multiplier.hint": "Multiplier to use to calculate movement speed when moving through other tokens. Set to 1 to ignore. Values less than 1 treat token spaces as faster than normal; values greater than 1 penalize movement through token spaces.",

"elevationruler.controls.prefer-token-elevation.name": "Prefer Token Elevation"
"elevationruler.controls.prefer-token-elevation.name": "Prefer Token Elevation",
"elevationruler.controls.pathfinding-control.name": "Use Pathfinding"

}
6 changes: 6 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
}
]
},
"scripts": [
"/scripts/delaunator/delaunator.min.js",
"/scripts/delaunator/Constrainautor.min.js",
"/scripts/delaunator/cdt2d_bundle.js"
],

"esmodules": [
"/scripts/module.js"
],
Expand Down
Loading

0 comments on commit 8c758fe

Please sign in to comment.