Skip to content

Commit

Permalink
V10 Support
Browse files Browse the repository at this point in the history
Barely no change besides a change to `user.data.character` and the manifest.
  • Loading branch information
mclemente committed Jul 20, 2022
1 parent 2c85664 commit 1b733a1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
32 changes: 24 additions & 8 deletions module.json
Original file line number Diff line number Diff line change
@@ -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 ([email protected]), Chris Wachal (Zamrod#9326)",
"version": "2.14",
"minimumCoreVersion": "0.8.9",
"compatibleCoreVersion": "9",
"languages": [
{
"lang": "en",
Expand Down Expand Up @@ -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": "[email protected]"
},
{
"name": "Chris Wachal",
"discord": "Zamrod#9326"
}
],
"compatibility": {
"minimum": "0.8.9",
"verified": "10.273"
}
}
7 changes: 6 additions & 1 deletion module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b733a1

Please sign in to comment.