Skip to content

Commit

Permalink
version 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Jul 23, 2023
1 parent 8e97264 commit 53acd71
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 275 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CHANGELOG
### 2.3.0-1 [BREAKING CHANGES]
### 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.1",
"version": "2.3.2",
"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.1",
"version": "2.3.2",
"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.1/module.json",
"download": "https://github.com/p4535992/foundryvtt-arms-reach/releases/download/v2.3.1/module.zip",
"readme": "https://github.com/p4535992/foundryvtt-arms-reach/blob/v2.3.1/README.md",
"changelog": "https://github.com/p4535992/foundryvtt-arms-reach/blob/v2.3.1/changelog.md",
"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",
"bugs": "https://github.com/p4535992/foundryvtt-arms-reach/issues",
"allowBugReporter": true,
"relationships": {
Expand Down
12 changes: 4 additions & 8 deletions src/scripts/ArmsReachHelper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export const computeDistanceBetweenCoordinates = function (armsreachData, select
const dist = grids_between_token_and_placeable(selectedToken, placeable);
return dist;
} else {
// TODO TO TEST
/*
const dist = units_between_token_and_placeable(selectedToken, {
x: xPlaceable,
y: yPlaceable,
Expand All @@ -38,20 +36,19 @@ export const computeDistanceBetweenCoordinates = function (armsreachData, select
centerY: centerY,
placeableObjectData: placeableObjectData,
});
*/
let dist = 0;
// TODO TO TEST
/*
let dist = 0;
if(documentName === TokenDocument.documentName) {
dist = GeometricUtils.TokenDistance(selectedToken, armsreachData);
} else {
dist = GeometricUtils.Distance(armsreachData, selectedToken);
}
*/
return dist;

}
};



/**
* Get center
* from tokenAttacher module
Expand Down Expand Up @@ -493,7 +490,6 @@ export const getPlaceablesAt = function (placeables, position) {
};

function placeableContains(placeable, position) {

const center = getCenter(placeable);
const x = center.x;
const y = center.y;
Expand Down
Loading

0 comments on commit 53acd71

Please sign in to comment.