diff --git a/src/module/helpers.js b/src/module/helpers.js index 073919f..49472f5 100644 --- a/src/module/helpers.js +++ b/src/module/helpers.js @@ -35,7 +35,11 @@ export const registerHelpers = async function () { }); Handlebars.registerHelper("multround", function (lh, rh) { - return Math.round((parseFloat(lh) * parseFloat(rh)) * 100) / 100; + return Math.round(parseFloat(lh) * parseFloat(rh) * 100) / 100; + }) + + Handlebars.registerHelper("roundTreas", function (value) { + return Math.round(value * 100) / 100; }) Handlebars.registerHelper("roundWeight", function (weight) { diff --git a/src/templates/actors/partials/character-inventory-tab.html b/src/templates/actors/partials/character-inventory-tab.html index 811cab5..9f954c0 100644 --- a/src/templates/actors/partials/character-inventory-tab.html +++ b/src/templates/actors/partials/character-inventory-tab.html @@ -155,7 +155,7 @@
  • {{localize "ACKS.items.Treasure"}}
    -
    {{data.treasure}}
    +
    {{roundTreas data.treasure}}