diff --git a/changelog.md b/changelog.md index 17e3781..f9943d4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,8 @@ # CHANGELOG + +## 2.3.3 + +- Stupid rename for fix https://github.com/p4535992/foundryvtt-arms-reach/issues/80 ### 2.3.0-1-2 [BREAKING CHANGES] - Beta Release for v11 diff --git a/package.json b/package.json index 83575a0..ad2068c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "arms-reach", "title": "FoundryVTT Arms Reach", "description": "Allows the GM to limit the distance that a player can interacted with a placeable object like door, journal, stairway, token, ecc..", - "version": "2.3.2", + "version": "2.3.3", "main": "module.js", "license": "SEE LICENSE IN LICENSE", "private": true, diff --git a/src/module.json b/src/module.json index 6432602..69a59bd 100644 --- a/src/module.json +++ b/src/module.json @@ -2,7 +2,7 @@ "id": "arms-reach", "title": "Arms Reach", "description": "Allows the GM to limit the distance that a player can interacted with a placeable object like door, journal, stairway, token, ecc..", - "version": "2.3.2", + "version": "2.3.3", "authors": [ { "name": "Psyny" @@ -91,10 +91,10 @@ }, "manifestPlusVersion": "1.2.1", "url": "https://github.com/p4535992/foundryvtt-arms-reach", - "manifest": "https://github.com/p4535992/foundryvtt-arms-reach/releases/download/v2.3.2/module.json", - "download": "https://github.com/p4535992/foundryvtt-arms-reach/releases/download/v2.3.2/module.zip", - "readme": "https://github.com/p4535992/foundryvtt-arms-reach/blob/v2.3.2/README.md", - "changelog": "https://github.com/p4535992/foundryvtt-arms-reach/blob/v2.3.2/changelog.md", + "manifest": "https://github.com/p4535992/foundryvtt-arms-reach/releases/download/v2.3.3/module.json", + "download": "https://github.com/p4535992/foundryvtt-arms-reach/releases/download/v2.3.3/module.zip", + "readme": "https://github.com/p4535992/foundryvtt-arms-reach/blob/v2.3.3/README.md", + "changelog": "https://github.com/p4535992/foundryvtt-arms-reach/blob/v2.3.3/changelog.md", "bugs": "https://github.com/p4535992/foundryvtt-arms-reach/issues", "allowBugReporter": true, "relationships": { diff --git a/src/scripts/ArmsReachHelper.mjs b/src/scripts/ArmsReachHelper.mjs index 9ef2254..edc8ea6 100644 --- a/src/scripts/ArmsReachHelper.mjs +++ b/src/scripts/ArmsReachHelper.mjs @@ -10,8 +10,8 @@ import { GeometricUtils } from "./lib/GeometricTokenUtils.mjs"; * @returns */ export const computeDistanceBetweenCoordinates = function (armsreachData, selectedToken, documentName, useGrids) { - const xPlaceable = armsreachData.x; //placeable._validPosition?.x ? placeable._validPosition?.x : placeable.x; - const yPlaceable = armsreachData.y; //placeable._validPosition?.y ? placeable._validPosition?.y : placeable.y; + const xPlaceable = armsreachData.x; //armsreachData._validPosition?.x ? armsreachData._validPosition?.x : armsreachData.x; + const yPlaceable = armsreachData.y; //armsreachData._validPosition?.y ? armsreachData._validPosition?.y : armsreachData.y; const wPlaceable = armsreachData.w; const hPlaceable = armsreachData.h; const centerX = armsreachData.centerX; @@ -21,8 +21,8 @@ export const computeDistanceBetweenCoordinates = function (armsreachData, select const unitSize = canvas.dimensions.distance; //canvas.grid?.grid?.options.dimensions.distance; if (useGrids) { - // const dist = computeDistanceBetweenCoordinatesOLD(placeable, character); - const dist = grids_between_token_and_placeable(selectedToken, placeable); + // const dist = computeDistanceBetweenCoordinatesOLD(armsreachData, character); + const dist = grids_between_token_and_placeable(selectedToken, armsreachData); return dist; } else { const dist = units_between_token_and_placeable(selectedToken, {