Nommage homogène
This commit is contained in:
parent
3073670afa
commit
6d0e5321a2
@ -721,12 +721,12 @@ export class RdDCombat {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isVisible(token, defender) {
|
isVisible(token, defenderToken) {
|
||||||
return canvas.effects.visibility.testVisibility(defender.center, { object: token })
|
return canvas.effects.visibility.testVisibility(defenderToken.center, { object: token })
|
||||||
}
|
}
|
||||||
|
|
||||||
distance(t, defenderToken) {
|
distance(token, defenderToken) {
|
||||||
return Number(canvas.grid.measureDistances([{ ray: new Ray(t.center, defenderToken.center) }], { gridSpaces: false })).toFixed(1);
|
return Number(canvas.grid.measureDistances([{ ray: new Ray(token.center, defenderToken.center) }], { gridSpaces: false })).toFixed(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ajustementPortee(dist, arme) {
|
_ajustementPortee(dist, arme) {
|
||||||
|
Loading…
Reference in New Issue
Block a user