Add defaults for swade game system to generic speed provider

This commit is contained in:
Manuel Vögele
2021-03-18 19:05:29 +01:00
parent 0aee541eb3
commit e473fea121
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
## In development
### System compatibility
- Drag Ruler's Generic SpeedProvider is now aware of good default values for the Savage Worlds Adventure Edition game system
## 1.4.2 ## 1.4.2
### Bugfixes ### Bugfixes
- Drag Ruler now works again on gridless maps - Drag Ruler now works again on gridless maps
+4
View File
@@ -7,12 +7,16 @@ export function getDefaultSpeedAttribute() {
return "actor.data.data.mech.speed" return "actor.data.data.mech.speed"
case "pf1": case "pf1":
return "actor.data.data.attributes.speed.land.total" return "actor.data.data.attributes.speed.land.total"
case "swade":
return "actor.data.data.stats.speed.value"
} }
return "" return ""
} }
export function getDefaultDashMultiplier() { export function getDefaultDashMultiplier() {
switch (game.system.id) { switch (game.system.id) {
case "swade":
return 0
case "dnd5e": case "dnd5e":
case "lancer": case "lancer":
case "pf1": case "pf1":