Closed ronaldsf1977 closed 3 years ago
This has been included for awhile, but it may have broken last release, either way it's fixed now.
Thanks for following up. After getting your reply, I tested it out and it still has the issue. I then updated the Module (v2.2.2) and made sure my PF2e version is up to date (v1.10.15.2210). I'm also using Foundry 0.7.5. But still the same issue (screenshot attached, it should read as 30' in Pathfinder). I hope this clarifies! [image: screenshot3.png]
On Thu, Nov 5, 2020 at 3:39 PM Will Saunders notifications@github.com wrote:
This has been included for awhile, but it may have broken last release, either way it's fixed now.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wsaunders1014/ShowDragDistance/issues/62#issuecomment-722707346, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARUJLOD5KYWPQ4TNTQKEMETSOMZTLANCNFSM4TKNR7GA .
--
Ronald Cruz Organizer and Attorney, United for Equality and Affirmative Action Legal Defense Fund (UEAALDF) phone (313) 683-0942 fax (313) 586-0089 ronald.cruz@ueaa.net
----------------------------------------------------------------ATTORNEY-CLIENT PRIVILEGED & CONFIDENTIAL COMMUNICATION: This e-mail message is for the sole use of the designated recipient(s) and may contain legally confidential and privileged information. Any unauthorized review, use, distribution or disclosure is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Replace line 799 of showdragdistance.js with this
if((game.system.id == 'dnd5e' && canvas.grid.diagonalRule == '5105') || game.system.id == 'pf2e'){
let dx2 = Math.abs(points[i].col - rCol);
let dy2 = Math.abs(points[i].row - rRow);
let nd = Math.min(dx2, dy2);
if(nd>0){
nDiagonals++;
if(nDiagonals%2==0){
dist = dist * 2;
}
}
}
Okay, thanks!
On Thu, Nov 5, 2020 at 6:33 PM Will Saunders notifications@github.com wrote:
Replace line 799 of showdragdistance.js with this
if((game.system.id == 'dnd5e' && canvas.grid.diagonalRule == '5105') || game.system.id == 'pf2e'){
let dx2 = Math.abs(points[i].col - rCol); let dy2 = Math.abs(points[i].row - rRow); let nd = Math.min(dx2, dy2);
if(nd>0){ nDiagonals++; if(nDiagonals%2==0){ dist = dist * 2; } }
}```
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wsaunders1014/ShowDragDistance/issues/62#issuecomment-722771933, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARUJLOH5IF7RONV2ASK4BC3SONN7BANCNFSM4TKNR7GA .
--
Ronald Cruz Organizer and Attorney, United for Equality and Affirmative Action Legal Defense Fund (UEAALDF) phone (313) 683-0942 fax (313) 586-0089 ronald.cruz@ueaa.net
----------------------------------------------------------------ATTORNEY-CLIENT PRIVILEGED & CONFIDENTIAL COMMUNICATION: This e-mail message is for the sole use of the designated recipient(s) and may contain legally confidential and privileged information. Any unauthorized review, use, distribution or disclosure is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
This module is great! But it doesn't have an option to account for how other D&D 3.x and Pathfinder 1e & 2e measure distance on diagonals (every 2nd diagonal counts as 10').
Please allow this as an option for the future. Thanks in advance!