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

Conversation

caewok
Copy link

@caewok caewok commented Oct 13, 2023

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.

Needed to calculate token distance across terrains (per segment).
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant