From dd059590c63cca66943da47c5b206e5422d0cbbb Mon Sep 17 00:00:00 2001 From: Shark that walks like a man <106829671+stwlam@users.noreply.github.com> Date: Mon, 17 Oct 2022 17:54:11 -0500 Subject: [PATCH] Bump version, update changelog (#9) --- .github/workflows/cd.yml | 2 +- CHANGELOG.md | 3 +++ module.json | 2 +- script.js | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b254e63..b0fff80 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -29,5 +29,5 @@ jobs: draft: false prerelease: false token: ${{ secrets.GITHUB_TOKEN }} - artifacts: './module.json,./*.md,./adequate-vision.zip' + artifacts: './module.json,./adequate-vision.zip' tag: ${{ env.moduleVersion }} diff --git a/CHANGELOG.md b/CHANGELOG.md index ada960f..29039f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.5 +* Limit See Invisibility detection mode to areas of map that are actually seen (contributed by dev7355608) + ## Version 0.0.4 * Add support for blindsight and truesight * Fiddle with darkvision contrast and brightness defaults diff --git a/module.json b/module.json index 7b46301..35aedeb 100644 --- a/module.json +++ b/module.json @@ -11,7 +11,7 @@ "scripts": [ "script.js" ], - "version": "0.0.4", + "version": "0.0.5", "compatibility": { "minimum": "10", "verified": "10.288" diff --git a/script.js b/script.js index d8563ca..4426ade 100644 --- a/script.js +++ b/script.js @@ -132,7 +132,7 @@ function updateTokens(actor, { force = false } = {}) { const canSeeInDark = ["darkvision", "devilsSight", "truesight"].some((m) => !!modes[m]); // Devil's sight and darkvision - if (modes.devilsSight && (sight.visionMode !== "devilsSight" || sight.range !== mode.devilsSight)) { + if (modes.devilsSight && (sight.visionMode !== "devilsSight" || sight.range !== modes.devilsSight)) { const defaults = CONFIG.Canvas.visionModes.devilsSight.vision.defaults; updates.sight = { visionMode: "devilsSight", ...defaults }; } else if (modes.darkvision && (sight.visionMode !== "darkvision" || sight.range !== modes.darkvision)) {