Compare commits

...

2 Commits

Author SHA1 Message Date
Manuel Vögele 8522c9a811 Release v1.3.1 2021-02-22 05:34:08 +01:00
Manuel Vögele d5fd5e0d04 Dash multiplier 0 now works again 2021-02-22 05:29:00 +01:00
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,3 +1,8 @@
## 1.3.1
### Bugfixes
- Fixed a bug where the coloring of ranges wouldn't work with the generic speed provider if the Dash Multiplier was set to 0
## 1.3.0 ## 1.3.0
### New features ### New features
- The color used to indicate speed ranges is now configurable - The color used to indicate speed ranges is now configurable
+2 -2
View File
@@ -2,7 +2,7 @@
"name": "drag-ruler", "name": "drag-ruler",
"title": "Drag Ruler", "title": "Drag Ruler",
"description": "When dragging a token displays a ruler showing how far you've moved that token.", "description": "When dragging a token displays a ruler showing how far you've moved that token.",
"version": "1.3.0", "version": "1.3.1",
"minimumCoreVersion" : "0.7.9", "minimumCoreVersion" : "0.7.9",
"compatibleCoreVersion" : "0.7.9", "compatibleCoreVersion" : "0.7.9",
"authors": [ "authors": [
@@ -31,7 +31,7 @@
} }
], ],
"url": "https://github.com/manuelVo/foundryvtt-drag-ruler", "url": "https://github.com/manuelVo/foundryvtt-drag-ruler",
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.3.0.zip", "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.3.1.zip",
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json", "manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json",
"readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md", "readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md",
"changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md", "changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",
+1 -1
View File
@@ -115,7 +115,7 @@ export class GenericSpeedProvider extends SpeedProvider {
} }
const dashMultiplier = this.getSetting("dashMultiplier") const dashMultiplier = this.getSetting("dashMultiplier")
if (!dashMultiplier) if (!dashMultiplier)
return [{range: tokenSpeed, color: playercolor}] return [{range: tokenSpeed, color: "walk"}]
return [{range: tokenSpeed, color: "walk"}, {range: tokenSpeed * dashMultiplier, color: "dash"}] return [{range: tokenSpeed, color: "walk"}, {range: tokenSpeed * dashMultiplier, color: "dash"}]
} }