From 2121658875ffbcdcc222d9a481d5111ea762a605 Mon Sep 17 00:00:00 2001 From: Veilza <113429647+Veilza@users.noreply.github.com> Date: Mon, 12 Jun 2023 22:11:09 -0500 Subject: [PATCH] Confirmed to work on v11, and added the other PF2e default icons to the image checker code --- module.json | 4 ++-- show-token-art.js | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/module.json b/module.json index 5c4a4ff..2281442 100644 --- a/module.json +++ b/module.json @@ -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": [ diff --git a/show-token-art.js b/show-token-art.js index 73d4528..e6793f5 100644 --- a/show-token-art.js +++ b/show-token-art.js @@ -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 @@ -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 }