manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
39 stars 50 forks source link

Ability to set max length of path when pathfinding (mini feature request) #298

Open Fabrice-Schoeneberger opened 11 months ago

Fabrice-Schoeneberger commented 11 months ago

When allowing players to use pathfinding, they can, even on accident, discover paths that they don't know about yet. For smaller distances, this is not that bad, but it ruins the fun when you drag your token through a closed door and then see that there is a hole path around the map. I propose a simple solution. make it so that GM can set a max pathlength. this can by default set to the token speed. If the pathfinding algorhytm now finds a path that is longer that this max pathlength, it just doesn't show the path at all, as if there was no path. This would prevent hole maps from beeing relealed on accident

OmegaRogue commented 5 months ago

This would also reduce lag caused by pathfinding on maps with complex wall setups