Skip to content

Commit

Permalink
Confirmed to work on v11, and added the other PF2e default icons to t…
Browse files Browse the repository at this point in the history
…he image checker code
  • Loading branch information
Veilza committed Jun 13, 2023
1 parent c178ed4 commit 2121658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"url": "https://github.com/Veilza"
}
],
"version": "1.0.1",
"version": "1.0.2",
"compatibility": {
"minimum": 10,
"verified": 10
"verified": 11
},
"socket": "true",
"scripts": [
Expand Down
8 changes: 5 additions & 3 deletions show-token-art.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ class ShowArt {
static getTokenImages(token, actor) {
const mysteryDefaults = [
"icons/svg/mystery-man.svg", // Foundry default icon
"systems/pf2e/icons/default-icons/character.svg" // PF2e default icon
"systems/pf2e/icons/default-icons/character.svg", // PF2e default icon
"systems/pf2e/icons/default-icons/npc.svg", // PF2e default icon for NPCs
"systems/pf2e/icons/default-icons/familiar.svg", //PF2e default icon for familiars
"systems/pf2e/icons/default-icons/hazard.svg", // PF2e default icon for hazards
"systems/pf2e/icons/default-icons/vehicle.svg" // PF2e default icon for vehicles
]
const actorData = token.actorData

Expand All @@ -166,10 +170,8 @@ class ShowArt {
// then replace the default with the opposing image path
if (avatarMystery) {
actorImg = avatarMystery ? tokenImg : actorImg
console.log("Token2!")
} else if (avatarMystery) {
tokenImg = tokenMystery ? actorImg : tokenImg
console.log("Token!")
}

return { actor: actorImg, token: tokenImg }
Expand Down

0 comments on commit 2121658

Please sign in to comment.