Skip to content

Releases: caewok/fvtt-elevation-ruler

Fix the "elevation" in "elevation ruler"!

07 Feb 00:40
Compare
Choose a tag to compare

Improve path cleaning algorithm to remove multiple straight-line points. Closes issue #40.
Refactor measurement of distances and move distances to better account for 3d distance. Closes issue #41.
Remove animation easing for intermediate segments while keeping easing-in for the first segment and easing-out for the last segment.
Add CONFIG settings to change the unicode symbol displayed when the ruler is over terrain (or tokens, if tokens count as difficult terrain). Thanks @Aedif for the Font Awesome code example!

  • CONFIG.elevationruler.SPEED.terrainSymbol: You can use any text string here. Paste in a unicode symbol if you want a different symbol. For Font Awesome icons, use, e.g., "\uf0e7".
  • CONFIG.elevationruler.SPEED.useFontAwesome: Set to true to interpet the terrainSymbol as FA unicode.
    Update geometry lib to v0.2.15.

Breaking changes

The added methods Ruler.measureDistance and Ruler.measureMoveDistance were refactored and now take different parameters.

Full Changelog: 0.8.3...0.8.4

Movement choices and token avoidance

03 Feb 21:57
Compare
Choose a tag to compare

New features

  • Add setting for pathfinder to avoid all tokens or hostile tokens. Closes issue #37.
  • Add selector to Token HUD to choose between walk/fly/burrow movement types. Default is to automatically choose based on elevation. Closes issue #33.
  • Add getter Token.prototype.lastMoveDistance that tracks the last token move. If combat is active, this returns 0 if the token has not yet moved this round. Use Token.prototype._lastMoveDistance to find the actual last distance moved regardless of combat.
  • Add setting to round ruler measurements, for use with gridless scenes. Thanks @Larkinabout for the PR!

Bug fixes and other improvements

  • Misc. fixes to pathfinding to reduce likelihood of it failing to find a path or finding an incorrect path.
  • Fix for waypoint elevations not finite. Closes issue #38.
  • Refactor of elevation handling to account for Token Ruler tokens versus primary ruler.
  • Move settings related to speed properties to CONFIG.elevationruler.SPEED.

What's Changed

New Contributors

Full Changelog: 0.8.2...0.8.3

Distance and Speed Highlighting Improvements

30 Jan 01:52
Compare
Choose a tag to compare

Improvements to calculating distance on a grid. Improvements to splitting ruler segments when highlighting based on token speed. Closes issue #35. Improvements to treating tokens as difficult terrain for purposes of token speed highlighting.

Added a "hiking boot" displaying token movement distance in the ruler when difficult terrain is encountered (tokens or from Terrain Mapper module).

Full Changelog: 0.8.1...0.8.2

Bug fixes to pathfinding

22 Jan 21:52
Compare
Choose a tag to compare

Fix toggling pathfinding between waypoints.
Various fixes to display of ruler for other users.
Fixes for display of distance calculations between waypoints.
Possible fix for issue #33 (undefined token.bounds).

Full Changelog: 0.8.0...0.8.1

Pathfinding

21 Jan 00:59
Compare
Choose a tag to compare

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:

api = game.modules.get("elevationruler").api;
api.pathfinding.benchPathfinding();

Refactored movement highlighting to work better with pathfinding.

Full Changelog: 0.7.8...0.8.0

Token dragging origin/destination tweaks

10 Jan 21:22
Compare
Choose a tag to compare

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.

Tokens as difficult terrain

10 Jan 16:24
Compare
Choose a tag to compare

Allow GM to move tokens using the ruler regardless of obstacle. Closes issue #27.
Cancel the ruler when canceling the drag. Closes issue #28.
Add setting to treat tokens as difficult terrain. Closes issue #29.
Force the ruler to use the center of the (dragged) token. Closes issue #30.
Fix error message re setting when using Levels. Closes issue #31.

Import file fix

08 Jan 21:56
Compare
Choose a tag to compare

Fix incorrect Ruler.js import. Closes issue #26.

Unsnapping the Ruler

08 Jan 18:52
7ac6276
Compare
Choose a tag to compare

Fix for pause/unpause game not working due to conflict with token move using spacebar.
Add handling for unsnapping from the grid. If shift is held, unsnap ruler waypoints and destination. If measuring from a token, set the origin point of the ruler to the (possibly unsnapped) token center.
Fix incorrect case on Ruler.js. Closes issue #25.

Token Ruler and Token Speed Highlighting

08 Jan 02:23
Compare
Choose a tag to compare

Add option to enable a Token Ruler when dragging tokens.
Add option to use a token speed attribute to highlight in differing colors when using the ruler (from a token) or dragging tokens.