Skip to content

Commit

Permalink
#128, Update versions
Browse files Browse the repository at this point in the history
- #128: Only show prepared cantrips.
- Update compatibility versions
  • Loading branch information
Larkinabout committed Oct 24, 2024
1 parent d748598 commit 59dc4c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"flags": {},
"version": "This is auto replaced",
"compatibility": {
"minimum": "12",
"minimum": "12.331",
"verified": "12.331"
},
"esmodules": [
Expand Down Expand Up @@ -89,7 +89,7 @@
"compatibility": {
"minimum": "4.0.0",
"maximum": "4.99",
"verified": "4.0.2"
"verified": "4.0.4"
}
}
],
Expand All @@ -98,9 +98,9 @@
"id": "token-action-hud-core",
"type": "module",
"compatibility": {
"minimum": "1.5.4",
"maximum": "1.5.99",
"verified": "1.5.7"
"minimum": "2.0.0",
"maximum": "1.0.99",
"verified": "2.0.0"
}
}
],
Expand Down
5 changes: 2 additions & 3 deletions scripts/action-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,8 @@ Hooks.once("tokenActionHudCoreApiReady", async coreModule => {

const preparationModes = new Set(Object.keys(CONFIG.DND5E.spellPreparationModes).filter(preparationMode => preparationMode !== "prepared"));

// Return true if spell is a cantrip, has a preparation mode other than 'prepared' or is prepared
return spell.system.level === 0 || preparationModes.has(spell.system.preparation.mode)
|| spell.system.preparation.prepared;
// Return true if the spell has a preparation mode other than 'prepared' or is prepared
return preparationModes.has(spell.system.preparation.mode) || spell.system.preparation.prepared;
}

#getListName(actionType, actionName) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/token-action-hud-dnd5e.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/token-action-hud-dnd5e.min.js.map

Large diffs are not rendered by default.

0 comments on commit 59dc4c6

Please sign in to comment.