diff --git a/module/system/bol-utility.js b/module/system/bol-utility.js index 0a1a82e..5bb805b 100644 --- a/module/system/bol-utility.js +++ b/module/system/bol-utility.js @@ -249,7 +249,6 @@ export class BoLUtility { } /* -------------------------------------------- */ - static removeChatMessageId(messageId) { if (messageId){ game.messages.get(messageId)?.delete(); diff --git a/module/system/helpers.js b/module/system/helpers.js index d0a4ea9..c7dadb5 100644 --- a/module/system/helpers.js +++ b/module/system/helpers.js @@ -4,6 +4,10 @@ export const registerHandlebarsHelpers = function () { return val == null; }); + Handlebars.registerHelper('exists', function (val) { + return val != null && val != undefined; + }); + Handlebars.registerHelper('isEmpty', function (list) { if (list) return list.length == 0; else return 0; diff --git a/system.json b/system.json index 6e551a4..a4f0249 100644 --- a/system.json +++ b/system.json @@ -7,8 +7,8 @@ "url": "https://github.com/ZigmundKreud/bol", "license": "LICENSE.txt", "flags": {}, - "version": "0.8.9.2", - "templateVersion": 10, + "version": "0.8.9.4", + "templateVersion": 13, "minimumCoreVersion": "0.8.6", "compatibleCoreVersion": "9", "scripts": [], diff --git a/template.json b/template.json index 699a1c7..5dde955 100644 --- a/template.json +++ b/template.json @@ -109,6 +109,7 @@ "key": "power", "label": "BOL.resources.power", "value": 0, + "bonus": 0, "max": 0 } } diff --git a/templates/actor/parts/tabs/actor-actions.hbs b/templates/actor/parts/tabs/actor-actions.hbs index ec968ba..e6c0974 100644 --- a/templates/actor/parts/tabs/actor-actions.hbs +++ b/templates/actor/parts/tabs/actor-actions.hbs @@ -1,10 +1,3 @@ -
    -
  1. -
    {{localize "BOL.ui.maneuvers"}}
    -
  2. -
  3. Attaque à mains nues

  4. -
- {{#each combat as |combatType id|}}
  1. diff --git a/templates/actor/parts/tabs/actor-stats.hbs b/templates/actor/parts/tabs/actor-stats.hbs index 4218ecb..b5fb75d 100644 --- a/templates/actor/parts/tabs/actor-stats.hbs +++ b/templates/actor/parts/tabs/actor-stats.hbs @@ -27,6 +27,9 @@

    + {{#if (exists bonus)}} + + {{/if}}
    {{/each}}