From d2876671cfbdeed1d12a2564ae8d79eeecf7883e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Wed, 12 May 2021 16:20:05 +0200 Subject: [PATCH] Add default values for Starfinder to the Generic Speed Provider --- CHANGELOG.md | 3 +++ src/systems.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4042349..891c839 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ ### Bugfixes - Fixed a bug that sometimes measured diagonals incorrectly with the 5/10/5 grid rule +### Compatibility +- Drag Ruler's Generic Speed Provider is now aware of good default values for the Starfinder game system + ### Translation - Corrected typos in the german translation (thanks to CarnVanBeck!) diff --git a/src/systems.js b/src/systems.js index 52a1e99..5d287d0 100644 --- a/src/systems.js +++ b/src/systems.js @@ -9,6 +9,8 @@ export function getDefaultSpeedAttribute() { return "actor.data.data.mech.speed" case "pf1": return "actor.data.data.attributes.speed.land.total" + case "sfrpg": + return "actor.data.data.attributes.speed.value"; case "shadowrun5e": return "actor.data.data.movement.walk.value"; case "swade": @@ -25,6 +27,7 @@ export function getDefaultDashMultiplier() { case "dnd5e": case "lancer": case "pf1": + case "sfrpg": case "shadowrun5e": return 2 }