diff --git a/languages/en.json b/languages/en.json index 7daa5d8..89ac169 100644 --- a/languages/en.json +++ b/languages/en.json @@ -121,6 +121,9 @@ "elevationruler.drawingconfig.movementPenalty.name": "Movement Bonus/Penalty", "elevationruler.drawingconfig.movementPenalty.hint": "Set to 1 for no penalty. Values greater than one penalize movement by that percent; values less than one effectively grant a bonus to movement. For example, set to 2 to double movement 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. For example, set to 5 to add +5 to each square of movement. Negative values provide flat bonuses to movement.", + "elevationruler.clearMovement": "Clear Combatant Movement", "elevationruler.waypoint": "waypoint", "elevationruler.up": "up", diff --git a/scripts/const.js b/scripts/const.js index 8c13765..cd03a90 100644 --- a/scripts/const.js +++ b/scripts/const.js @@ -16,6 +16,7 @@ export const TEMPLATES = { export const FLAGS = { MOVEMENT_SELECTION: "selectedMovementType", MOVEMENT_PENALTY: "movementPenalty", + MOVEMENT_PENALTY_FLAT: "flatMovementPenalty", SCENE: { BACKGROUND_ELEVATION: "backgroundElevation" }, diff --git a/templates/drawing-config.html b/templates/drawing-config.html index 2eaef75..25f7b31 100644 --- a/templates/drawing-config.html +++ b/templates/drawing-config.html @@ -4,10 +4,18 @@
- {{rangePicker name="flags.elevationruler.movementPenalty" value=object.flags.elevationruler.movementPenalty step=0.1 min=0.1 max=10}} +

{{ localize "elevationruler.drawingconfig.movementPenalty.hint" }}

+
+ +
+ +
+

{{ localize "elevationruler.drawingconfig.flatMovementPenalty.hint" }}

+
+ \ No newline at end of file