Skip to content

Commit

Permalink
12.331.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jopeek committed Sep 16, 2024
1 parent a4e01c8 commit 3c6e86c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Token Info Icons",
"description": "Simple module that displays Speed, AC, and Passive Perception on Tokens for the GM or optionally players.",
"version": "12.328.1",
"version": "12.331.1",
"scripts": [
"/token-info-icons.js"
],
Expand All @@ -20,7 +20,7 @@
],
"compatibility": {
"minimum": "0.8.0",
"verified": "12.328",
"verified": "12.331",
"maximum": "12"
},
"relationships": {
Expand Down Expand Up @@ -51,4 +51,4 @@
}
]
}
}
}
6 changes: 3 additions & 3 deletions token-info-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class TokenInfoIcons {

let passiveSensesButtons = '';
if (!['pf2e', 'pf1'].includes(game.world.system) && game.settings.get('token-info-icons', 'allPassiveSenses')) {
const investigation = actor.system.skills.inv.passive;
const insight = actor.system.skills.ins.passive;
const stealth = actor.system.skills.ste.passive;
const investigation = actor.system.skills?.inv?.passive || 0;
const insight = actor.system.skills?.ins?.passive || 0;
const stealth = actor.system.skills?.ste?.passive || 0;

const passiveInvestigationButton = `<div class="control-icon token-info-icon" title="Passive Investigation: ${investigation}"><i class="fas fa-search"></i> ${investigation}</div>`;
const passiveInsightButton = `<div class="control-icon token-info-icon" title="Passive Insight: ${insight}"><i class="fas fa-lightbulb"></i> ${insight}</div>`;
Expand Down

0 comments on commit 3c6e86c

Please sign in to comment.