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.24
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Mar 31, 2022
1 parent 49cd138 commit 9bacc37
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 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.23
### 0.5.23-24

- Bug fix on unset flag and repair method

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.23",
"version": "0.5.24",
"scripts": {
"package": "gulp package",
"build": "gulp build && gulp link",
Expand Down
1 change: 1 addition & 0 deletions src/conditional-visibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ Hooks.once('libChangelogsReady', function () {
libChangelogs.register(
CONSTANTS.MODULE_NAME,
`
- Bug fix on unset flag and repair method
- Solved https://github.com/p4535992/conditional-visibility/issues/25
- Possibily solved https://github.com/p4535992/conditional-visibility/issues/24
- Possibly solved https://github.com/p4535992/conditional-visibility/issues/12#issuecomment-1083758580
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.23",
"version": "0.5.24",
"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.23/module.zip",
"readme": "https://github.com/p4535992/conditional-visibility/blob/v0.5.23/README.md",
"changelog": "https://github.com/p4535992/conditional-visibility/blob/v0.5.23/changelog.md",
"download": "https://github.com/p4535992/conditional-visibility/releases/download/v0.5.24/module.zip",
"readme": "https://github.com/p4535992/conditional-visibility/blob/v0.5.24/README.md",
"changelog": "https://github.com/p4535992/conditional-visibility/blob/v0.5.24/changelog.md",
"bugs": "https://github.com/p4535992/conditional-visibility/issues",
"allowBugReporter": true,
"dependencies": [
Expand Down
18 changes: 18 additions & 0 deletions src/module/lib/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1913,6 +1913,24 @@ export async function repairAndSetFlag(token: Token, key: string, value: AtcvEff
}
}
}
if (!thereISADifference) {
const currentAtcvEffectFlagData = <AtcvEffect>token?.actor?.getFlag(CONSTANTS.MODULE_NAME, key);
if (value.visionLevelValue != currentAtcvEffectFlagData.visionLevelValue) {
thereISADifference = true;
} else if (value.visionElevation != currentAtcvEffectFlagData.visionElevation) {
thereISADifference = true;
} else if (value.visionDistanceValue != currentAtcvEffectFlagData.visionDistanceValue) {
thereISADifference = true;
} else if (value.visionTargets != currentAtcvEffectFlagData.visionTargets) {
thereISADifference = true;
} else if (value.visionSources != currentAtcvEffectFlagData.visionSources) {
thereISADifference = true;
} else if (value.visionTargetImage != currentAtcvEffectFlagData.visionTargetImage) {
thereISADifference = true;
} else if (value.visionType != currentAtcvEffectFlagData.visionType) {
thereISADifference = true;
}
}
} else {
thereISADifference = true;
}
Expand Down

0 comments on commit 9bacc37

Please sign in to comment.