Releases: caewok/fvtt-elevation-ruler
Minor checks
Minor update with additional checks on presence of elevation increment flag. Additional logging.
Math is hard; grids are harder
Fix #3. When a grid is present, snap the projected destination point to the center of the grid. This keeps the distances consistent for different cardinalities. Rounding still occurs with grid measurements such that adjacent squares may have the same measured 3-D distance despite appearing to be closer/further from the origin point.
Fix dependency self-reference
Update manifest for libruler dependency to point to correct JSON URL. Fixes #2.
Avoid unnecessary Levels floor labels
Catch when no Levels tiles are present under the ruler position, so that Levels floor labels do not appear unnecessarily.
Levels compatibility
Add levels measurement function
- When over a levels tile, default to the bottom elevation of that tile.
- When over a levels hole, default to the bottom elevation of that hole.
- When starting at a token, stay at the floor level for that token unless over a hole or other token.
- Optional label for the current floor level.
Switch to using canvas.terrain.terrainsFromPixels
(requires Enhanced Terrain Layer 1.0.30+).
Update module id
Update Module ID in code to match that of the module.json. Move dependency check to ready hook. Fix isGM console error.
Preparation for Foundry release
Updated the module.json to use a name without special characters to conform to Foundry requirements. Update Foundry compatibility to 0.8.8.
Negative Elevation Display Fix.
Correct display of negative current elevation in ruler.
Terrain Elevation Measurement
Add terrain measurement feature.
- Use destination token elevation to automatically change ruler elevation.
- Use Enhanced Terrain Layer to automatically change ruler elevation.
- Change ruler display to show elevation change and current elevation at each waypoint.
- Updated readme.
libRuler 0.0.5 compatibility
Add compatibility for libRuler 0.0.5.
- Address the change to physical path (Object instead of Array).