Skip to content

Commit

Permalink
version 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Jul 24, 2023
1 parent d2a8ddc commit bd05e39
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/ArmsReachHelper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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, {
Expand Down

0 comments on commit bd05e39

Please sign in to comment.