From e473fea12153e4936f78ab6fad08d2a1040bfd27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Thu, 18 Mar 2021 19:05:29 +0100 Subject: [PATCH] Add defaults for swade game system to generic speed provider --- CHANGELOG.md | 5 +++++ src/systems.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6bc7da..6419525 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ### Bugfixes - Drag Ruler now works again on gridless maps diff --git a/src/systems.js b/src/systems.js index 359b460..c130fe1 100644 --- a/src/systems.js +++ b/src/systems.js @@ -7,12 +7,16 @@ export function getDefaultSpeedAttribute() { return "actor.data.data.mech.speed" case "pf1": return "actor.data.data.attributes.speed.land.total" + case "swade": + return "actor.data.data.stats.speed.value" } return "" } export function getDefaultDashMultiplier() { switch (game.system.id) { + case "swade": + return 0 case "dnd5e": case "lancer": case "pf1":