Nommage homogène

This commit is contained in:
Vincent Vandemeulebrouck 2022-10-08 11:56:52 +02:00
parent 3073670afa
commit 6d0e5321a2

View File

@ -721,12 +721,12 @@ export class RdDCombat {
}
}
isVisible(token, defender) {
return canvas.effects.visibility.testVisibility(defender.center, { object: token })
isVisible(token, defenderToken) {
return canvas.effects.visibility.testVisibility(defenderToken.center, { object: token })
}
distance(t, defenderToken) {
return Number(canvas.grid.measureDistances([{ ray: new Ray(t.center, defenderToken.center) }], { gridSpaces: false })).toFixed(1);
distance(token, defenderToken) {
return Number(canvas.grid.measureDistances([{ ray: new Ray(token.center, defenderToken.center) }], { gridSpaces: false })).toFixed(1);
}
_ajustementPortee(dist, arme) {