From 36eadf612c0ca312cf9fdb7fc0c5e1c6af85bbd4 Mon Sep 17 00:00:00 2001 From: Michael Enion Date: Sat, 31 Aug 2024 12:29:07 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix|Settings|Flat=20penalty=20fo?= =?UTF-8?q?r=20tokens=20not=20appearing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- languages/en.json | 9 ++++++--- scripts/settings.js | 9 +++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/languages/en.json b/languages/en.json index bdd6fd1..ee922d1 100644 --- a/languages/en.json +++ b/languages/en.json @@ -76,8 +76,11 @@ "elevationruler.settings.round-to-multiple.name": "Round Distance to Multiple", "elevationruler.settings.round-to-multiple.hint": "Round the distance displayed to the nearest multiple of the number entered. Set to 0 to disable rounding.", - "elevationruler.settings.token-terrain-multiplier.name": "Token as Terrain Multiplier", - "elevationruler.settings.token-terrain-multiplier.hint": "Multiplier to use to calculate movement speed when moving through other tokens. Set to 1 to ignore. Values less than 1 treat token spaces as faster than normal; values greater than 1 penalize movement through token spaces.", + "elevationruler.settings.token-terrain-multiplier.name": "Token Penalty Percent", + "elevationruler.settings.token-terrain-multiplier.hint": "Penalize movement through other tokens. Set to 1 for no penalty, less than one to grant a bonus, greater than 1 to impose a penalty multiplier. For example, set to 2 to double movement cost through a token.", + + "elevationruler.settings.token-terrain-multiplier-flat.name": "Flat Token Penalty", + "elevationruler.settings.token-terrain-multiplier-flat.hint": "If enabled, treats the token move penalty as a fixed amount of additional distance. For example, set to 5 to add +5 to each square of movement. Negative values provide a flat bonus.", "elevationruler.settings.pathfinding_enable.name": "Use Pathfinding", "elevationruler.settings.pathfinding_enable.hint": "When enabled, adds a pathfinding togglee to the Token controls that will cause the ruler to map a path around walls and tokens, depending on settings. Disable this if pathfinding is causing compatibility issues. Disabling may also result in a small performance increase.", @@ -126,7 +129,7 @@ "elevationruler.drawingconfig.movementPenalty.hint": "Set to 1 for no penalty, less than one to grant a bonus, greater than 1 to impose a penalty multiplier. For example, set to 2 to double movement cost through this area. Movement under the drawing elevation will be ignored.", "elevationruler.drawingconfig.flatMovementPenalty.name": "Use Flat Penalty", - "elevationruler.drawingconfig.flatMovementPenalty.hint": "If enabled, treats the penalty as a fixed amount of additional distance. For example, set to 5 to add +5 to each square of movement. Negative values provide flat bonuses to movement.", + "elevationruler.drawingconfig.flatMovementPenalty.hint": "If enabled, treats the penalty as a fixed amount of additional distance. For example, set to 5 to add +5 to each square of movement. Negative values provide a flat bonus.", "elevationruler.clearMovement": "Clear Combatant Movement", "elevationruler.waypoint": "waypoint", diff --git a/scripts/settings.js b/scripts/settings.js index fe79773..2076fb7 100644 --- a/scripts/settings.js +++ b/scripts/settings.js @@ -52,7 +52,7 @@ const SETTINGS = { COMBAT_HISTORY: "token-ruler-combat-history", FORCE_GRID_PENALTIES: "force-grid-penalties", TOKEN_MULTIPLIER: "token-terrain-multiplier", - TOKEN_MULTIPLIER_FLAT: "token-terrain-multiplier" + TOKEN_MULTIPLIER_FLAT: "token-terrain-multiplier-flat" }, NO_MODS: "no-modules-message", @@ -318,13 +318,10 @@ export class Settings extends ModuleSettingsAbstract { scope: "world", config: true, default: 1, - type: Number, - range: { - step: 0.1 - } + type: Number }); - register(KEYS.MEASURING.TOKEN_MULTIPLIER, { + register(KEYS.MEASURING.TOKEN_MULTIPLIER_FLAT, { name: localize(`${KEYS.MEASURING.TOKEN_MULTIPLIER_FLAT}.name`), hint: localize(`${KEYS.MEASURING.TOKEN_MULTIPLIER_FLAT}.hint`), scope: "world",