Movement speeds can be floats (fixes #85)

This commit is contained in:
Manuel Vögele
2021-06-22 23:14:53 +02:00
parent 9042b79967
commit 01d01f9887
+1 -1
View File
@@ -132,7 +132,7 @@ export class GenericSpeedProvider extends SpeedProvider {
const speedAttribute = this.getSetting("speedAttribute")
if (!speedAttribute)
return []
const tokenSpeed = parseInt(getProperty(token, speedAttribute));
const tokenSpeed = parseFloat(getProperty(token, speedAttribute));
if (tokenSpeed === undefined) {
console.warn(`Drag Ruler (Generic Speed Provider) | The configured token speed attribute "${speedAttribute}" didn't return a speed value. To use colors based on drag distance set the setting to the correct value (or clear the box to disable this feature).`)
return []