Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f0c6ce1bcc | |||
| 7b392e5c9d | |||
| efe6eac5aa | |||
| 52b64c3016 | |||
| 48d0d17628 | |||
| 8101381cc4 |
@@ -1,3 +1,14 @@
|
||||
## 1.13.7
|
||||
### Compatibility
|
||||
- Drag Ruler's generic speed provider is now aware of good defaults for the Crucible game system
|
||||
|
||||
|
||||
## 1.13.6
|
||||
### Bugfixes
|
||||
- Fixed a bug that caused no measurements to be shown next to the ruler
|
||||
- Fixed a bug where diagonal paths would sometimes highlight squares that don't blong to the path on square maps
|
||||
|
||||
|
||||
## 1.13.5
|
||||
### Compatibility
|
||||
- Drag Ruler is now compatible with Foundry VTT v11 (thanks to pkonshik for doing much of the porting work!)
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
"id": "drag-ruler",
|
||||
"title": "Drag Ruler",
|
||||
"description": "When dragging a token displays a ruler showing how far you've moved that token.",
|
||||
"version": "1.13.5",
|
||||
"version": "1.13.7",
|
||||
"compatibility": {
|
||||
"minimum": "11",
|
||||
"verified": "11"
|
||||
@@ -11,7 +11,7 @@
|
||||
{
|
||||
"name": "Manuel Vögele",
|
||||
"email": "develop@manuel-voegele.de",
|
||||
"discord": "Stäbchenfisch#5107"
|
||||
"discord": "stabchenfisch"
|
||||
}
|
||||
],
|
||||
"esmodules": [
|
||||
@@ -80,7 +80,7 @@
|
||||
},
|
||||
"socket": true,
|
||||
"url": "https://github.com/manuelVo/foundryvtt-drag-ruler",
|
||||
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.13.5.zip",
|
||||
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.13.7.zip",
|
||||
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json",
|
||||
"readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md",
|
||||
"changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",
|
||||
|
||||
@@ -185,7 +185,7 @@ export function highlightMeasurementNative(
|
||||
tokenShape = [{x: 0, y: 0}],
|
||||
alpha = 1,
|
||||
) {
|
||||
const spacer = canvas.scene.gridType === CONST.GRID_TYPES.SQUARE ? 1.41 : 1;
|
||||
const spacer = canvas.scene.grid.type === CONST.GRID_TYPES.SQUARE ? 1.41 : 1;
|
||||
const nMax = Math.max(
|
||||
Math.floor(ray.distance / (spacer * Math.min(canvas.grid.w, canvas.grid.h))),
|
||||
1,
|
||||
|
||||
+1
-7
@@ -262,12 +262,6 @@ export function extendRuler() {
|
||||
if (!this.isDragRuler) {
|
||||
return super._computeDistance(gridSpaces);
|
||||
}
|
||||
if (!this.dragRulerEnableTerrainRuler) {
|
||||
if (!this.dragRulerIgnoreGrid) {
|
||||
gridSpaces = true;
|
||||
}
|
||||
super._computeDistance(gridSpaces);
|
||||
} else {
|
||||
const shape = this.draggedEntity ? getTokenShape(this.draggedEntity) : null;
|
||||
const options = {
|
||||
ignoreGrid: this.dragRulerIgnoreGrid,
|
||||
@@ -284,7 +278,7 @@ export function extendRuler() {
|
||||
s.distance = d;
|
||||
s.text = this._getSegmentLabel(s, totalDistance);
|
||||
}
|
||||
}
|
||||
|
||||
for (const [i, segment] of this.segments.entries()) {
|
||||
const unsnappedSegment = this.dragRulerUnsnappedSegments[i];
|
||||
unsnappedSegment.startDistance = segment.startDistance;
|
||||
|
||||
@@ -25,6 +25,8 @@ export function getDefaultSpeedAttribute() {
|
||||
return "actor.derivedValues.speed.value";
|
||||
case "wfrp4e":
|
||||
return "actor.system.details.move.walk";
|
||||
case "crucible":
|
||||
return "actor.system.movement.stride";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
@@ -49,6 +51,8 @@ export function getDefaultDashMultiplier() {
|
||||
return 3;
|
||||
case "wfrp4e":
|
||||
return 2;
|
||||
case "crucible":
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user