Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
version 0.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Mar 25, 2022
1 parent 353cb35 commit 28a04b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 0.5.7-8-9-10
### 0.5.7-8-9-10-11

- Apply integration with `data.attributes.sense` for dnd5 systerm
- Some bug fix
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "conditional-visibility",
"title": "Conditional Visibility",
"description": "Hide tokens from some players, but not others, based on the senses the players have. Uses unknown, newspaper, and foggy icons made by <a href=\"https://www.flaticon.com/authors/freepik\" title=\"Freepik\">Freepik</a>, from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>. Moon icon made by <a href=\"https://www.flaticon.com/authors/iconixar\" title=\"iconixar\">iconixar</a> from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>",
"version": "0.5.10",
"version": "0.5.11",
"scripts": {
"package": "gulp package",
"build": "gulp build && gulp link",
Expand Down
8 changes: 4 additions & 4 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "conditional-visibility",
"title": "Conditional Visibility",
"description": "Hide tokens from some players, but not others, based on the senses the players have. Uses unknown, newspaper, and foggy icons made by <a href=\"https://www.flaticon.com/authors/freepik\" title=\"Freepik\">Freepik</a>, from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>. Moon icon made by <a href=\"https://www.flaticon.com/authors/iconixar\" title=\"iconixar\">iconixar</a> from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>",
"version": "0.5.10",
"version": "0.5.11",
"author": "Greg Ludington, p4535992, Szefo09, Teshynil",
"type": "module",
"socket": true,
Expand Down Expand Up @@ -61,9 +61,9 @@
"manifestPlusVersion": "1.2.0",
"url": "https://github.com/p4535992/conditional-visibility",
"manifest": "https://github.com/p4535992/conditional-visibility/releases/latest/download/module.json",
"download": "https://github.com/p4535992/conditional-visibility/releases/download/v0.5.10/module.zip",
"readme": "https://github.com/p4535992/conditional-visibility/blob/v0.5.10/README.md",
"changelog": "https://github.com/p4535992/conditional-visibility/blob/v0.5.10/changelog.md",
"download": "https://github.com/p4535992/conditional-visibility/releases/download/v0.5.11/module.zip",
"readme": "https://github.com/p4535992/conditional-visibility/blob/v0.5.11/README.md",
"changelog": "https://github.com/p4535992/conditional-visibility/blob/v0.5.11/changelog.md",
"bugs": "https://github.com/p4535992/conditional-visibility/issues",
"allowBugReporter": true,
"dependencies": [
Expand Down
7 changes: 5 additions & 2 deletions src/module/lib/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ export function shouldIncludeVision(sourceToken: Token, targetToken: Token): boo
if (!sourceToken || !targetToken) {
return true;
}
if(targetToken.data.hidden){
return false;
}

// ===============================================
// 0 - Checkout the ownership of the target and the disposition of the target
Expand Down Expand Up @@ -511,7 +514,7 @@ export function shouldIncludeVision(sourceToken: Token, targetToken: Token): boo
// 8) Check again for _passive perception vs passive stealth_ like on point 4) this time we use the hidden active effect like the stealth passive on the target token...
// THIS WILL BE CHECK ONLY IF ONE CONDITION IS PRESENT ON THE TARGET AND THE CONDITION TYPE IS 'HIDDEN'
if (game.settings.get(CONSTANTS.MODULE_NAME, 'autoPassivePerception')) {
if (sourceVisionLevels.length === 0) {
//if (sourceVisionLevels.length === 0) {
let isTheCaseWhenOnlyTheHiddenConditionIsPresentOnTarget = true;
let currentHiddenValue = 0;
for (const targetVisionLevel of targetVisionLevels) {
Expand Down Expand Up @@ -543,7 +546,7 @@ export function shouldIncludeVision(sourceToken: Token, targetToken: Token): boo
return true;
}
}
}
//}
}
debug(
`(8) Is the case when only the hidden condition is present on target: Is false, target ${
Expand Down

0 comments on commit 28a04b2

Please sign in to comment.