diff --git a/module.json b/module.json index c660d32..e753562 100644 --- a/module.json +++ b/module.json @@ -1 +1 @@ -{"name":"token-action-hud","title":"Token Action HUD","author":"^ and stick#0520","description":"Creates a HUD showing a selected token's common actions.","minimumCoreVersion":"0.7.0","compatibleCoreVersion":"0.8.6","scripts":["./lib/tagify/tagify.min.js"],"esmodules":["./scripts/init.js"],"styles":["./styles/token-action-hud.css","/styles/lib/tagify/tagify.css"],"systems":["dnd5e","dungeonworld","pf2e","wfrp4e","sfrpg","sw5e","demonlord","pf1","lancer","D35E","swade","starwarsffg","tormenta20","blades-in-the-dark","symbaroum","od6s","alienrpg","cthack","kamigakari"],"languages":[{"lang":"en","name":"English","path":"lang/en.json"},{"lang":"ko","name":"Korean","path":"lang/ko.json"},{"lang":"pt-BR","name":"Português (Brasil)","path":"lang/br.json"},{"lang":"es","name":"Spanish","path":"lang/es.json"},{"lang":"fr","name":"French","path":"lang/fr.json"},{"lang":"pl","name":"Polish","path":"lang/pl.json"},{"lang":"ja","name":"日本語","path":"lang/ja.json"},{"lang":"cn","name":"中文","path":"lang/cn.json"},{"lang":"de","name":"Deutsch","path":"lang/de.json"}],"url":"https://github.com/espositos/fvtt-tokenactionhud","manifest":"https://github.com/espositos/fvtt-tokenactionhud/raw/master/module.json","version":"1.1.4","download":"https://github.com/espositos/fvtt-tokenactionhud/releases/download/1.1.4/release_1.1.4.zip"} \ No newline at end of file +{"name":"token-action-hud","title":"Token Action HUD","author":"^ and stick#0520","description":"Creates a HUD showing a selected token's common actions.","minimumCoreVersion":"0.7.0","compatibleCoreVersion":"0.8.6","scripts":["./lib/tagify/tagify.min.js"],"esmodules":["./scripts/init.js"],"styles":["./styles/token-action-hud.css","/styles/lib/tagify/tagify.css"],"systems":["dnd5e","dungeonworld","pf2e","wfrp4e","sfrpg","sw5e","demonlord","pf1","lancer","D35E","swade","starwarsffg","tormenta20","blades-in-the-dark","symbaroum","od6s","alienrpg","cthack","kamigakari"],"languages":[{"lang":"en","name":"English","path":"lang/en.json"},{"lang":"ko","name":"Korean","path":"lang/ko.json"},{"lang":"pt-BR","name":"Português (Brasil)","path":"lang/br.json"},{"lang":"es","name":"Spanish","path":"lang/es.json"},{"lang":"fr","name":"French","path":"lang/fr.json"},{"lang":"pl","name":"Polish","path":"lang/pl.json"},{"lang":"ja","name":"日本語","path":"lang/ja.json"},{"lang":"cn","name":"中文","path":"lang/cn.json"},{"lang":"de","name":"Deutsch","path":"lang/de.json"}],"url":"https://github.com/espositos/fvtt-tokenactionhud","manifest":"https://github.com/espositos/fvtt-tokenactionhud/raw/master/module.json","version":"1.1.5","download":"https://github.com/espositos/fvtt-tokenactionhud/releases/download/1.1.5/release_1.1.5.zip"} \ No newline at end of file diff --git a/scripts/rollHandlers/pf2e/pf2e-base.js b/scripts/rollHandlers/pf2e/pf2e-base.js index ac6e517..25737d3 100644 --- a/scripts/rollHandlers/pf2e/pf2e-base.js +++ b/scripts/rollHandlers/pf2e/pf2e-base.js @@ -231,9 +231,9 @@ export class RollHandlerBasePf2e extends RollHandler { let update; if (slot === 'focus') - update = [{id: spellbook.id, data: { focus: {points: value}}}]; + update = [{_id: spellbook.id, data: { focus: {points: value}}}]; else - update = [{id: spellbook.id, data: {slots: {[slot]: {value: value}}}}]; + update = [{_id: spellbook.id, data: { slots: {[slot]: {value: value}}}}]; await Item.updateDocuments(update, {parent: actor}); Hooks.callAll('forceUpdateTokenActionHUD'); @@ -408,7 +408,7 @@ export class RollHandlerBasePf2e extends RollHandler { const key = `data.slots.slot${level}.prepared.${spellSlot}`; const options = { - id: spellbookId, + _id: spellbookId, }; options[key] = { expended: true,