diff --git a/module.json b/module.json index 4a62ea2..8d20fb3 100644 --- a/module.json +++ b/module.json @@ -1,11 +1,10 @@ { + "id": "party-overview", "name": "party-overview", "title": "Party Overview", "description": "Provides an instant overview about vital stats of the players active in the current scene", - "version": "2.6.0", - "author": "Matheus Clemente (mclemente#5524), Sebastian Will (vttassets@gmail.com), Chris Wachal (Zamrod#9326)", + "version": "2.14", "minimumCoreVersion": "0.8.9", - "compatibleCoreVersion": "9", "languages": [ { "lang": "en", @@ -33,11 +32,28 @@ "path": "lang/ja.json" } ], - "esmodules": ["./party-overview.js"], - "styles": ["./style/party-overview.css"], - "packs": [], + "esmodules": ["party-overview.js"], + "styles": ["style/party-overview.css"], "url": "http://github.com/mclemente/party-overview", "bugs": "http://github.com/mclemente/party-overview/issues", - "manifest": "http://github.com/mclemente/party-overview/releases/latest/download/module.json", - "download": "http://github.com/mclemente/party-overview/releases/latest/download/module.zip" + "manifest": "https://github.com/mclemente/party-overview/releases/latest/download/module.json", + "download": "https://github.com/mclemente/party-overview/releases/latest/download/module.zip", + "authors": [ + { + "name": "Matheus Clemente", + "discord": "mclemente#5524" + }, + { + "name": "Sebastian Will", + "email": "vttassets@gmail.com" + }, + { + "name": "Chris Wachal", + "discord": "Zamrod#9326" + } + ], + "compatibility": { + "minimum": "0.8.9", + "verified": "10.273" + } } diff --git a/module/logic.js b/module/logic.js index 0f4efb5..cb71b3c 100644 --- a/module/logic.js +++ b/module/logic.js @@ -22,7 +22,12 @@ class PartyOverviewApp extends Application { update() { let actors = game.actors.contents.filter((a) => a.hasPlayerOwner); if (this.displayMode == DISPLAY_MODE.SHOW_PC_ONLY) { - let users = game.users.filter((u) => u.data.character).map((u) => u.data.character); + let users = game.users + .filter((u) => u.data.character) + .map((u) => { + if (game.version < 10) return u.data.character; + return u.data.character.id; + }); actors = actors.filter((playerActor) => users.includes(playerActor.data._id)); } else if (this.displayMode != DISPLAY_MODE.SHOW_MORE) { actors = actors