Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Terrain Mapper is a new module that lets the GM label the canvas with terrains. Each terrain can apply active effects to the token. This PR adds a check, relying on the Terrain Mapper API, to recalculate the distance based on whether each ruler segment will cross terrains.
Essentially, if the segment path hits a terrain that affects the token actor's movement attribute, the bonus/penalty is calculated for the affected portion of the segment. The total distance, for purposes of determining Drag Ruler color, is then adjusted based on this bonus/penalty.