From d732f7ca17f207b1101c48204574f206973295d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 20 Apr 2021 17:02:37 +0200 Subject: [PATCH] Add defaults for dcc system --- CHANGELOG.md | 1 + src/systems.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef35fde..e90cb90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## In development ### Compatiblilty - Drag Ruler's Generic Speed Provider is now able to work with game systems that put non-number characters behind the tokens movement speed (like `30ft.`). One example for such a game system is Dungeon Crawl Classics. ([#60](https://github.com/manuelVo/foundryvtt-drag-ruler/issues/60)) +- The Generic Speed Provider now has good default settings for the Dungeon Crawl Classics (dcc) game system. ## 1.5.2 diff --git a/src/systems.js b/src/systems.js index c130fe1..3d94e6e 100644 --- a/src/systems.js +++ b/src/systems.js @@ -1,6 +1,8 @@ export function getDefaultSpeedAttribute() { switch (game.system.id) { + case "dcc": + return "actor.data.data.attributes.speed.value"; case "dnd5e": return "actor.data.data.attributes.movement.walk" case "lancer": @@ -17,6 +19,7 @@ export function getDefaultDashMultiplier() { switch (game.system.id) { case "swade": return 0 + case "dcc": case "dnd5e": case "lancer": case "pf1":