Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrain Mapper compatibility #306

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Commits on Oct 13, 2023

  1. Add points parameter to getColorForDistanceAndToken

    Needed to calculate token distance across terrains (per segment).
    caewok authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    28c7d61 View commit details
    Browse the repository at this point in the history
  2. Add terrain mapper calculation when calculating distance

    Terrain Mapper assigns active effects to tokens as they move across the canvas. This addition uses the Terrain Mapper API to determine how the token movement is penalized or given a bonus based on terrain along the segment(s). That penalty or bonus is used to shrink or increase the perceived distance (from the token's frame of reference). 
    
    For example, if the token  movement is penalized by 50%, distance is accordingly increased by 200% to account for this.
    caewok authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    ea572ad View commit details
    Browse the repository at this point in the history